Page MenuHome

Blender 2.8 crashes on file open
Closed, ResolvedPublic

Description

System Information
Windows 10, Geforce GTX 970

Blender Version
Broken: blender-2.80.0-git.17bc056-windows64

Blender crashes if I want to open the attached file. Its a minimal test scene with only a few objects, which comes from a larger scene which I cant load in 2.8 anymore.

Details

Type
Bug

Event Timeline

Bastien Montagne (mont29) triaged this task as Needs Information from User priority.

Cannot reproduce any crash here (debian64 testing), please try again with latest 2.8 build.

If it still crashes, 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 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).

hey thanks for taking the time looking into this.

Sadly the issue persits on my end - I can also reproduce it on my machine at work, did not save the logs tho. If its of any interesst I could supply them as well - in short its a windows 8 machine with a nvidia geforce 1060 or so.

Playing with the OpenGl settings did not result in a change of behavior.

Blender: blender-2.80.0-git.421017d24a0-windows64 (version from buildbot from 25.7.18)

Microsoft Windows [Version 10.0.17134.165] - Geforce 398.36 Drivers


Bastien Montagne (mont29) raised the priority of this task from Needs Information from User to Normal.

Thanks, looks like a windows-related issue then. @LazyDodo (LazyDodo) can you try to check that one? Thanks.

@Clément Foucault (fclem) from quick look to the logs, see nothing related to OpenGL here, but can you double-check please?

It's some kind of deg threading issue by the looks of it, can't repro in debug, can repro in release, can't repro when starting release with '-t 1'

here's stack-dump with some comments in it. feels like @Clément Foucault (fclem) is in the clear here, but @Sergey Sharybin (sergey) should definitely take a peek.

>	blender.exe!MEM_lockfree_allocN_len(const void * vmemh) Line 120	C <---- vmemh has a bad pointer. 
 	blender.exe!MEM_lockfree_freeN(void * vmemh) Line 130	C
 	blender.exe!CustomData_free(CustomData * data, int totelem) Line 1561	C
 	blender.exe!BKE_mesh_free(Mesh * me) Line 476	C  <--- there's two threads calling this function with the same me pointer simultaneously 
 	blender.exe!BKE_object_free_derived_caches(Object * ob) Line 382	C
 	blender.exe!mesh_build_data(Depsgraph * depsgraph, Scene * scene, Object * ob, unsigned __int64 dataMask, const bool build_shapekey_layers, const bool need_mapping) Line 2942	C
 	blender.exe!mesh_get_eval_final(Depsgraph * depsgraph, Scene * scene, Object * ob, unsigned __int64 dataMask) Line 3105	C
 	blender.exe!BKE_object_data_transfer_ex(Depsgraph * depsgraph, Scene * scene, Object * ob_src, Object * ob_dst, Mesh * me_dst, const int data_types, bool use_create, const int map_vert_mode, const int map_edge_mode, const int map_loop_mode, const int map_poly_mode, SpaceTransform * space_transform, const bool auto_transform, const float max_distance, const float ray_radius, const float islands_handling_precision, const int * fromlayers_select, const int * tolayers_select, const int mix_mode, const float mix_factor, const unsigned char * vgroup_name, const bool invert_vgroup, ReportList * reports) Line 1116	C
 	blender.exe!applyModifier(ModifierData * md, const ModifierEvalContext * ctx, Mesh * me_mod) Line 195	C
 	blender.exe!modifier_applyModifier(ModifierData * md, const ModifierEvalContext * ctx, Mesh * mesh) Line 999	C
 	blender.exe!mesh_calc_modifiers(Depsgraph * depsgraph, Scene * scene, Object * ob, float[3] * inputVertexCos, int useDeform, const bool need_mapping, unsigned __int64 dataMask, const int index, const bool useCache, const bool build_shapekey_layers, const bool allow_gpu, Mesh * * r_deform_mesh, Mesh * * r_final_mesh) Line 2297	C
 	blender.exe!mesh_build_data(Depsgraph * depsgraph, Scene * scene, Object * ob, unsigned __int64 dataMask, const bool build_shapekey_layers, const bool need_mapping) Line 2955	C
 	blender.exe!makeDerivedMesh(Depsgraph * depsgraph, Scene * scene, Object * ob, BMEditMesh * em, unsigned __int64 dataMask, const bool build_shapekey_layers) Line 3062	C
 	blender.exe!BKE_object_handle_data_update(Depsgraph * depsgraph, Scene * scene, Object * ob) Line 207	C
 	blender.exe!BKE_object_eval_uber_data(Depsgraph * depsgraph, Scene * scene, Object * ob) Line 313	C
 	[Inline Frame] blender.exe!std::_Func_class<void,Depsgraph *>::operator()(Depsgraph * <_Args_0>) Line 94	C++
 	blender.exe!DEG::deg_task_run_func(TaskPool * pool, void * taskdata, int thread_id) Line 97	C++
 	blender.exe!task_scheduler_thread_run(void * thread_p) Line 445	C
 	pthreadVC2.dll!000007fee772627b()	Unknown
 	pthreadVC2.dll!000007fee7728eb7()	Unknown
 	pthreadVC2.dll!000007fee7729102()	Unknown
 	kernel32.dll!BaseThreadInitThunk()	Unknown
 	ntdll.dll!RtlUserThreadStart()	Unknown

