Crash on Boot (bug is related to User Settings) #49746

Closed
opened 2016-10-16 18:41:25 +02:00 by 0rAngE · 13 comments

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:
https://blenderartists.org/forum/showthread.php?352666-Input-Custom-Blender-Setup-Silo-Maya-esque

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

**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: https://blenderartists.org/forum/showthread.php?352666-Input-Custom-Blender-Setup-Silo-Maya-esque **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
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @0rAngE

Added subscriber: @0rAngE
Member

Added subscriber: @JulianEisel

Added subscriber: @JulianEisel
Member

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...

Can't reproduce this here (tried with [this ](http://edge-loop.com/images/blender/2.78.zip) 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...
Author

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.

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.

Added subscriber: @brecht

Added subscriber: @brecht

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

blender.crash.txt, blender.crash.txt

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

I am getting crashes with this setup, every other time or so. The backtraces vary, but it seems there is something corrupted in keymaps. [blender.crash.txt](https://archive.blender.org/developer/F379482/blender.crash.txt), [blender.crash.txt](https://archive.blender.org/developer/F379483/blender.crash.txt) Even if there are errors in the Python scripts, we normally should not crash.

@JulianEisel, it seems to be this commit: {103fbb3afc076383b94910e535374c5db398d06c}.

@JulianEisel, it seems to be this commit: {103fbb3afc076383b94910e535374c5db398d06c}.
Member

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

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

This issue was referenced by 2a6ec00b9b

This issue was referenced by 2a6ec00b9b083e8c235ec4721d6fa67b9bee4794

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

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.

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.
Author

brecht | Thanks!

blender-2.78-2a6ec00-win64
Fixed, no crash on boot. Custom hotkeys and setup works fine on initial testing!

Much appreciated!

brecht | Thanks! blender-2.78-2a6ec00-win64 Fixed, no crash on boot. Custom hotkeys and setup works fine on initial testing! Much appreciated!
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
4 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#49746
No description provided.