Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Urban Wind Field: URock instantly closes QGIS #679

Open
Weyst-GIS opened this issue Dec 9, 2024 · 23 comments
Open

Urban Wind Field: URock instantly closes QGIS #679

Weyst-GIS opened this issue Dec 9, 2024 · 23 comments

Comments

@Weyst-GIS
Copy link

The Processor option of Urban wind field: URock v2023a was working normally till a couple of days ago, but yesterday when i needed to use the function it didnt work. The problem is very strange cause when i add my parameters as usual and click run it instantly closes QGIS and it doesn't record an error log or something. I thought it was a problem from my computer or QGIS, but i tried everything i can think of and it still did that, and it only does it for the URock function, for example the SVF works normally. Today i tried the same thing but on another PC and it did the exact same problem with instantly closing QGIS. Someone has the same problem or an idea of how to fix it?

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Desktop (please complete the following information):

  • OS: Windows 11 Pro
  • QGIS Version 3.34.13
  • UMEP Version 2.0.35 (for processing)
  • SuPy Version [e.g. 2021.1.23]

Screenshots
If applicable, add screenshots to help explain your problem.

Data
If applicable, add data files to help us reproduce your problem.

Additional context
Add any other context about the problem here.

@j3r3m1
Copy link

j3r3m1 commented Dec 10, 2024

