Page MenuHome

Blender 2.8 crashes upon creating material in OpenGL mode
Closed, ResolvedPublic

Description

System Information
Pisi Linux 2.0 (x86_64) with AMD Radeon HD 833 with xorg-video-radeon driver
Error is also reproducible on Windows 10 Pro x86_64/AMD Radeon RX580 4GB with Radeon Software 18.8.1

Blender Version
Broken: 2.8 Alpha

Short description of error
Blender 2.8 crashes in OpenGL model whenever a new material slot is added and a new material is created in the slot.
Exact steps for others to reproduce the error
Load a .blend (the default cube will do it, too)
Set rendering to OpenGL
Unlink a material from an object
Add new material to the same object




EDIT:It looks like my system installed Nouveau by default. Will run experiment again with official drivers.
Pisi Linux seems to pre-install Nouveau by default, regardless of GPU type.

Event Timeline

Bastien Montagne (mont29) lowered the priority of this task from 90 to 30.Aug 5 2018, 4:35 PM

Cannot confirm any crash here, Please:

  • Give us your exact Blender, OS and GPU (including drivers) versions, as requested in the template!
  • Ensure both your OS and drivers are fully up-to-date (and use official GPU drivers, not those provided by windows or tablet/laptop maker or open source ones in linux distributions).
  • Try the latest build from our buildbot.
  • Try to start Blender in factory settings (--factory-startup commandline option) (this will ensure whether this is a userpref or addon issue or not).
  • Try to tweak OGL settings in UserPreferences, System tab.
  • Try to tweak your GPU driver settings (e.g. try different values between 'performance' and 'quality' if you have such slider, etc.).
  • Attach as text file here the report generated by Help -> System Info (do not paste it directly in comment).
  • Launch Blender from the command line with --debug-gpu option and attach as text file here any error printed out in the console (do not paste it directly in comment).
  • Try to start in software OpenGL mode (use the blender-softwaregl distributed with official blender, will be slow, but will show whether this is a driver issue or not).

I could reproduce on Blender 2.80 (sub 21), Commit date: 2018-08-06 19:55, Hash faf43ff9ad8 with:

  • Windows 10 Pro x64 (1803)
  • AMD Radeon RX580 4GB with Radeon Software 18.8.1

I have provided .blend file already setup to OpenGL render engine and output from a debug build.



Click X (unlink), then click the large "New" button. The program ends with a runtime error afterwards, or crashes.


This error can be reproduced by adding and creating any new material in OpenGL mode. I retested this with today's build (hash 6fbd210b915, x64)




Petra Mogyorósi (MiceAreVeryNice) renamed this task from Blender 2.8 crashes upon changing material to Blender 2.8 crashes upon creating material in OpenGL mode.Aug 8 2018, 10:55 PM

Hey guys, I am new to blender development.
But I found out that when in opengl rendering mode, while inside the external_engine.c's RE_engine_render(...) the render->result is not being set because the render->scemode has R_BUTS_PREVIEW;

Now if someone can explain to me what scemode does and what's its purpose, or some englighment would be nice.

)

Hey guys, I am new to blender development.
But I found out that when in opengl rendering mode, while inside the external_engine.c's RE_engine_render(...) the render->result is not being set because the render->scemode has R_BUTS_PREVIEW;

Now if someone can explain to me what scemode does and what's its purpose, or some englighment would be nice.

)

Is OpenGL mode an external renderer? I doubt it. The issue stands, no matter whether Rendered mode is on or not.
Please file a different bug report instead of offing in this thread.

Brecht Van Lommel (brecht) raised the priority of this task from 30 to 50.

@Jhonny knaak de Vargas (JKVargas) is right about the cause of this bug, external_engine.c is a bit of a confusing name now that all renderers go through this system.

The OpenGL render engine does not currently support preview renders, so there is no render result. The solution is to avoid doing the preview render if the engine does not support it.

I am sorry if I did something wrong hehe.
Like I say, I am new to this stuff... But I really want to help.
I found out that stuff because I was debugging.

I am going to check what was the solution.
But still, if you guys don't mind, can you explain me what render->scemode does? =)
Thanks and good job Brecht =)