domlysz / BlenderGIS

Blender addons to make the bridge between Blender and geographic data
GNU General Public License v3.0
7.69k stars 1.35k forks source link

Blender crashes when searching new SRS #415

Open gisep opened 3 years ago

gisep commented 3 years ago

Blender and OS versions

Bender 2.83.9-2.91, Windows 10

Describe the bug

Hi, i'm issuing a problem: blender crashes when trying to search a new Spatial Reference System. I've tried it with Blender 2.83.9 and Blender 2.91, same problem.

How to Reproduce

click on Modify --> Preferences --> Add-Ons --> BlenderGIS --> Spatial Reference Systems --> Add --> Research

Error message

INFO:BlenderGIS-master:82:###### Starting new Blender session : 2020-11-16 15:28:42 DEBUG:BlenderGIS-master.core.checkdeps:9:GDAL Python binding unavailable DEBUG:BlenderGIS-master.core.checkdeps:20:PyProj unavailable DEBUG:BlenderGIS-master.core.checkdeps:31:Pillow unavailable DEBUG:BlenderGIS-master.core.checkdeps:46:ImageIO Freeimage plugin available

domlysz commented 3 years ago

Cannot reproduce on my side. Can you please start Blender from the Windows console and then report to me the eventual error message printed in the console after the crash.

domlysz commented 3 years ago

Duplicate #325

PeteBo commented 3 years ago

Hi

I experience the same issue when trying to search for a CRS in BlenderGIS. Here is how i can reproduce it.

GIS -> Import -> Shapefile -> I select my file -> I want to select CRS -> enable search

Sometimes blender crashes at this very moment when search is enabled, other times I can enter my search string and it crashes, simetimes it even loads and populates the drop down list with search results.

I attach the console output from one session that crashed after I input my search string and then I clicked the drop down to see the search results. I also attach the blender.crash.txt

Thanks & best regards, Peter

blender.crash.txt blender_crash_console_output.txt

domlysz commented 3 years ago

Thanks for the report

Not sure if it's linked but I'm able to reproduce a similar crash by pressing enter while the mouse pointer is over the 'search' checkbox. As the query is executed after pressing enter on the text box, I've the feeling it's the origin of the problem.

Note that Blender crash everytime when pressing enter with the mouse pointer over any checkbox of any dialog. Can you reproduce this behaviour on your side?

PeteBo commented 3 years ago

Sorry, I can't confirm a connection to pressing Enter while hovering over the search check box.

I tried it and my blender didn't crash with Enter while hovering.

Usually I do it like this...

In the dialog I first click the check box to enable it, then click in the search string field, type my string then TAB out of the field and wait until drop down is populated. Blender may crash at any moment during this procedure.

domlysz commented 3 years ago

ok thank you for the feedback, I'dont know whats wrong, so I think I'll try to rewrite the dialog in a different way (making another separate popup for the search), to reduce the number of callback functions and the probably of having multiple assignment of the same property in the same time (access violation error)

gisep commented 3 years ago

Hi, sorry for the late response. I post my error message if it could still be useful.

CMD message: Error : EXCEPTION_ACCESS_VIOLATION Address : 0x00007FF7347DF5CE Module : blender.exe Thread : 00002e64 Writing: C:\Users...\AppData\Local\Temp\blender.crash.txt

blender.crash.txt

elevencore commented 3 years ago

Hi,

Same problem here on Blender 2.91. Crash occures when trying to search for another projection...Is there a workaround to add a projection file manually ?

Thanks.

See attachements for console output.

blender_crash_console_output.txt blender.crash-1.txt