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

QGIS and UMEP closes unexpectedly #701

Open
AlexandraStankulova opened this issue Jan 13, 2025 · 23 comments
Open

QGIS and UMEP closes unexpectedly #701

AlexandraStankulova opened this issue Jan 13, 2025 · 23 comments
Assignees

Comments

@AlexandraStankulova
Copy link

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.

@DavidUnkown
Copy link

I have the same problem (QGIS 3.34.13).
If I run URock in QGIS, QGIS shuts down without error message. I've set up Python for processing, but I get stuck at "Calculates the 3D wind speed factor value for each point of each VEGETATION zone". Last Wednesday, everything worked fine. I tried updating UMEP, UMEP for processing and reinstalling Java.

@j3r3m1
Copy link

j3r3m1 commented Jan 15, 2025

@AlexandraStankulova and @DavidUnkown : What are your windows (or other OS), Java and Python versions ?

@AlexandraStankulova :

  • QGIS closes immediable when you run URock, its does not bug while running after few seconds ?
  • Is it the case for any dataset you have used before ?
  • What are the differences between your old and your new computers in terms of installation settings ? (OS, Java, QGIS and Python versions)

@DavidUnkown I am not sure to understand well:

  • QGIS closes without error message while "Calculates the 3D wind speed factor value for each point of each VEGETATION zone"
  • you have tried reinstalling everything but you still get the same error ?

@AlexandraStankulova
Copy link
Author

Hello,
So I use Windows 10 and Java Development Kit 23 on the old laptop, while the new one is Windows 11 and again i installed Java development Kit 23.
While regarding the Pythin version I dont know how to see it.

And when I use the new laptop, yes it closes immediatly after running URock.

@DavidUnkown
Copy link

@j3r3m1:
QGIS closes immediately when I click on “Run”.
If I call the model via a Python script (see appendix, see SOLWEIG Python for processing - umep-docs), it stops at the model step “Calculates the 3D wind speed factor value for each point of each VEGETATION zone”.
Up until last Wednesday, the script worked without any problems. When I tried to run it this Tuesday, the Python script (normally 30min) hung up and after 3 hours it still hadn't started iteration for URock model. Then I tried URock via the QGIS plugin UMEP for processing and QGIS closed immediately.

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.

URock_error.txt
umep-scenarios-test.txt

@j3r3m1
Copy link

j3r3m1 commented Jan 16, 2025

OK thank you for your inputs to both of you.

@DavidUnkown: it seems you have met several bugs

  • one due to using the QGIS interface where QGIS shuts down immediatly (similar to @AlexandraStankulova)
    • what is the Windows version you are using ? 10 or 11 ?
    • what version of Java are you using ? 23 ?
    • do you have several Java versions installed ? Possible locations:
      • C:\Program Files\OpenJDK
      • C:\Program Files\Java
      • C:\Program Files (x86)\OpenJDK
      • C:\Program Files (x86)\Java
    • Interestingly, the error does not happen when you call QGIS via a Python script. Thus can you please can run the following commands in a Python script (when URock is working) and in a Python console within QGIS (where it does not work) ? And of course report the results for both
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)
  • the second issue is related to a UMEP version:
    • your case was working before last Wednesday (the 8th ?) but does not work with the last UMEP version ?
    • If so what is the UMEP version you are currently using ?
    • If different than 2.1.6 can you try to update your UMEP version with the last snapshot version (downloadable through the GitHub Code webpage as a zip) and report if the problem is solved ?
    • If not solved can you share your data ?

@j3r3m1
Copy link

j3r3m1 commented Jan 16, 2025

To @AlexandraStankulova :

  • to get Python version you can go to the "Help" -> "About" menu. If you can report that for your two computers (Windows 10 and 11) that would be helpful
  • And can you also run these few lines in a QGIS Python console in both Windows 10 and 11 and report what is the output for both of them
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)

@DavidUnkown
Copy link

This is the output if I check for the java version:
PS C:\Users\David\Documents\Studium\UrbaneHitze\urbanehitzepython> & "c:/Program Files/QGIS 3.34.13/apps/Python312/python3qgis.exe" c:/Users/David/Documents/Studium/UrbaneHitze/urbanehitzepython/test.py
java version "23.0.1" 2024-10-15
Java(TM) SE Runtime Environment (build 23.0.1+11-39)
Java HotSpot(TM) 64-Bit Server VM (build 23.0.1+11-39, mixed mode, sharing)

I've been using the QGIS-Plugin which is outdated (as you said)
name=UMEP for processing
qgisMinimumVersion=3.0
description=Urban Multi-scale Environmental Predictor (UMEP) for the QGIS processing framework
version=2.0.35
author=Fredrik Lindberg, Nils Wallenberg
email=fredrikl@gvc.gu.se

After upgrading, the model doesn't get stuck and everything works again:
Calculates the 3D wind speed factor value for each point of each BUILDING zone
Calculates the 3D wind speed factor value for each point of each VEGETATION zone
Deals with superimposition (keeps only 1 value per 3D point)
Deals with superimposition (keeps only 1 value per 3D point)
[...]
Time spent for wind speed initialization: 75.69608426094055 s
Shape: (352, 582, 38) - Nb cells: 7784832
Start to apply the wind solver
[...]
~ 7min duration for URock prepare + URock

To me it seems like there is something off with the available version (stable) in QGIS: (Plugin Manager)
Author Fredrik Lindberg, Nils Wallenberg
Installed version 2.1.6
Available version (stable) 2.0.35 updated at 10/25/2024 3:46 PM
... which I just found was discussed and solved in Issue Urock stuck in 3D wind calculation for vegetation #93.

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.
I really appreciate your fast help.

@DavidUnkown
Copy link

@j3r3m1
I tried to gain more information why QGIS closes without any error or warning message. I managed to write the ProgressText into a logfile if I run URock from a script.py in QGIS Python console.

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:
[2025-01-17 10:29:26] URock(Info): Attempting to run URock algorithm...
[2025-01-17 10:29:26] URock(Info): Progress message: Writing settings for this model run to specified output folder (Filename: RunInfoURock_YYYY_DOY_HHMM.txt)
[2025-01-17 10:29:26] URock(Info): Progress message: Initiating algorithm
[2025-01-17 10:29:26] URock(Info): Progress message: Creates an H2GIS Instance and load data

I lack the experience to further analyze the problem and couldn't find a way to return more error / warning information from QGIS.

@j3r3m1
Copy link

j3r3m1 commented Jan 17, 2025

OK thank you for your detail reporting.
Concerning the Java version returned using the Python code, do you get the same when run in the Python console AND in a console outside QGIS ? That would be helpful if you can do both.

@j3r3m1
Copy link

j3r3m1 commented Jan 22, 2025

OK thank you for your detail reporting. Concerning the Java version returned using the Python code, do you get the same when run in the Python console AND in a console outside QGIS ? That would be helpful if you can do both.

@DavidUnkown update concerning this issue would be of great help

@j3r3m1
Copy link

j3r3m1 commented Jan 22, 2025

@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

@DavidUnkown
Copy link

DavidUnkown commented Jan 22, 2025

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

PS C:\Users\David\Documents\Studium\UrbaneHitze\urbanehitzepython> & "c:/Program Files/QGIS 3.34.13/apps/Python312/python3qgis.exe" c:/Users/David/Documents/Studium/UrbaneHitze/urbanehitzepython/test.py
java version "23.0.1" 2024-10-15 
Java(TM) SE Runtime Environment (build 23.0.1+11-39) 
Java HotSpot(TM) 64-Bit Server VM (build 23.0.1+11-39, mixed mode, sharing)

For URock to work in VS Code I had to add this Python Code:

