-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Labels
Description
Summary:
- converting
.ersfile (ERM) to geoTIFF (TIF) using thegeosoft.gxpy.grid.image_filefunction orgeosoft.gxpy.grid.Grid.image_file()class function crashes the desktop application. - no crashes experienced using
geosoft.gxpy.grid.Grid.copy()with a (TIF) decorator - tried with another
.ersfile with dtypedtype('float32'), issue does not occur. unsure if this only limited todtype('float64')as I do not have another sample.
Encountering a reproducible application crash with the following configuration:
OS:
Edition Windows 11 Enterprise
Version 23H2
OS build 22631.4460
Experience Windows Feature Experience Pack 1000.22700.1047.0
gxpy python API: version 2024.1
Geosoft Viewer Windows Desktop Application: version 2024.1
Python: Python 3.10.11
repro (python 3.10):
>>> from geosoft.gxpy.grid import image_file
>>> import geosoft.gxpy.gx as gx
>>> gxc = gx.GXpy()
>>> image_file("my_file.ers(ERM)", "gxpy_image_file_gtiff.tif", "GTIFF")
Preparing to export......
Extracting image data... 0% completed...
Computing Raw Data Range 100% completed...
Computing Raw Data Range 100% completed...
Drawing: my_file 0% completed...
Caching grid... 100% completed...
Calculating statistics 99% completed...
Creating histogram 99% completed...
Computing Raw Data Range 100% completed...
Caching grid... 0% completed.....
<<application crashes, crash dump pasted below>>
File properties, per gxpy:
>>> import geosoft.gxpy.gx as gx
>>> gxc = gx.GXpy()
>>> ggrd1 = gxgrd.Grid.open("my_file.ers(ERM)")
>>> ggrd1.properties()
{'nx': 2076, 'ny': 3911, 'x0': 499850.0, 'y0': 7031250.0, 'dx': 50.0, 'dy': 50.0, 'rot': -0.0, 'is_color': False, 'dtype': dtype('float64'), 'gridtype': 'ERS', 'decoration': 'ERM', 'unit_of_measure': '', 'coordinate_system': <class 'geosoft.gxpy.coordinate_system.Coordinate_system'>({'_dict': None, '_gxapi_ipj': <geosoft.gxapi.GXIPJ.GXIPJ object at 0x000001D0CD2A4E40>})}
Windows application abort log:
GEOSOFT PROGRAM TERMINATION
Please E-Mail to support@seequent.com
Also note what the program was doing at the time of failure.
------------------------------------------------------------
CURRENT COMPUTER PROFILE
Operating System: Windows 11
CPU Type: 64 Bit CPU
Number of CPUs: 8
Memory Utilization: 69%
Total Physical Memory: 32546.76 MB
Available Physical Memory: 10001.18 MB
Total Virtual Memory: 134217727.88 MB
Available Virtual Memory: 134213474.34 MB
Maximum Paging Size: 50641.73 MB
Current Paging Size: 17247.58 MB
------------------------------------------------------------
PROGRAM DETAILS
Date: 2024/12/13, Time: 10:00:45
Program Name: Desktop Applications
Version: Version 2024.1 (20240530.21)
------------------------------------------------------------
MODULE VERSIONS
Help Files Core 2024.1
------------------------------------------------------------
Assertion Failed - "C:\Users\my_user\AppData\Local\Programs\Python\Python310\python.exe"
M:\b\REL\geosoft-ci\geosoft-ci\geosoft-base\core\source\geoengine.core\geoengine.core\itr\itr.c {2952}
Call Stack
[.Net Stack Trace]
at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at pcGetDotNetStack()
[Thread 0] (Current)
ExportAllRaster_MAP M:\b\REL\geosoft-ci\geosoft-ci\geosoft-base\core\source\geoengine.map\geoengine.map\map\gxx_map.c {2170}
sExportMapEx_MAP M:\b\REL\geosoft-ci\geosoft-ci\geosoft-base\core\source\geoengine.interoperability\geoengine.interoperability\map\mapexport.cpp {2507}
sExportAsRasterImage_MAP M:\b\REL\geosoft-ci\geosoft-ci\geosoft-base\core\source\geoengine.interoperability\geoengine.interoperability\rasterimage\imagemagick.cpp {376}
sRenderMAP M:\b\REL\geosoft-ci\geosoft-ci\geosoft-base\core\source\geoengine.interoperability\geoengine.interoperability\rasterimage\imagemagick.cpp {241}
RenderCallback M:\b\REL\geosoft-ci\geosoft-ci\geosoft-base\core\source\geoengine.map\geoengine.map\map\gxx_map.c {2088}
H_MVIEW::sRenderMarked M:\b\REL\geosoft-ci\geosoft-ci\geosoft-base\core\source\geoengine.map\geoengine.map\mview\rndmview.cpp {550}
H_MVIEW::sRenderAGG M:\b\REL\geosoft-ci\geosoft-ci\geosoft-base\core\source\geoengine.map\geoengine.map\mview\imgmview.cpp {46}
H_AGG::sRenderXPD M:\b\REL\geosoft-ci\geosoft-ci\geosoft-base\core\source\geoengine.core\geoengine.core\agg\agg.c {2335}
H_AGG::sNextLine M:\b\REL\geosoft-ci\geosoft-ci\geosoft-base\core\source\geoengine.core\geoengine.core\agg\agg.c {1787}
H_LAY::sNextLine M:\b\REL\geosoft-ci\geosoft-ci\geosoft-base\core\source\geoengine.core\geoengine.core\lay\lay.c {1427}
H_ITR::LongColor M:\b\REL\geosoft-ci\geosoft-ci\geosoft-base\core\source\geoengine.core\geoengine.core\itr\itr.c {2907}
AbortCode=XHTGGSX
[Thread 1]
AbortNowThreadSYS M:\b\REL\geosoft-ci\geosoft-ci\geosoft-base\core\source\geoengine.core\geoengine.core\sys\stacksys.c {939}
AbortCode=HAW51M5
[Thread 2]
SMPThread M:\b\REL\geosoft-ci\geosoft-ci\geosoft-base\core\source\geoengine.core\geoengine.core\sys\smpsys.c {206}
AbortCode=NHX9M3X
[Thread 3]
SMPThread M:\b\REL\geosoft-ci\geosoft-ci\geosoft-base\core\source\geoengine.core\geoengine.core\sys\smpsys.c {206}
AbortCode=NHX9M3X
[Thread 4]
SMPThread M:\b\REL\geosoft-ci\geosoft-ci\geosoft-base\core\source\geoengine.core\geoengine.core\sys\smpsys.c {206}
AbortCode=NHX9M3X
[Thread 5]
SMPThread M:\b\REL\geosoft-ci\geosoft-ci\geosoft-base\core\source\geoengine.core\geoengine.core\sys\smpsys.c {206}
AbortCode=NHX9M3X
[Thread 6]
SMPThread M:\b\REL\geosoft-ci\geosoft-ci\geosoft-base\core\source\geoengine.core\geoengine.core\sys\smpsys.c {206}
AbortCode=NHX9M3X
[Thread 7]
SMPThread M:\b\REL\geosoft-ci\geosoft-ci\geosoft-base\core\source\geoengine.core\geoengine.core\sys\smpsys.c {206}
AbortCode=NHX9M3X
[Thread 8]
SMPThread M:\b\REL\geosoft-ci\geosoft-ci\geosoft-base\core\source\geoengine.core\geoengine.core\sys\smpsys.c {206}
AbortCode=NHX9M3X
[Thread 9]
SMPThread M:\b\REL\geosoft-ci\geosoft-ci\geosoft-base\core\source\geoengine.core\geoengine.core\sys\smpsys.c {206}
AbortCode=NHX9M3X
[Other Unknown Threads: 13]
Error Stack
(Error)
Session Log
OM Is Elevated: No