Maniphest T76535

Blender crashes after rendering with Freestyle turned on
Closed, Resolved

Assigned To
Brecht Van Lommel (brecht)
Authored By
Marinus de Beer (Marinus)
May 8 2020, 9:16 AM
Tags
  • BF Blender
  • EEVEE & Viewport
  • Platform: macOS
  • Freestyle
Subscribers
Ankit Meel (ankitm)
Marinus de Beer (Marinus)
Robert Guetzkow (rjg)

Description

System Information
Operating system: Mac OS Mojave 10.14.6 (18G4032)
Graphics card: NVIDIA GeForce GT 750M 2 GB (Macbook Pro late 2013)

Also on Intel HD 6000

Blender Version
Broken: v2.82a, 2.83, 2.90

Short description of error
Blender crashes after a render with Freestyle checked in render properties. It crashes while it says in render info: "Freestyle: stroke rendering"

Exact steps for others to reproduce the error

  1. Open the attached .blend file.
  2. Render the image.

Project file

Crash Log
Important bit: T76535#928310

Revisions and Commits

rB Blender

Event Timeline

Marinus de Beer (Marinus) created this task.May 8 2020, 9:16 AM
Marinus de Beer (Marinus) updated the task description.May 8 2020, 10:53 AM
Marinus de Beer (Marinus) updated the task description.
Marinus de Beer (Marinus) updated the task description.May 8 2020, 10:56 AM
Marinus de Beer (Marinus) updated the task description.May 8 2020, 11:16 AM
Robert Guetzkow (rjg) changed the task status from Needs Triage to Needs Information from User.May 8 2020, 11:28 AM
Robert Guetzkow (rjg) added a subscriber: Robert Guetzkow (rjg).

Can you please add a minimal example .blend file that causes a crash on your system? A file can be upload through drag & drop or by clicking on the upload button as shown in the screenshot below.

Ankit Meel (ankitm) updated the task description.May 8 2020, 11:43 AM
Marinus de Beer (Marinus) added a comment.May 8 2020, 11:54 AM
In T76535#926781, @Robert Guetzkow (rjg) wrote:

Can you please add a minimal example .blend file that causes a crash on your system? A file can be upload through drag & drop or by clicking on the upload button as shown in the screenshot below.

Hi Ankit, sorry it happened with every file. Even just a square. I have quickly installed 2.83 and the issue doesn't happen in this version. I also tried 2.90 but in that version the 'Decimate' modifier doesn't work yet so I reverted to 2.83 and all is well. I'm sorry I cannot reproduce the problem now with a new file.

Robert Guetzkow (rjg) closed this task as Resolved.May 9 2020, 1:36 PM
Robert Guetzkow (rjg) claimed this task.

@Marinus de Beer (Marinus) I'm closing this ticket then, since the issue appear to be fixed in the current versions. If you experience the issue with Blender 2.83 or 2.90, please create a new ticket with step by step instructions that allow us reproduce it.

Marinus de Beer (Marinus) added a comment.May 10 2020, 9:29 PM

Out of the blue the same error started happening but I'm having issues with how to explain what I did because I did nothing out of the ordinary, it just happens by itself all of a sudden after trying to render a few times. This time it happened when working with a file that I didn't create. The only fix seems to be to completely remove everything Blender and reinstall. Removing the config in Application Support didn't do the trick. 2.83 will eventually also fail with freestyle. I think this is a problem with freestyle. Sorry, I'm not very good at this but would like to file a good report. Where should I report this?

Robert Guetzkow (rjg) added a comment.EditedMay 10 2020, 10:57 PM

@Marinus de Beer (Marinus) Please read this guide for creating a bug report. Try to take note of the actions you've performed that result in the crash. Ideally you can provide us with a very small project file and a set of instructions that crash on your system and allow us to reproduce the issue. The important part is that you find a way to reliably cause Blender to crash. If the issue happens at random, it will be more difficult for us to identify the cause.

If this issue occurs in Blender 2.83 or 2.90, then please create another ticket and attach the crash log as well.

Robert Guetzkow (rjg) added a comment.May 10 2020, 11:42 PM

For reference, the issue in 2.82a has the following stack trace:

0   org.blenderfoundation.blender 	0x0000000102fe775e EEVEE_materials_cache_populate + 1630
1   org.blenderfoundation.blender 	0x0000000102feaa36 EEVEE_render_cache + 230
2   org.blenderfoundation.blender 	0x0000000102fcd0e1 DRW_render_object_iter + 465
3   org.blenderfoundation.blender 	0x0000000102fde752 eevee_render_to_image + 98
4   org.blenderfoundation.blender 	0x0000000102fccd6c DRW_render_to_image + 828
5   org.blenderfoundation.blender 	0x0000000107135206 RE_engine_render + 1110
6   org.blenderfoundation.blender 	0x0000000107140a53 RE_RenderFreestyleStrokes + 99
7   org.blenderfoundation.blender 	0x0000000107219fa1 Freestyle::BlenderStrokeRenderer::RenderScene(Render*, bool) + 161
8   org.blenderfoundation.blender 	0x0000000107211741 Freestyle::Controller::RenderStrokes(Render*, bool) + 337
9   org.blenderfoundation.blender 	0x000000010721b7bc FRS_do_stroke_rendering + 1196
10  org.blenderfoundation.blender 	0x0000000107140b9b RE_RenderFreestyleExternal + 299
11  org.blenderfoundation.blender 	0x00000001071353a1 RE_engine_render + 1521
12  org.blenderfoundation.blender 	0x000000010713fafa do_render_all_options + 378
13  org.blenderfoundation.blender 	0x000000010713f5e6 RE_RenderFrame + 406
14  org.blenderfoundation.blender 	0x00000001040b622a render_startjob + 122
15  org.blenderfoundation.blender 	0x0000000102e94057 do_job_thread + 39
16  libsystem_pthread.dylib       	0x00007fff673672eb _pthread_body + 126
17  libsystem_pthread.dylib       	0x00007fff6736a249 _pthread_start + 66
18  libsystem_pthread.dylib       	0x00007fff6736640d thread_start + 13
Robert Guetzkow (rjg) reopened this task as Needs Information from User.EditedMay 11 2020, 12:05 AM