Hi @Weyst-GIS,
This is indeed weird that it starts to fail while it was working before if you did not change anything.
Did you update Java ? What is your current java version ?
You can first have a try updating the UMEP version to the last development version (see https://umep-docs.readthedocs.io/en/latest/Getting_Started.html#installing-development-release-could-be-unstable) and report it it changes anything.

@ldilov
Copy link

ldilov commented Dec 15, 2024

Hi @j3r3m1 ,

Issue is reproducable on my end as well. Here is a detailed log:

`Windows fatal exception: code 0xc0000139

Thread 0x00008eec (most recent call first):
File "", line 488 in _call_with_frames_removed
File Windows fatal exception: code 0xc0000139

"", line 1289 in create_module
File "", line 813 in module_from_spec
File "", line 921 in _load_unlocked
File "", line 1331 in _find_and_load_unlocked
File "", line 1360 in _find_and_load
File "C:\PROGRA1/QGIS331.13/apps/qgis-ltr/./python\qgis\utils.py", line 892 in import
File "C:\PROGRA1\QGIS331.13\apps\Python312\Lib\site-packages\pyarrow_init
.py", line 65 in
File "", line 488 in _call_with_frames_removed
File "", line 995 in exec_module
File "", line 935 in _load_unlocked
File "", line 1331 in _find_and_load_unlocked
File "", line 1360 in _find_and_load
File "C:\PROGRA1/QGIS331.13/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
File "C:\PROGRA1\QGIS331.13\apps\Python312\Lib\site-packages\pandas\compat\pyarrow.py", line 8 in
File "", line 488 in _call_with_frames_removed
File "", line 995 in exec_module
File "", line 935 in _load_unlocked
File "", line 1331 in _find_and_load_unlocked
File "", line 1360 in _find_and_load
File "C:\PROGRA1/QGIS331.13/apps/qgis-ltr/./python\qgis\utils.py", line 892 in import
File "C:\PROGRA1\QGIS331.13\apps\Python312\Lib\site-packages\pandas\compat_init
.py", line 27 in
File "", line 488 in _call_with_frames_removed
File "", line 995 in exec_module
File "", line 935 in _load_unlocked
File "", line 1331 in _find_and_load_unlocked
File "", line 1360 in _find_and_load
File "C:\PROGRA1/QGIS331.13/apps/qgis-ltr/./python\qgis\utils.py", line 892 in import
File "C:\PROGRA1\QGIS331.13\apps\Python312\Lib\site-packages\pandas_init
.py", line 26 in
File "", line 488 in _call_with_frames_removed
File "", line 995 in exec_module
File "", line 935 in _load_unlocked
File "", line 1331 in _find_and_load_unlocked
File "", line 1360 in _find_and_load
File "C:\PROGRA1/QGIS331.13/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
File "C:\Users\lazar\AppData\Roaming\Python\Python312\site-packages\supy_supy_module.py", line 21 in
File "", line 488 in _call_with_frames_removed
File "", line 995 in exec_module
File "", line 935 in _load_unlocked
File "", line 1331 in _find_and_load_unlocked
File "", line 1360 in _find_and_load
File "C:\PROGRA1/QGIS331.13/apps/qgis-ltr/./python\qgis\utils.py", line 892 in import
File "C:\Users\lazar\AppData\Roaming\Python\Python312\site-packages\supy_init
.py", line 29 in
File "", line 488 in _call_with_frames_removed
File "", line 995 in exec_module
File "", line 935 in _load_unlocked
File "", line 1331 in _find_and_load_unlocked
File "", line 1360 in _find_and_load
File "C:\PROGRA1/QGIS331.13/apps/qgis-ltr/./python\qgis\utils.py", line 892 in import
File "C:\Users/lazar/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\util_init
.py", line 18 in
File "", line 488 in _call_with_frames_removed
File "", line 995 in exec_module
File "", line 935 in _load_unlocked
File "", line 1331 in _find_and_load_unlocked
File "", line 1360 in _find_and_load
File "", line 488 in _call_with_frames_removed
File "", line 1310 in _find_and_load_unlocked
File "", line 1360 in _find_and_load
File "C:\PROGRA1/QGIS331.13/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
File "C:\Users/lazar/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\preprocessor\wall_heightaspect_algorithm.py", line 56 in
File "", line 488 in _call_with_frames_removed
File "", line 995 in exec_module
File "", line 935 in _load_unlocked
File "", line 1331 in _find_and_load_unlocked
File "", line 1360 in _find_and_load
File "C:\PROGRA1/QGIS331.13/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
File "C:\Users/lazar/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\processing_umep_provider.py", line 36 in
File "", line 488 in _call_with_frames_removed
File "", line 995 in exec_module
File "", line 935 in _load_unlocked
File "", line 1331 in _find_and_load_unlocked
File "", line 1360 in _find_and_load
File "C:\PROGRA1/QGIS331.13/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
File "C:\Users/lazar/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\processing_umep.py", line 38 in
File "", line 488 in _call_with_frames_removed
File "", line 995 in exec_module
File "", line 935 in _load_unlocked
File "", line 1331 in _find_and_load_unlocked
File "", line 1360 in _find_and_load
File "C:\PROGRA1/QGIS331.13/apps/qgis-ltr/./python\qgis\utils.py", line 892 in import
File "C:\Users/lazar/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep_init
.py", line 46 in classFactory
File "C:\PROGRA1/QGIS331.13/apps/qgis-ltr/./python\qgis\utils.py", line 423 in _startPlugin
File "C:\PROGRA1/QGIS331.13/apps/qgis-ltr/./python\qgis\utils.py", line 443 in startPlugin
File "", line 1 in
Windows fatal exception: code 0xc0000139

Thread 0x00008eec (most recent call first):
File "", line 488 in _call_with_frames_removed
File "", line 1289 in create_module
File "", line 813 in module_from_spec
File "", line 921 in _load_unlocked
File "", line 1331 in _find_and_load_unlocked
File "", line 1360 in _find_and_load
File "C:\PROGRA1/QGIS331.13/apps/qgis-ltr/./python\qgis\utils.py", line 892 in import
File "C:\PROGRA1\QGIS331.13\apps\Python312\Lib\site-packages\pyarrow_init
.py", line 65 in
File "", line 488 in _call_with_frames_removed
File "", line 995 in exec_module
File "", line 935 in _load_unlocked
File ""Windows fatal exception: , line 1331 in _find_and_load_unlockedcode 0xc0000139

File "", line 1360 in _find_and_load
File "", line 488 in _call_with_frames_removed
File "", line 1297 in exec_module
File "", line 935 in _load_unlocked
File "", line 1331 in _find_and_load_unlocked
File "", line 1360 in _find_and_load
File "", line 488 in _call_with_frames_removed
File "", line 1415 in _handle_fromlist
File "C:\PROGRA1/QGIS331.13/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
File "C:\PROGRA1\QGIS331.13\apps\Python312\Lib\site-packages\pandas\core\dtypes\dtypes.py", line 24 in
File "", line 488 in _call_with_frames_removed
File "", line 995 in exec_module
File "", line 935 in _load_unlocked
File "", line 1331 in _find_and_load_unlocked
File "", line 1360 in _find_and_load
File "C:\PROGRA1/QGIS331.13/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
File "C:\PROGRA1\QGIS331.13\apps\Python312\Lib\site-packages\pandas\core\api.py", line 9 in
File "", line 488 in _call_with_frames_removed
File "", line 995 in exec_module
File "", line 935 in _load_unlocked
File "", line 1331 in _find_and_load_unlocked
File "", line 1360 in _find_and_load
File "C:\PROGRA1/QGIS331.13/apps/qgis-ltr/./python\qgis\utils.py", line 892 in import
File "C:\PROGRA1\QGIS331.13\apps\Python312\Lib\site-packages\pandas_init
.py", line 49 in
File "", line 488 in _call_with_frames_removed
File "", line 995 in exec_module
File "", line 935 in _load_unlocked
File "", line 1331 in _find_and_load_unlocked
File "", line 1360 in _find_and_load
File "C:\PROGRA1/QGIS331.13/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
File "C:\Users\lazar\AppData\Roaming\Python\Python312\site-packages\supy_supy_module.py", line 21 in
File "", line 488 in _call_with_frames_removed
File "", line 995 in exec_module
File "", line 935 in _load_unlocked
File "", line 1331 in _find_and_load_unlocked
File "", line 1360 in _find_and_load
File "C:\PROGRA1/QGIS331.13/apps/qgis-ltr/./python\qgis\utils.py", line 892 in import
File "C:\Users\lazar\AppData\Roaming\Python\Python312\site-packages\supy_init
.py", line 29 in
File "", line 488 in _call_with_frames_removed
File "", line 995 in exec_module
File "", line 935 in _load_unlocked
File "", line 1331 in _find_and_load_unlocked
File "", line 1360 in _find_and_load
File "C:\PROGRA1/QGIS331.13/apps/qgis-ltr/./python\qgis\utils.py", line 892 in import
File "C:\Users/lazar/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\util_init
.py", line 18 in
File "", line 488 in _call_with_frames_removed
File "", line 995 in exec_module
File "", line 935 in _load_unlocked
File "", line 1331 in _find_and_load_unlocked
File "", line 1360 in _find_and_load
File "", line 488 in _call_with_frames_removed
File "", line 1310 in _find_and_load_unlocked
File "", line 1360 in _find_and_load
File "C:\PROGRA1/QGIS331.13/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
File "C:\Users/lazar/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\preprocessor\wall_heightaspect_algorithm.py", line 56 in
File "", line 488 in _call_with_frames_removed
File "", line 995 in exec_module
File "", line 935 in _load_unlocked
File "", line 1331 in _find_and_load_unlocked
File "", line 1360 in _find_and_load
File "C:\PROGRA1/QGIS331.13/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
File "C:\Users/lazar/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\processing_umep_provider.py", line 36 in
File "", line 488 in _call_with_frames_removed
File "", line 995 in exec_module
File "", line 935 in _load_unlocked
File "", line 1331 in _find_and_load_unlocked
File "", line 1360 in _find_and_load
File "C:\PROGRA1/QGIS331.13/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
File "C:\Users/lazar/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\processing_umep.py", line 38 in
File "", line 488 in _call_with_frames_removed
File "", line 995 in exec_module
File "", line 935 in _load_unlocked
File "", line 1331 in _find_and_load_unlocked
File "", line 1360 in _find_and_load
File "C:\PROGRA1/QGIS331.13/apps/qgis-ltr/./python\qgis\utils.py", line 892 in import
File "C:\Users/lazar/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep_init
.py", line 46 in classFactory
File "C:\PROGRA1/QGIS331.13/apps/qgis-ltr/./python\qgis\utils.py", line 423 in _startPlugin
File "C:\PROGRA1/QGIS331.13/apps/qgis-ltr/./python\qgis\utils.py", line 443 in startPlugin
File "", line 1 in
Windows fatal exception: code 0x8001010d

Current thread 0x00008eec (most recent call first):

`

@j3r3m1
Copy link

j3r3m1 commented Dec 15, 2024

@ldilov is this also happen ONLY when running URock ?

Which version of the UMEP plugin are you using ?

@Weyst-GIS is using the last version solved the issue ?

@Weyst-GIS
Copy link
Author

Weyst-GIS commented Dec 15, 2024

@j3r3m1 Unfortunately, it didn't resolve the problem and I still can't fix it..

@j3r3m1
Copy link

j3r3m1 commented Dec 15, 2024

@j3r3m1 Unfortunately, it didn't resolve the problem and I still can't fix it..

Between the day URock was working and the day it was not working anymore:

  • did you update the UMEP plugin ?
  • did you update some Python lib ?
  • did you update any of you java versions ?

@ldilov
Copy link

ldilov commented Dec 16, 2024

I just installed it to test, and it didnt work at all. I havent updated anything, it showed the error the very first time I installed it.

@ldilov
Copy link

ldilov commented Dec 16, 2024

@j3r3m1
I believe you can easily reproduce by just installing QGIS LTS + UMep Processing plugin. Then process something via URock and u will see the behaviour

@j3r3m1
Copy link

j3r3m1 commented Dec 17, 2024

@j3r3m1 Unfortunately, it didn't resolve the problem and I still can't fix it..

Between the day URock was working and the day it was not working anymore:

* did you update the UMEP plugin ?

* did you update some Python lib ?

* did you update any of you java versions ?

The question is adressed to @Weyst-GIS

@ldilov
Copy link

ldilov commented Dec 17, 2024

@j3r3m1 Unfortunately, it didn't resolve the problem and I still can't fix it..

Between the day URock was working and the day it was not working anymore:

* did you update the UMEP plugin ?

* did you update some Python lib ?

* did you update any of you java versions ?

The question is adressed to @Weyst-GIS

I am sorry, should i create a separate issue, it is basically the same problem. Just wanted to avoid redundant duplicates.

@Weyst-GIS
Copy link
Author

@j3r3m1 Unfortunately, it didn't resolve the problem and I still can't fix it..

Between the day URock was working and the day it was not working anymore:

* did you update the UMEP plugin ?

* did you update some Python lib ?

* did you update any of you java versions ?

The question is adressed to @Weyst-GIS

I didnt do any of that stuff, but as i see other people also have this problem. By any chance can you test does the Urock function works with you?

@j3r3m1
Copy link

j3r3m1 commented Dec 17, 2024

@j3r3m1 I believe you can easily reproduce by just installing QGIS LTS + UMep Processing plugin. Then process something via URock and u will see the behaviour

Unfortunately I cannot reproduce the problem on my OS (Linux). And I have currently no Windows OS nearby to have a test.

What is strange is that the log you have shared do not contain any reference to URock. I see that there might be an issue between pandas and pyarrow. Can you please tell me what are the versions of these libraries in your installation ?

@j3r3m1
Copy link

j3r3m1 commented Dec 17, 2024

@j3r3m1 Unfortunately, it didn't resolve the problem and I still can't fix it..

@Weyst-GIS did you uninstall properly the UMEP plugin before to reinstall the last UMEP snapshot version from zip file ? Just to be sure that the last version has been used and not the official UMEP available on the QGIS repo.

@ldilov
Copy link

ldilov commented Dec 17, 2024

@j3r3m1 I believe you can easily reproduce by just installing QGIS LTS + UMep Processing plugin. Then process something via URock and u will see the behaviour

Unfortunately I cannot reproduce the problem on my OS (Linux). And I have currently no Windows OS nearby to have a test.

What is strange is that the log you have shared do not contain any reference to URock. I see that there might be an issue between pandas and pyarrow. Can you please tell me what are the versions of these libraries in your installation ?

Hi Jeremi, I know that it works under linux, the question is what are windows users expected to do, as u know, majority of the users use Windows. Pandas and pyarrow are installed by the plugin or qgis. So thats what I would personally want to clarify. Is pandas and pyarrow installed by your plugin or it is by Qgis. I mean, python packages are management by me for sure.If u are not managing them either, then we should go to qgis.

@j3r3m1
Copy link

j3r3m1 commented Dec 17, 2024

There is no direct installation or use of pyarrow in UMEP but I cannot say for sure that it is not used through pandas in our code. According to your log, it seems that the error comes in QGIS:

File "C:\PROGRA1/QGIS331.13/apps/qgis-ltr/./python\qgis\utils.py", line 892 in import
File "C:\PROGRA1\QGIS331.13\apps\Python312\Lib\site-packages\pyarrow_init.py", line 65 in

Maybe certain versions of QGIS uses a specific version of pyarrow which is not compatible with the version of pandas installed through the UMEP plugin ? I have not idea. Did you try using other versions of QGIS (newer versions ?).

@biglimp any comment for this error ? Which version of UMEP + QGIS are you using on your windows machine (since I know you have recently run URock) ?

@Weyst-GIS
Copy link
Author

@biglimp
Copy link
Contributor

biglimp commented Dec 17, 2024

UMEP does not install pansas nor pyarrow. That is installed by QGIS or individually by the user. pyarrow is not used by UMEP at all as far as I know. Use QGIS 3.40 or LTR with python 3.12 and rhe latest development version of UMEP on Windows 11 or 10 (maybe also 7) and it should work just fine.

@j3r3m1
Copy link

j3r3m1 commented Dec 17, 2024

https://github.com/user-attachments/assets/57e89a79-204d-432d-b0df-9ea8f160e9ce Here is a video of the problem.

A java issue ? Which version of java are you using ? Try the following in a command prompt

java -version

@ldilov
Copy link

ldilov commented Dec 18, 2024

hi @j3r3m1 ,
Until Weyst responds, I have the same issue as him, and on my end java is version 21.0.5 LTS 64-bit. If that would help.

@j3r3m1
Copy link

j3r3m1 commented Dec 18, 2024

hi @j3r3m1 , Until Weyst responds, I have the same issue as him, and on my end java is version 21.0.5 LTS 64-bit. If that would help.

can you share the entire answer from the command ?

@j3r3m1
Copy link

j3r3m1 commented Dec 18, 2024

UMEP does not install pansas nor pyarrow. That is installed by QGIS or individually by the user. pyarrow is not used by UMEP at all as far as I know. Use QGIS 3.40 or LTR with python 3.12 and rhe latest development version of UMEP on Windows 11 or 10 (maybe also 7) and it should work just fine.

@ldilov can you have a try ?

@Weyst-GIS
Copy link
Author

@j3r3m1 java version "21.0.5" 2024-10-15 LTS
Java(TM) SE Runtime Environment (build 21.0.5+9-LTS-239)
Java HotSpot(TM) 64-Bit Server VM (build 21.0.5+9-LTS-239, mixed mode, sharing)

@ldilov
Copy link

ldilov commented Dec 19, 2024

~ ᐅ java --version
java 21.0.5 2024-10-15 LTS
Java(TM) SE Runtime Environment (build 21.0.5+9-LTS-238)
Java HotSpot(TM) 64-Bit Server VM (build 21.0.5+9-LTS-238, mixed mode, sharing)

I actually tried on 2 new fresh installed machines with this same Java from the Oracle website, I just download the current LTS version. Java is the only thing common between the machines and the issue is reproducable on both of them.

@j3r3m1
Copy link

j3r3m1 commented Dec 19, 2024

@ldilov and @Weyst-GIS what about installing QGIS 3.40 or LTR with python 3.12 and the latest development version of UMEP on Windows 11 or 10 ? Same issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants