Eevee and Freestyle broken with old 2.8 default file #60210

Closed
opened 2019-01-05 19:45:36 +01:00 by Henry Schreiner · 3 comments

System Information
Operating system: macOS 10.14.02
Graphics card: Intel (2015 Macbook Pro)

Blender Version
Broken: 2.80 1461d0185c mid 2019-01-05

Short description of error

Opening the default scene, activating Freestyle, and rendering in Eevee segfaults. This is after #58669 and the two recent patches fixing Eevee + Freestyle.

Exact steps for others to reproduce the error

Running a debug build in lldb gives the following backtrace:

* thread #18, stop reason = signal SIGABRT
  * frame #0: 0x00007fff7bea623e libsystem_kernel.dylib`__pthread_kill + 10
    frame #1: 0x00007fff7bf5cc1c libsystem_pthread.dylib`pthread_kill + 285
    frame #2: 0x00007fff7be0f1c9 libsystem_c.dylib`abort + 127
    frame #3: 0x000000010124e8c6 blender`id_us_min(id=0x0000000116837208) at library.c:248
    frame #4: 0x000000010126b10c blender`foreach_libblock_remap_callback(user_data=0x000070000d320650, id_self=0x0000000116835808, id_p=0x00000001121b4de8, cb_flag=256) at library_remap.c:248
    frame #5: 0x000000010125a3b5 blender`BKE_library_foreach_ID_link(bmain=0x0000000000000000, id=0x0000000116835808, callback=(blender`foreach_libblock_remap_callback at library_remap.c:167), user_data=0x000070000d320650, flag=0) at library_query.c:433
    frame #6: 0x00000001012692f6 blender`libblock_remap_data(bmain=0x0000000113ce5e08, id=0x0000000116835808, old_id=0x0000000000000000, new_id=0x0000000000000000, remap_flags=0, r_id_remap_data=0x000070000d320650) at library_remap.c:415
    frame #7: 0x0000000101269a43 blender`BKE_libblock_relink_ex(bmain=0x0000000113ce5e08, idv=0x0000000116835808, old_idv=0x0000000000000000, new_idv=0x0000000000000000, us_min_never_null=true) at library_remap.c:610
    frame #8: 0x000000010126a742 blender`BKE_libblock_free_ex(bmain=0x0000000113ce5e08, idv=0x0000000116835808, do_id_user=true, do_ui_user=true) at library_remap.c:920
    frame #9: 0x000000010126a816 blender`BKE_libblock_free(bmain=0x0000000113ce5e08, idv=0x0000000116835808) at library_remap.c:948
    frame #10: 0x00000001008de309 blender`free_all_freestyle_renders at pipeline.c:1349
    frame #11: 0x00000001008ddd82 blender`do_render_composite(re=0x0000000112b8b008) at pipeline.c:1446
    frame #12: 0x00000001008d998f blender`do_render_all_options(re=0x0000000112b8b008) at pipeline.c:1645
    frame #13: 0x00000001008d930e blender`RE_BlenderFrame(re=0x0000000112b8b008, bmain=0x0000000113965808, scene=0x0000000113970608, single_layer=0x0000000000000000, camera_override=0x0000000000000000, frame=1, write_still=false) at pipeline.c:1999
    frame #14: 0x00000001007bb866 blender`render_startjob(rjv=0x000000011200fcc8, stop=0x000000011200f00c, do_update=0x000000011200f00a, progress=0x000000011200f010) at render_internal.c:622
    frame #15: 0x000000010016d8dc blender`do_job_thread(job_v=0x000000011200ef98) at wm_jobs.c:338
    frame #16: 0x0000000101783f31 blender`tslot_thread_start(tslot_p=0x0000000124737218) at threads.c:259
    frame #17: 0x00007fff7bf5a305 libsystem_pthread.dylib`_pthread_body + 126
    frame #18: 0x00007fff7bf5d26f libsystem_pthread.dylib`_pthread_start + 70
    frame #19: 0x00007fff7bf59415 libsystem_pthread.dylib`thread_start + 13

The crash seems to be happing when BKE_libblock_free(re1->freestyle_bmain, freestyle_scene); is called, which calls BKE_libblock_relink_ex(bmain, id, NULL, NULL, true);, and lots of functions with "link" in them.

