Blender Git Commit Log

Git Commits -> Revision 82ba89b

Revision 82ba89b by Julian Eisel (master)
November 10, 2016, 19:34 (GMT)
Fix T49961: Blender 2.8 Crashes on saving an image

Caused by 4811b2d3565cf which caused the event handler hack that is used to fire up the file browser from other operators to fail. Basically the context from before the file browser is opened gets stored and used later for executing the actual file read/write operation (in this case, saving image). This context storage is cleared when exiting an editor since 4811b2d3565cf, which is technically correct, but causes usage of NULLed context data in this case, because the file browser is exited before the file read/write operation is executed.

For now I solved this by moving the fileselect handler to list of normal handlers, instead of modal ones. 4811b2d3565cf only touches list of modal handlers so we avoid the crash. Ideally we'd completely refactor how the file browser opening works to get rid of these event handler hacks.

Note that I wouldn't be suprised if this causes other regressions, but I couldn't find one so worth a try.

Commit Details:

Full Hash: 82ba89b042e7067d989daa0fcb414bdc9e31c276
Parent Commit: 69655a1
Lines Changed: +5, -5

2 Modified Paths:

/source/blender/windowmanager/intern/wm_event_system.c (+4, -4) (Diff)
/source/blender/windowmanager/wm_event_system.h (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021