# Set Java environment
 java_path = r"C:\Program Files\Java\jdk-23"
 os.environ['JAVA_HOME'] = java_path
 java_bin = os.path.join(java_path, 'bin')
 if java_bin not in os.environ['PATH']:
     os.environ['PATH'] = java_bin + os.pathsep + os.environ['PATH']

QGIS Python Console Output

exec(Path('C:/Users/David/Documents/Studium/UrbaneHitze/Test.py').read_text())
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "<string>", line 4, in <module>
  File "C:\PROGRA~1\QGIS33~1.13\apps\Python312\Lib\subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\PROGRA~1\QGIS33~1.13\apps\Python312\Lib\subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\PROGRA~1\QGIS33~1.13\apps\Python312\Lib\subprocess.py", line 1538, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] Das System kann die angegebene Datei nicht finden
# deepl: The system cannot find the specified file

System Setup:

I've duplicated the python.exe from QGIS as python3qgis

  • Add QGIS Python executable path to system Path:
    C:\Program Files\QGIS 3.34.13\apps\Python312\
    C:\Program Files\QGIS 3.34.13\apps\Python312\python3qgis
  • Create PYTHONPATH with following values:
    C:\Program Files\QGIS 3.34.13\apps\qgis-ltr\python
    C:\Program Files\QGIS 3.34.13\apps\qgis-ltr\python\plugins
    C:\Program Files\QGIS 3.34.13\apps\qt5\plugins
    C:\Program Files\QGIS 3.34.13\apps\gdal\share\gdal
    C:\Users\David\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins
    C:\Users\David\AppData\Roaming\QGIS\QGIS3\profiles\default\python

Image

@j3r3m1
Copy link

j3r3m1 commented Jan 22, 2025

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)

@DavidUnkown
Copy link

I should have included it in my answer. Yes, the test.py I ran in VS Code and QGIS Python Console was your code.

@j3r3m1
Copy link

j3r3m1 commented Jan 22, 2025

To @AlexandraStankulova :

* to get Python version you can go to the "Help" -> "About" menu. If you can report that for your two computers (Windows 10 and 11) that would be helpful

* And can you also run these few lines in a QGIS Python console in both Windows 10 and 11 and report what is the output for both of them

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)

@AlexandraStankulova can you update about what is returned by the QGIS Python console when you run the code:

  1. for your W10
  2. for your W11

@j3r3m1
Copy link

j3r3m1 commented Jan 22, 2025

I should have included it in my answer. Yes, the test.py I ran in VS Code and QGIS Python Console was your code.

Arf then I have no idea why the process does not work. Maybe having the @AlexandraStankulova results would help

@AlexandraStankulova
Copy link
Author

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:

  • Python version 3.12.6

  • When I run the several lines that you showed me it gives me this:

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)
File "", line 1
command = ["java","-version"]
^
SyntaxError: multiple statements found while compiling a single statement

@j3r3m1
Copy link

j3r3m1 commented Jan 22, 2025

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

@j3r3m1
Copy link

j3r3m1 commented Jan 24, 2025

@DavidUnkown can you try updating the jpype version to this version and report what happens ? (cf. UMEP-dev/UMEP-processing#97 (comment))

@DavidUnkown, @biglimp or @nilswallenberg is anyone of you can try the solution proposed by @sstrumwasser on a W11 machine ?

@biglimp
Copy link
Contributor

biglimp commented Jan 24, 2025

Sorry, only W10 on my PC.

@j3r3m1
Copy link

j3r3m1 commented Jan 27, 2025

@DavidUnkown any chance to make the test ?

@DavidUnkown can you try updating the jpype version to this version and report what happens ? (cf. UMEP-dev/UMEP-processing#97 (comment))

@DavidUnkown, @biglimp or @nilswallenberg is anyone of you can try the solution proposed by @sstrumwasser on a W11 machine ?

@NooshinHM
Copy link

Hi dear all.
I have the same problem which crashed my QGIS several times:
Python Stack Trace
Windows fatal exception: access violation

Current thread 0x00002f3c (most recent call first):
File "C:\Users\xuso8246\AppData\Roaming\Python\Python312\site-packages\llvmlite\binding\ffi.py", line 192 in call
return self.cfn(*args, **kwargs)
File "C:\Users\xuso8246\AppData\Roaming\Python\Python312\site-packages\llvmlite\binding\executionengine.py", line 40 in check_jit_execution
errno = ffi.lib.LLVMPY_TryAllocateExecutableMemory()
File "C:\Users\xuso8246\AppData\Roaming\Python\Python312\site-packages\numba_init
.py", line 182 in ensure_llvm
check_jit_execution()
File "C:\Users\xuso8246\AppData\Roaming\Python\Python312\site-packages\numba_init
.py", line 232 in
_ensure_llvm()
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
mod = builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\util_init
.py", line 21 in
import numba
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\preprocessor\wall_heightaspect_algorithm.py", line 56 in
from ..util.misc import saverasternd
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\processing_umep_provider.py", line 36 in
from .preprocessor.wall_heightaspect_algorithm import ProcessingWallHeightAscpetAlgorithm
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\processing_umep.py", line 38 in
from .processing_umep_provider import ProcessingUMEPProvider
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
mod = builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep_init
.py", line 46 in classFactory
from .processing_umep import ProcessingUMEPPlugin
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 423 in _startPlugin
plugins[packageName] = package.classFactory(iface)
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 443 in startPlugin
if not _startPlugin(packageName):
Windows fatal exception: access violation

Current thread 0x00002f3c (most recent call first):
File "C:\Users\xuso8246\AppData\Roaming\Python\Python312\site-packages\llvmlite\binding\ffi.py", line 192 in call
return self.cfn(*args, **kwargs)
File "C:\Users\xuso8246\AppData\Roaming\Python\Python312\site-packages\llvmlite\binding\executionengine.py", line 40 in check_jit_execution
errno = ffi.lib.LLVMPY_TryAllocateExecutableMemory()
File "C:\Users\xuso8246\AppData\Roaming\Python\Python312\site-packages\numba_init
.py", line 182 in ensure_llvm
check_jit_execution()
File "C:\Users\xuso8246\AppData\Roaming\Python\Python312\site-packages\numba_init
.py", line 232 in
_ensure_llvm()
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
mod = builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\util_init
.py", line 21 in
import numba
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\preprocessor\wall_heightaspect_algorithm.py", line 56 in
from ..util.misc import saverasternd
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\processing_umep_provider.py", line 36 in
from .preprocessor.wall_heightaspect_algorithm import ProcessingWallHeightAscpetAlgorithm
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\processing_umep.py", line 38 in
from .processing_umep_provider import ProcessingUMEPProvider
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
mod = builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep_init
.py", line 46 in classFactory
from .processing_umep import ProcessingUMEPPlugin
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 423 in _startPlugin
plugins[packageName] = package.classFactory(iface)
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 443 in startPlugin
if not _startPlugin(packageName):
Windows fatal exception: access violation

Current thread 0x00002f3c (most recent call first):
File "C:\Users\xuso8246\AppData\Roaming\Python\Python312\site-packages\llvmlite\binding\ffi.py", line 192 in call
return self.cfn(*args, **kwargs)
File "C:\Users\xuso8246\AppData\Roaming\Python\Python312\site-packages\llvmlite\binding\executionengine.py", line 40 in check_jit_execution
errno = ffi.lib.LLVMPY_TryAllocateExecutableMemory()
File "C:\Users\xuso8246\AppData\Roaming\Python\Python312\site-packages\numba_init
.py", line 182 in ensure_llvm
check_jit_execution()
File "C:\Users\xuso8246\AppData\Roaming\Python\Python312\site-packages\numba_init
.py", line 232 in
_ensure_llvm()
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
mod = builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\util_init
.py", line 21 in
import numba
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\preprocessor\wall_heightaspect_algorithm.py", line 56 in
from ..util.misc import saverasternd
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\processing_umep_provider.py", line 36 in
from .preprocessor.wall_heightaspect_algorithm import ProcessingWallHeightAscpetAlgorithm
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\processing_umep.py", line 38 in
from .processing_umep_provider import ProcessingUMEPProvider
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
mod = builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep_init
.py", line 46 in classFactory
from .processing_umep import ProcessingUMEPPlugin
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 423 in _startPlugin
plugins[packageName] = package.classFactory(iface)
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 443 in startPlugin
if not _startPlugin(packageName):
Windows fatal exception: access violation

Current thread 0x00002f3c (most recent call first):
File "C:\Users\xuso8246\AppData\Roaming\Python\Python312\site-packages\llvmlite\binding\ffi.py", line 192 in call
return self.cfn(*args, **kwargs)
File "C:\Users\xuso8246\AppData\Roaming\Python\Python312\site-packages\llvmlite\binding\executionengine.py", line 40 in check_jit_execution
errno = ffi.lib.LLVMPY_TryAllocateExecutableMemory()
File "C:\Users\xuso8246\AppData\Roaming\Python\Python312\site-packages\numba_init
.py", line 182 in ensure_llvm
check_jit_execution()
File "C:\Users\xuso8246\AppData\Roaming\Python\Python312\site-packages\numba_init
.py", line 232 in
_ensure_llvm()
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
mod = builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\util_init
.py", line 21 in
import numba
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\preprocessor\wall_heightaspect_algorithm.py", line 56 in
from ..util.misc import saverasternd
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\processing_umep_provider.py", line 36 in
from .preprocessor.wall_heightaspect_algorithm import ProcessingWallHeightAscpetAlgorithm
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\processing_umep.py", line 38 in
from .processing_umep_provider import ProcessingUMEPProvider
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
mod = builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep_init
.py", line 46 in classFactory
from .processing_umep import ProcessingUMEPPlugin
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 423 in _startPlugin
plugins[packageName] = package.classFactory(iface)
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 443 in startPlugin
if not _startPlugin(packageName):
Windows fatal exception: access violation

Current thread 0x00002f3c (most recent call first):
File "C:\Users\xuso8246\AppData\Roaming\Python\Python312\site-packages\llvmlite\binding\ffi.py", line 192 in call
return self.cfn(*args, **kwargs)
File "C:\Users\xuso8246\AppData\Roaming\Python\Python312\site-packages\llvmlite\binding\executionengine.py", line 40 in check_jit_execution
errno = ffi.lib.LLVMPY_TryAllocateExecutableMemory()
File "C:\Users\xuso8246\AppData\Roaming\Python\Python312\site-packages\numba_init
.py", line 182 in ensure_llvm
check_jit_execution()
File "C:\Users\xuso8246\AppData\Roaming\Python\Python312\site-packages\numba_init
.py", line 232 in
_ensure_llvm()
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
mod = builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\util_init
.py", line 21 in
import numba
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\preprocessor\wall_heightaspect_algorithm.py", line 56 in
from ..util.misc import saverasternd
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\processing_umep_provider.py", line 36 in
from .preprocessor.wall_heightaspect_algorithm import ProcessingWallHeightAscpetAlgorithm
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\processing_umep.py", line 38 in
from .processing_umep_provider import ProcessingUMEPProvider
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
mod = builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep_init
.py", line 46 in classFactory
from .processing_umep import ProcessingUMEPPlugin
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 423 in _startPlugin
plugins[packageName] = package.classFactory(iface)
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 443 in startPlugin
if not _startPlugin(packageName):
Windows fatal exception: access violation

Current thread 0x00002f3c (most recent call first):
File "C:\Users\xuso8246\AppData\Roaming\Python\Python312\site-packages\llvmlite\binding\ffi.py", line 192 in call
return self.cfn(*args, **kwargs)
File "C:\Users\xuso8246\AppData\Roaming\Python\Python312\site-packages\llvmlite\binding\executionengine.py", line 40 in check_jit_execution
errno = ffi.lib.LLVMPY_TryAllocateExecutableMemory()
File "C:\Users\xuso8246\AppData\Roaming\Python\Python312\site-packages\numba_init
.py", line 182 in ensure_llvm
check_jit_execution()
File "C:\Users\xuso8246\AppData\Roaming\Python\Python312\site-packages\numba_init
.py", line 232 in
_ensure_llvm()
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
mod = builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\util_init
.py", line 21 in
import numba
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\preprocessor\wall_heightaspect_algorithm.py", line 56 in
from ..util.misc import saverasternd
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\processing_umep_provider.py", line 36 in
from .preprocessor.wall_heightaspect_algorithm import ProcessingWallHeightAscpetAlgorithm
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\processing_umep.py", line 38 in
from .processing_umep_provider import ProcessingUMEPProvider
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 892 in _import
mod = builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep_init
.py", line 46 in classFactory
from .processing_umep import ProcessingUMEPPlugin
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 423 in _startPlugin
plugins[packageName] = package.classFactory(iface)
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python\qgis\utils.py", line 443 in startPlugin
if not _startPlugin(packageName):
Windows fatal exception: access violation

Thread 0x00004e14 (most recent call first):
File "C:\Users/xuso8246/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\preprocessor\dsm_generator_algorithm.py", line 412 in processAlgorithm
vlayer.updateFeature(f)

Thread 0x0000246c (most recent call first):
File "C:\PROGRA1\QGIS331.15\apps\Python312\Lib\multiprocessing\connection.py", line 321 in _recv_bytes
waitres = _winapi.WaitForMultipleObjects(
File "C:\PROGRA1\QGIS331.15\apps\Python312\Lib\multiprocessing\connection.py", line 250 in recv
buf = self._recv_bytes()
File "C:\PROGRA1\QGIS331.15\apps\Python312\Lib\multiprocessing\pool.py", line 579 in _handle_results
task = get()
File "C:\PROGRA1\QGIS331.15\apps\Python312\Lib\threading.py", line 1012 in run
self._target(*self._args, **self._kwargs)
File "C:\PROGRA1\QGIS331.15\apps\Python312\Lib\threading.py", line 1075 in _bootstrap_inner
self.run()
File "C:\PROGRA1\QGIS331.15\apps\Python312\Lib\threading.py", line 1032 in _bootstrap
self._bootstrap_inner()

Thread 0x00004f78 (most recent call first):
File "C:\PROGRA1\QGIS331.15\apps\Python312\Lib\multiprocessing\pool.py", line 531 in _handle_tasks
for taskseq, set_length in iter(taskqueue.get, None):
File "C:\PROGRA1\QGIS331.15\apps\Python312\Lib\threading.py", line 1012 in run
self._target(*self._args, **self._kwargs)
File "C:\PROGRA1\QGIS331.15\apps\Python312\Lib\threading.py", line 1075 in _bootstrap_inner
self.run()
File "C:\PROGRA1\QGIS331.15\apps\Python312\Lib\threading.py", line 1032 in _bootstrap
self._bootstrap_inner()

Thread 0x00002460 (most recent call first):
File "C:\PROGRA1\QGIS331.15\apps\Python312\Lib\multiprocessing\connection.py", line 1016 in _exhaustive_wait
res = _winapi.WaitForMultipleObjects(L, False, timeout)
File "C:\PROGRA1\QGIS331.15\apps\Python312\Lib\multiprocessing\connection.py", line 1084 in wait
ready_handles = _exhaustive_wait(waithandle_to_obj.keys(), timeout)
File "C:\PROGRA1\QGIS331.15\apps\Python312\Lib\multiprocessing\pool.py", line 502 in _wait_for_updates
wait(sentinels, timeout=timeout)
File "C:\PROGRA1\QGIS331.15\apps\Python312\Lib\multiprocessing\pool.py", line 522 in _handle_workers
cls._wait_for_updates(current_sentinels, change_notifier)
File "C:\PROGRA1\QGIS331.15\apps\Python312\Lib\threading.py", line 1012 in run
self._target(*self._args, **self._kwargs)
File "C:\PROGRA1\QGIS331.15\apps\Python312\Lib\threading.py", line 1075 in _bootstrap_inner
self.run()
File "C:\PROGRA1\QGIS331.15\apps\Python312\Lib\threading.py", line 1032 in _bootstrap
self._bootstrap_inner()

Current thread 0x00002f3c (most recent call first):
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python/plugins\processing\ProcessingPlugin.py", line 432 in executeAlgorithm
dlg.exec_()
File "C:\PROGRA1/QGIS331.15/apps/qgis-ltr/./python/plugins\processing\gui\ProcessingToolbox.py", line 232 in executeAlgorithm
self.executeWithGui.emit(alg.id(), self, self.in_place_mode, False)

Stack Trace

QModelIndex::flags :
QAbstractItemView::currentChanged :
QListView::currentChanged :
QObject::qt_static_metacall :
QItemSelectionModel::setCurrentIndex :
QUndoView::stack :
QObject::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QCoreApplicationPrivate::sendPostedEvents :
qt_plugin_query_metadata :
QEventDispatcherWin32::processEvents :
qt_plugin_query_metadata :
QEventLoop::exec :
QDialog::exec :
PyInit_QtWidgets :
PyLong_FromString :
PyObject_Vectorcall :
PyObject_Vectorcall :
PyEval_EvalFrameDefault :
PyFunction_Vectorcall :
PyArg_CheckPositional :
PyObject_Call :
PyObject_Call :
PyInit_QtCore :
PyInit_QtCore :
PyInit_QtCore :
PyInit_QtCore :
PyInit_QtCore :
PyInit_QtCore :
QObject::qt_static_metacall :
QMetaObject::activate :
PyInit_QtCore :
PyInit_QtCore :
PyObject_Vectorcall :
PyObject_Vectorcall :
PyEval_EvalFrameDefault :
PyFunction_Vectorcall :
PyArg_CheckPositional :
PyObject_Call :
PyObject_Call :
PyInit_QtCore :
PyInit_QtCore :
PyInit_QtCore :
PyInit_QtCore :
QObject::qt_static_metacall :
QAbstractItemView::doubleClicked :
QTreeView::mouseDoubleClickEvent :
PyInit__gui :
QWidget::event :
QFrame::event :
QAbstractItemView::viewportEvent :
PyInit__gui :
QCoreApplicationPrivate::sendThroughObjectEventFilters :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QApplicationPrivate::sendMouseEvent :
QSizePolicy::QSizePolicy :
QSizePolicy::QSizePolicy :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QGuiApplicationPrivate::processMouseEvent :
QWindowSystemInterface::sendWindowSystemEvents :
QEventDispatcherWin32::processEvents :
qt_plugin_query_metadata :
QEventLoop::exec :
QCoreApplication::exec :
main :
BaseThreadInitThunk :
RtlUserThreadStart :

QGIS Info
QGIS Version: 3.34.15-Prizren
QGIS code revision: 386f2583
Compiled against Qt: 5.15.13
Running against Qt: 5.15.13
Compiled against GDAL: 3.10.1
Running against GDAL: 3.10.1

System Info
CPU Type: x86_64
Kernel Type: winnt
Kernel Version: 10.0.26100

@j3r3m1
Copy link

j3r3m1 commented Mar 6, 2025

@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.

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

5 participants