and this is the second thread

 	ntdll.dll!NtFreeVirtualMemory()	Unknown
 	ntdll.dll!RtlpSecMemFreeVirtualMemory()	Unknown
 	ntdll.dll!RtlpFreeHeap()	Unknown
 	kernel32.dll!HeapFree()	Unknown
>	blender.exe!_free_base(void * block) Line 107	C++
 	blender.exe!CustomData_free(CustomData * data, int totelem) Line 1561	C
 	blender.exe!BKE_mesh_free(Mesh * me) Line 476	C  <------ same me as the above thread. 
 	blender.exe!BKE_object_free_derived_caches(Object * ob) Line 382	C
 	blender.exe!mesh_build_data(Depsgraph * depsgraph, Scene * scene, Object * ob, unsigned __int64 dataMask, const bool build_shapekey_layers, const bool need_mapping) Line 2942	C
 	blender.exe!mesh_get_eval_final(Depsgraph * depsgraph, Scene * scene, Object * ob, unsigned __int64 dataMask) Line 3105	C
 	blender.exe!BKE_object_data_transfer_ex(Depsgraph * depsgraph, Scene * scene, Object * ob_src, Object * ob_dst, Mesh * me_dst, const int data_types, bool use_create, const int map_vert_mode, const int map_edge_mode, const int map_loop_mode, const int map_poly_mode, SpaceTransform * space_transform, const bool auto_transform, const float max_distance, const float ray_radius, const float islands_handling_precision, const int * fromlayers_select, const int * tolayers_select, const int mix_mode, const float mix_factor, const unsigned char * vgroup_name, const bool invert_vgroup, ReportList * reports) Line 1116	C
 	blender.exe!applyModifier(ModifierData * md, const ModifierEvalContext * ctx, Mesh * me_mod) Line 195	C
 	blender.exe!modifier_applyModifier(ModifierData * md, const ModifierEvalContext * ctx, Mesh * mesh) Line 999	C
 	blender.exe!mesh_calc_modifiers(Depsgraph * depsgraph, Scene * scene, Object * ob, float[3] * inputVertexCos, int useDeform, const bool need_mapping, unsigned __int64 dataMask, const int index, const bool useCache, const bool build_shapekey_layers, const bool allow_gpu, Mesh * * r_deform_mesh, Mesh * * r_final_mesh) Line 2297	C
 	blender.exe!mesh_build_data(Depsgraph * depsgraph, Scene * scene, Object * ob, unsigned __int64 dataMask, const bool build_shapekey_layers, const bool need_mapping) Line 2955	C
 	blender.exe!makeDerivedMesh(Depsgraph * depsgraph, Scene * scene, Object * ob, BMEditMesh * em, unsigned __int64 dataMask, const bool build_shapekey_layers) Line 3062	C
 	blender.exe!BKE_object_handle_data_update(Depsgraph * depsgraph, Scene * scene, Object * ob) Line 207	C
 	blender.exe!BKE_object_eval_uber_data(Depsgraph * depsgraph, Scene * scene, Object * ob) Line 313	C
 	[Inline Frame] blender.exe!std::_Func_class<void,Depsgraph *>::operator()(Depsgraph * <_Args_0>) Line 94	C++
 	blender.exe!DEG::deg_task_run_func(TaskPool * pool, void * taskdata, int thread_id) Line 97	C++
 	[Inline Frame] blender.exe!handle_local_queue(TaskThreadLocalStorage *) Line 419	C
 	blender.exe!task_scheduler_thread_run(void * thread_p) Line 448	C
 	pthreadVC2.dll!000007fee772627b()	Unknown
 	pthreadVC2.dll!000007fee7728eb7()	Unknown
 	pthreadVC2.dll!000007fee7729102()	Unknown
 	kernel32.dll!BaseThreadInitThunk()	Unknown
 	ntdll.dll!RtlUserThreadStart()	Unknown
Benjamin Sauder (kioku) closed this task as Resolved.Oct 23 2018, 12:42 PM

this can be closed. I retried this every once in a while - in the version from 21.10.2018 I can now open my files again ( build: blender-2.80-13cfb641c6d-win64 ) thank you!