**System Information** Operating system: macOS 10.14.02 Graphics card: Intel (2015 Macbook Pro) **Blender Version** Broken: 2.80 1461d0185c040f24ccc03ade36352fd0fd5d7d4f mid 2019-01-05 **Short description of error** Opening the default scene, activating Freestyle, and rendering in Eevee segfaults. This is after #58669 and the two recent patches fixing Eevee + Freestyle. **Exact steps for others to reproduce the error** Running a debug build in lldb gives the following backtrace: ``` * thread #18, stop reason = signal SIGABRT * frame #0: 0x00007fff7bea623e libsystem_kernel.dylib`__pthread_kill + 10 frame #1: 0x00007fff7bf5cc1c libsystem_pthread.dylib`pthread_kill + 285 frame #2: 0x00007fff7be0f1c9 libsystem_c.dylib`abort + 127 frame #3: 0x000000010124e8c6 blender`id_us_min(id=0x0000000116837208) at library.c:248 frame #4: 0x000000010126b10c blender`foreach_libblock_remap_callback(user_data=0x000070000d320650, id_self=0x0000000116835808, id_p=0x00000001121b4de8, cb_flag=256) at library_remap.c:248 frame #5: 0x000000010125a3b5 blender`BKE_library_foreach_ID_link(bmain=0x0000000000000000, id=0x0000000116835808, callback=(blender`foreach_libblock_remap_callback at library_remap.c:167), user_data=0x000070000d320650, flag=0) at library_query.c:433 frame #6: 0x00000001012692f6 blender`libblock_remap_data(bmain=0x0000000113ce5e08, id=0x0000000116835808, old_id=0x0000000000000000, new_id=0x0000000000000000, remap_flags=0, r_id_remap_data=0x000070000d320650) at library_remap.c:415 frame #7: 0x0000000101269a43 blender`BKE_libblock_relink_ex(bmain=0x0000000113ce5e08, idv=0x0000000116835808, old_idv=0x0000000000000000, new_idv=0x0000000000000000, us_min_never_null=true) at library_remap.c:610 frame #8: 0x000000010126a742 blender`BKE_libblock_free_ex(bmain=0x0000000113ce5e08, idv=0x0000000116835808, do_id_user=true, do_ui_user=true) at library_remap.c:920 frame #9: 0x000000010126a816 blender`BKE_libblock_free(bmain=0x0000000113ce5e08, idv=0x0000000116835808) at library_remap.c:948 frame #10: 0x00000001008de309 blender`free_all_freestyle_renders at pipeline.c:1349 frame #11: 0x00000001008ddd82 blender`do_render_composite(re=0x0000000112b8b008) at pipeline.c:1446 frame #12: 0x00000001008d998f blender`do_render_all_options(re=0x0000000112b8b008) at pipeline.c:1645 frame #13: 0x00000001008d930e blender`RE_BlenderFrame(re=0x0000000112b8b008, bmain=0x0000000113965808, scene=0x0000000113970608, single_layer=0x0000000000000000, camera_override=0x0000000000000000, frame=1, write_still=false) at pipeline.c:1999 frame #14: 0x00000001007bb866 blender`render_startjob(rjv=0x000000011200fcc8, stop=0x000000011200f00c, do_update=0x000000011200f00a, progress=0x000000011200f010) at render_internal.c:622 frame #15: 0x000000010016d8dc blender`do_job_thread(job_v=0x000000011200ef98) at wm_jobs.c:338 frame #16: 0x0000000101783f31 blender`tslot_thread_start(tslot_p=0x0000000124737218) at threads.c:259 frame #17: 0x00007fff7bf5a305 libsystem_pthread.dylib`_pthread_body + 126 frame #18: 0x00007fff7bf5d26f libsystem_pthread.dylib`_pthread_start + 70 frame #19: 0x00007fff7bf59415 libsystem_pthread.dylib`thread_start + 13 ``` The crash seems to be happing when `BKE_libblock_free(re1->freestyle_bmain, freestyle_scene);` is called, which calls `BKE_libblock_relink_ex(bmain, id, NULL, NULL, true);`, and lots of functions with "link" in them.

Added subscriber: @henryschreiner

Added subscriber: @henryschreiner

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Henry Schreiner self-assigned this 2019-01-05 19:49:37 +01:00

Sorry, I was working through the callback and I saw a mention of the scene collection. I tried taking the default scene back to the factory defaults, and now it works. So for some reason, the default scene that was saved when I started using 2.8 causes problems now. I'll reopen if that's incorrect and it is infact an intermittent crash. I've tried several times and it only crashes if I don't load factory defaults first.

Sorry, I was working through the callback and I saw a mention of the scene collection. I tried taking the default scene back to the factory defaults, and now it works. So for some reason, the default scene that was saved when I started using 2.8 causes problems now. I'll reopen if that's incorrect and it is infact an intermittent crash. I've tried several times and it only crashes if I don't load factory defaults first.
Henry Schreiner changed title from Eevee and Freestyle broken on macOS to Eevee and Freestyle broken on with old 2.8 default file 2019-01-05 19:50:06 +01:00
Henry Schreiner changed title from Eevee and Freestyle broken on with old 2.8 default file to Eevee and Freestyle broken with old 2.8 default file 2019-01-05 19:50:30 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#60210
No description provided.