Page MenuHome

Crash on Boot (bug is related to User Settings)
Closed, ResolvedPublic


System Information
Operating system and graphics card

  • Windows 7 64 Ulitmate | GTX 1060

Blender Version
Broken: (I use buildbots on a regular basis, so whatever I've tried after the latest working one are broken. Definitely in a 1-5 days range since the one that I marked as working is when the bug was introduced)
Worked: (blender-2.78-641e586-win64)

Short description of error
If I rename my 2.78 folder, which in turn makes Blender run with defaults, it boots up fine.
With my User Settings (and I use quite a heavily customized Blender), all the versions I tried after blender-2.78-641e586-win64 have this same issue. It just randomly crashes on boot. The success rate of opening Blender is at about 30%. The application window gets open, but fails to draw anything, it's just a light gray blank window. The odd thing is, every couple of tries it will boot OK.
blender-2.78-641e586-win64 works fine.

If you guys want to try it with my prefz, you can grab it here:

Exact steps for others to reproduce the error
Based on a (as simple as possible) attached .blend file with minimum amount of steps
Grab my user prefs, latest buildbot version (blender-2.78-7fec7ee-win64) and boot blender. Try at least 10 times. In my case it will crash some 60% times

Event Timeline

Julian Eisel (Severin) lowered the priority of this task from Needs Triage by Developer to Needs Information from User.Oct 16 2016, 7:03 PM

Can't reproduce this here (tried with this setup). There's a whole bunch of stuff printed on console when launching Blender, lots of issues in various scripts. You can try resetting Blender towards factory settings by removing folders and files in [config directory]/2.78/scripts, one by one. This will probably help you nailing down the cause of the crash.

Leaving the task open for now as this could be an issue on Blender's side, but it actually looks more like some script is doing weird stuff here...

The problem is, this build blender-2.78-641e586-win64 from less than 2 weeks ago 10/4/2016 works fine.
And all the builds prior to that. So there must be something with the new buildbots that is crashing Blender with this setup.

I'll make an effort to rebuild the setup with the latest buildbot.

I am getting crashes with this setup, every other time or so. The backtraces vary, but it seems there is something corrupted in keymaps.


Even if there are errors in the Python scripts, we normally should not crash.

@Julian Eisel (Severin), it seems to be this commit: {103fbb3afc076383b94910e535374c5db398d06c}.

Hmmm, still can't recreate, tried debug and latest buildbot builds (and tried many times) :/

The problem was that kmi->properties was not set to NULL, while wm_keymap_item_copy checks that to decide if the properties should be copied. If the properties were not copied kmi->ptr was left pointing to freed memory.

brecht | Thanks!

Fixed, no crash on boot. Custom hotkeys and setup works fine on initial testing!

Much appreciated!