gruppe-adler / grad_meh

An Arma 3 Modification built on intercept, which allows exporting data from Arma 3 maps.
MIT License
13 stars 2 forks source link

[Bug]: v1.0.0-beta.2 crashes while rendering GeoJSON for G.O.S. Al Rayak (pja310) #46

Closed indig0fox closed 7 months ago

indig0fox commented 7 months ago

Loaded Mods

Loaded Mods

What happened?

In the same exact mod and launcher setup, after rendering multiple vanilla and addon terrains in one run, and after starting a standalone run with this single terrain, Arma crashes while rendering geojsons for this specific terrain. I was attempting to render all 5 available data types for the terrain.

The terrain was loaded from the workshop at its latest version. It has a dependency on CUP_worlds.

https://steamcommunity.com/sharedfiles/filedetails/?id=648172507

RPT

19:48:12 [CBA] (xeh) INFO: missionNamespace processed [false]
19:48:12 [CBA] (xeh) INFO: [7122,100.632,0] PreInit started. v3.16.1.231025
19:48:12 [CBA] (settings) INFO: Reading settings from settings file.
19:48:12 [CBA] (settings) INFO: Finished reading settings from settings file.
19:48:12 [GRAD] (meh): The grad_meh plugin is running! (v1.0.0-beta.2@HEAD)
19:48:12 [CBA] (xeh) INFO: [7122,100.752,0] PreInit finished.
19:48:13 Fresnel k must be >0, given n=2.51,k=0
19:48:39 "BIS_fnc_log: [RscDisplayMain] ""[AI] LAUNCH INVASION"""
19:48:40 "BIS_fnc_log: [RscDisplayMain] ""[AI] LAUNCH INVASION"""
19:48:43 "BIS_fnc_log: ""[AI] Terminating (normal)"""
19:48:48 "BIS_fnc_log: [RscDisplayMain] ""[AI] LAUNCH INVASION"""
19:48:51 "BIS_fnc_log: [RscDisplayMain] ""[AI] LAUNCH INVASION"""
19:48:52 Starting mission:
19:48:52  Mission file: 
19:48:52  Mission world: VR
19:48:52  Mission directory: 
19:48:57 Intercept Invoker SQF handler initializing...
19:48:57 Intercept Invoker test result: Slippy == Slippy
19:48:57 Intercept Invoker initialized.
19:48:57 Intercept Pre-Init...
19:48:57 Intercept Pre-Init Completed.
19:48:58 "BIS_fnc_log: [preInit] ""DeltaTime computation started"""
19:48:58 [CBA] (xeh) INFO: [9432,146.722,0] PreInit started. v3.16.1.231025
19:48:58 [CBA] (settings) INFO: Reading settings from settings file.
19:48:58 [CBA] (settings) INFO: Finished reading settings from settings file.
19:48:58 [GRAD] (meh): The grad_meh plugin is running! (v1.0.0-beta.2@HEAD)
19:48:58 [CBA] (xeh) INFO: [9432,146.832,0] PreInit finished.
19:48:58  Mission id: 10006d33d719492e1fab10a0a325f50fdfb5d58d
19:48:58 [CBA] (xeh) INFO: [9433,146.861,0] PostInit started. MISSIONINIT: missionName=, missionVersion=-1, worldName=VR, isMultiplayer=false, isServer=true, isDedicated=false, CBA_isHeadlessClient=false, hasInterface=true, didJIP=false
19:48:58 Intercept Post-Init...
19:48:58 Intercept Post-Init Finished...
19:48:58 [CBA] (versioning) INFO: [9433,146.871,0] VERSIONING:cba=3.16.1.231025
19:48:58 [CBA] (xeh) INFO: [9433,146.872,0] PostInit finished.
19:48:58 [GRAD] (meh): Starting export of pja310 [true, true, true, true, true]
19:49:02 [GRAD] (meh): Exporting sat images
19:49:32 [GRAD] (meh): Exporting geojson

grad_meh Logs

2024-03-20 19:50:40.261 WARN  [57748] [writeRoads@281] Exception during magic/lzss check: IO failed The system cannot find the file specified. (os error 2))
2024-03-20 19:50:40.262 ERROR [57748] [writeRoads@288] Couldn't open roads.shp at grad_meh\pja310\geojson\temp\roads.shp
TheWillard commented 7 months ago

So even though the "newRoadsShape" is defined in the config, the shapefile is not in the pbo. I guess Arma then falls back to the "Arma 2 method" for roads (which is currently not implemented in meh (#47)). In v1.0.0-beta.3, I just added a check to the roads export that will abort it if the shapefile can't be exported, thus avoiding the crash.