I can also re-open this ticket, since it's not actually resolved. Please try to update your report with the information from 2.83 and 2.90 though.

Marinus de Beer (Marinus) added a comment.May 11 2020, 12:10 AM

Would a video like this suffice?
https://www.youtube.com/watch?v=8MvA_kuYz8g

Blender version 2.93

Video will be removed when the issue is resolved because I would like to keep the idea of rendering these models kind of secret since it involves part of my artistic work (not my paid job, but still).

Robert Guetzkow (rjg) added a comment.May 11 2020, 12:25 AM

@Marinus de Beer (Marinus) That already helps a lot. I will try to reproduce the issue tomorrow.

Marinus de Beer (Marinus) added a comment.May 11 2020, 12:28 AM
In T76535#928321, @Robert Guetzkow (rjg) wrote:

@Marinus de Beer (Marinus) That already helps a lot. I will try to reproduce the issue tomorrow.

I used this file:
https://www.myminifactory.com/object/3d-print-head-of-michelangelo-s-david-52645

With the amount of vertexes/faces lowered with decimate down to 31,482 faces.

Robert Guetzkow (rjg) added a comment.May 11 2020, 1:06 PM

@Marinus de Beer (Marinus) Unfortunately I can't reproduce the issue on my system. Can you test if the attached file causes a crash for you as well? If it doesn't, please upload the .blend file from your video.

Robert Guetzkow (rjg) added projects: EEVEE & Viewport, Platform: macOS.May 11 2020, 1:07 PM
Marinus de Beer (Marinus) added a comment.May 11 2020, 1:11 PM

Yes it does crash, here is the crash output, not sure if it is of any use. I will reinstall blender later to try again. Something happens to Blender in some way, but removing the files in /Application Support/Blender/ doesn't fix it so it might be internally in the app. Happens both in 2.82 and 2.83.

Robert Guetzkow (rjg) updated the task description.May 11 2020, 1:41 PM
Robert Guetzkow (rjg) added a subscriber: Ankit Meel (ankitm).May 11 2020, 1:46 PM

@Ankit Meel (ankitm) Can you reproduce this on macOS?

Robert Guetzkow (rjg) changed the task status from Needs Information from User to Needs Triage.May 11 2020, 1:51 PM
Ankit Meel (ankitm) added a comment.May 11 2020, 4:38 PM

@Robert Guetzkow (rjg) yes, and the freestyle addon isn't required. It crashes at the same place you got from the log. T76535#928310
doesn't crash with cycles.
Will edit the post accordingly.

Robert Guetzkow (rjg) changed the task status from Needs Triage to Confirmed.May 11 2020, 4:50 PM
Ankit Meel (ankitm) renamed this task from Blender crashes consecutively on rendering (with Freestyle addon) to Blender crashes after rendering with Freestyle turned on.May 11 2020, 4:56 PM
Ankit Meel (ankitm) removed Robert Guetzkow (rjg) as the assignee of this task.
Ankit Meel (ankitm) updated the task description.
Ankit Meel (ankitm) updated the task description.

I removed the .svg part from the render output filename since it doesn't affect the crash.

Marinus de Beer (Marinus) added a comment.May 11 2020, 7:37 PM
This comment was removed by Marinus de Beer (Marinus).
Marinus de Beer (Marinus) added a comment.EditedMay 11 2020, 7:39 PM

I'm sorry, indeed, it doesn't crash with Cycles, confirmed. Only with Eevee. It doesn't matter what file. The problem with Cycles is that it doesn't render the lines from Freestyle for me. I'm not sure if that's due to Cycles or if that's an issue with 2.83.

Ankit Meel (ankitm) added a comment.May 11 2020, 7:42 PM

It works in v2.82a for me. Could you test again on that & update the task description for working version ?

Robert Guetzkow (rjg) added a project: Freestyle.May 11 2020, 8:06 PM
Marinus de Beer (Marinus) added a comment.May 11 2020, 8:20 PM
In T76535#929098, @Ankit Meel (ankitm) wrote:

It works in v2.82a for me. Could you test again on that & update the task description for working version ?

I went back to 2.82a and it works for now, but the previous times it worked for about 4~5 times and after that it started crashing. I also tested cycles and it works as well, and it does correctly output an svg file.

2.83 does not output an svg file with cycles.

Brecht Van Lommel (brecht) claimed this task.May 12 2020, 6:37 PM
Brecht Van Lommel (brecht) closed this task as Resolved by committing rBa5eee1f935a5: Fix T76535: Eevee + Freestyle render crash with many strokes.May 12 2020, 9:55 PM
Brecht Van Lommel (brecht) added a commit: rBa5eee1f935a5: Fix T76535: Eevee + Freestyle render crash with many strokes.