-
Notifications
You must be signed in to change notification settings - Fork 17
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
QGIS and UMEP closes unexpectedly #701
Comments
I have the same problem (QGIS 3.34.13). |
@AlexandraStankulova and @DavidUnkown : What are your windows (or other OS), Java and Python versions ?
@DavidUnkown I am not sure to understand well:
|
Hello, And when I use the new laptop, yes it closes immediatly after running URock. |
@j3r3m1: So I thought I would comment @AlexandraStankulova because the problem in QGIS is the same. I have reinstalled UMEP, but I haven't had time to reinstall QGIS and Visual Studio Code yet. |
OK thank you for your inputs to both of you. @DavidUnkown: it seems you have met several bugs
from subprocess import run
command = ["java","-version"]
output = run(command, check=True, capture_output=True, text=True)
if output.stdout is not None and output.stdout != "":
print(output.stdout)
if output.stderr is not None and output.stderr != "":
print(output.stderr)
|
To @AlexandraStankulova :
from subprocess import run
command = ["java","-version"]
output = run(command, check=True, capture_output=True, text=True)
if output.stdout is not None and output.stdout != "":
print(output.stdout)
if output.stderr is not None and output.stderr != "":
print(output.stderr) |
This is the output if I check for the java version: I've been using the QGIS-Plugin which is outdated (as you said) After upgrading, the model doesn't get stuck and everything works again: To me it seems like there is something off with the available version (stable) in QGIS: (Plugin Manager) Unfortunately, QGIS is still instant shutting down when trying to run the URock on version 2.1.6. Anyways, my problem got solved by upgrading to 2.1.6 and using Python scripts. |
@j3r3m1 Unfortunately, all I could find is it crashes before line 155 of the URock\MainCalculation.py --> 2. CREATES OBSTACLE GEOMETRIES. Below is the returned ProgressText: I lack the experience to further analyze the problem and couldn't find a way to return more error / warning information from QGIS. |
OK thank you for your detail reporting. |
@DavidUnkown update concerning this issue would be of great help |
@sstrumwasser it seems the current solution for you issue (UMEP-dev/UMEP-processing#97) is to use UMEP outside QGIS (cf. @DavidUnkown comment): https://umep-docs.readthedocs.io/projects/tutorial/en/latest/Tutorials/PythonProcessing2.html |
Sorry for not answering earlier. I ran the code snippet in VS Code and QGIS Python Console as test.py. The code worked in VS Code but returned an error message in QGIS Python Console. I've attached the results and my Environmental Variables Setup. VS Code Output
For URock to work in VS Code I had to add this Python Code:
QGIS Python Console Output
System Setup:I've duplicated the python.exe from QGIS as python3qgis
|
Thank you for your feedback. It your test.py contains the following code ? from subprocess import run
command = ["java","-version"]
output = run(command, check=True, capture_output=True, text=True)
if output.stdout is not None and output.stdout != "":
print(output.stdout)
if output.stderr is not None and output.stderr != "":
print(output.stderr) |
I should have included it in my answer. Yes, the test.py I ran in VS Code and QGIS Python Console was your code. |
@AlexandraStankulova can you update about what is returned by the QGIS Python console when you run the code:
|
Arf then I have no idea why the process does not work. Maybe having the @AlexandraStankulova results would help |
Hello. I will now report everything that the PC with Windows 10 shows me. Unfortunately, the PC with Windows 11 it is not mine, it was given to me just for little time to make some test. Anyhow the one with Windows 10:
from subprocess import run |
OK no worries it was only useful if you may still have access to the W11 computer. It seems the issue has been fixed by downgrading one library called jpype. The correct version should be 1.5.0. @DavidUnkown can you try updating the jpype version to this version and report what happens ? (cf. UMEP-dev/UMEP-processing#97 (comment)) Be careful to update this version in your QGIS environment since it works outside QGIS |
@DavidUnkown, @biglimp or @nilswallenberg is anyone of you can try the solution proposed by @sstrumwasser on a W11 machine ? |
Sorry, only W10 on my PC. |
@DavidUnkown any chance to make the test ?
|
Hi dear all. Current thread 0x00002f3c (most recent call first): Current thread 0x00002f3c (most recent call first): Current thread 0x00002f3c (most recent call first): Current thread 0x00002f3c (most recent call first): Current thread 0x00002f3c (most recent call first): Current thread 0x00002f3c (most recent call first): Thread 0x00004e14 (most recent call first): Thread 0x0000246c (most recent call first): Thread 0x00004f78 (most recent call first): Thread 0x00002460 (most recent call first): Current thread 0x00002f3c (most recent call first): Stack Trace QModelIndex::flags : QGIS Info System Info |
@NooshinHM can you please report when doees the plugin crashes, what is the OS you are using (eg: Windows 10), QGIS and Python versions (for the last 2 ones, you can get info in the "Help"-> "About" menu. |
I installed QGIS 3.34.14 and the UMEP and UMEP for processing from the repository to a completely new laptop.
When I launched the Wind Raster analysis with the "Urban Wind Field: URock v2023a", the Qgis just closes immediataly without showing any message.
The laptop is completely new and has 32GB RAM.
The text was updated successfully, but these errors were encountered: