Page MenuHome

Crash with new bl_app_templates_user if no config folder
Closed, ResolvedPublic

Description

System Information
CentOs 7

Blender Version
2.79 RC1 Hash 5e9132b3b7d

Short description of error
Blender crashes if there is no config folder in the user .config/2.79.

Exact steps for others to reproduce the error

  • Create startup.blend and/or userpref.blend files in

/home/username/.config/blender/2.79/scripts/startup/bl_app_templates_user/your_template/

  • Open Blender and try to switch to your template, Blender will crash:

Writing: /tmp/blender.crash.txt
Segmentation fault (core dumped)

blender.crash.txt:

backtrace

./blender(BLI_system_backtrace+0x20) [0x1a631d0]
./blender() [0x1072785]
/lib64/libc.so.6(+0x35250) [0x7f057d2ca250]
./blender(BLI_strnlen+0x7) [0x1a60c37]
./blender(BLI_strncpy_rlen+0x16) [0x1a60d86]
./blender(BLI_path_join+0x3b) [0x1a5801b]
./blender(wm_homefile_read+0x557) [0x1080057]
./blender() [0x1080957]
./blender() [0x107a0aa]
./blender() [0x1255f7b]
./blender() [0x126689d]
./blender() [0x107b99c]
./blender() [0x107be08]
./blender(wm_event_do_handlers+0x1d4) [0x107c114]
./blender(WM_main+0x18) [0x1073368]
./blender(main+0x3f8) [0x1010e38]
/lib64/libc.so.6(__libc_start_main+0xf5) [0x7f057d2b6b35]
./blender() [0x106f6de]

  • Add config folder in /home/vincentg/.config/blender/2.79 and now, even with an empty config folder, Blender will be able to switch to the template.