4.2 bugs

Discuss suspected bugs with other users and Sim Innovations Staff

Moderators: russ, Ralph

Message
Author
User avatar
Keith Baxter
Posts: 4674
Joined: Wed Dec 20, 2017 11:00 am
Location: Botswana

Re: 4.2 bugs

#71 Post by Keith Baxter »

Hi,

Sorry guys. I hate reporting issues.

This one worked in previous versions of AM. But now does not work in AM4.1.5 or beta AM4.2x I will need to investigate when it started to hung and revert.

I know the code is good and both json's are good.
This code works with a shortened json DB but hangs with a 111589kb json. It never used to. It used to take about 2 to 3 minutes before the persistence file was written and available in the folder.
Of course the data is available when in code. No problem there. Just the write to the persistence file and hanging of AM.

Code: Select all

obstical=static_data_load("usa_obstacle_wip_bu2.json")
new_obstacle = persist_add("obstacle", {})
obs_table={}
if obstical~= nil then
	print("Static Data loaded")
	for i=1,#obstical["feature"] do 
		-- This is pattern, which describes what we expect the string to look like
		local pattern = "^(%d+) (%d+) (%d+).(%d+)([NSEW])$"
		lat_str = obstical["feature"][i]["lat_dmsh"]
		lon_str = obstical["feature"][i]["lon_dmsh"]
		-- Try to match the string with the pattern
		local lat_deg, lat_min, lat_sec, lat_secd,lat_dir = string.match(lat_str, pattern)
		local lon_deg, lon_min, lon_sec, lon_secd,lon_dir = string.match(lon_str, pattern)
		-- Convert the string with the pattern to Decimal
		local lat = lat_deg + (lat_min / 60) + (tonumber(lat_sec.."."..lat_secd) / 3600)
		local lon = lon_deg + (lon_min / 60) + (tonumber(lon_sec.."."..lon_secd) / 3600)		
		lat = fif(lat_dir == "S" or lat_dir == "W", lat * -1, lat)		
		lon = fif(lon_dir == "S" or lon_dir == "W", lon * -1, lon)
		-- Apply the Decimal conversion to the table		
		obstical["feature"][i]["laty"]=lat
		obstical["feature"][i]["lonx"]=lon
		table.insert(obs_table,obstical["feature"][i])
	end
		print("latY & lonx done")
		-- Create the Persistence table
		persist_put(new_obstacle,obs_table)
end
print("All Done")
What does this do.....

it produces a .json like this...Extracting obstacle data and other data from a static obstacle data set. And I can change any element I need and store to this persistence file.

Code: Select all

[{
		"key":	"obstacle",
		"value":	[{
				"lonx":	-88.077500,
				"lon_dmsh":	"088 04 39.00W",
				"obs_qty":	1,
				"marking":	"M",
				"obstacle":	"RIG",
				"lighting":	"R",
				"amsl_height":	236,
				"lat_dmsh":	"30 10 45.00N",
				"agl_height":	236,
				"laty":	30.179167
			}, {
				"lonx":	-88.120833,
				"lon_dmsh":	"088 07 15.00W",
				"obs_qty":	1,
				"marking":	"M",
				"obstacle":	"RIG",
				"lighting":	"R",
				"amsl_height":	241,
				"lat_dmsh":	"30 11 20.00N",
				"agl_height":	240,
				"laty":	30.188889
			}, {
				"lonx":	-87.952778,
				"lon_dmsh":	"087 57 10.00W",
				"obs_qty":	1,
				"marking":	"M",
				"obstacle":	"STACK",
				"lighting":	"R",
				"amsl_height":	193,
				"lat_dmsh":	"30 11 20.00N",
				"agl_height":	193,
				"laty":	30.188889
			}, {
				"lonx":	-87.873611,
				"lon_dmsh":	"087 52 25.00W",
				"obs_qty":	1,
				"marking":	"N",
				"obstacle":	"BLDG",
				"lighting":	"R",
				"amsl_height":	242,
				"lat_dmsh":	"30 13 49.00N",
				"agl_height":	223,
				"laty":	30.230278
			}, {
				"lonx":	-87.875000,
				"lon_dmsh":	"087 52 30.00W",
				"obs_qty":	1,
				"marking":	"N",
				"obstacle":	"BLDG",
				"lighting":	"R",
				"amsl_height":	242,
				"lat_dmsh":	"30 13 49.00N",
				"agl_height":	223,
				"laty":	30.230278
			}, {
				"lonx":	-87.866986,
				"lon_dmsh":	"087 52 01.15W",
				"obs_qty":	1,
				"marking":	"N",
				"obstacle":	"TOWER",
				"lighting":	"D",
				"amsl_height":	288,
				"lat_dmsh":	"30 14 14.57N",
				"agl_height":	277,
				"laty":	30.237381
			}, {
				"lonx":	-87.747500,
				"lon_dmsh":	"087 44 51.00W",
				"obs_qty":	1,
				"marking":	"N",
				"obstacle":	"BLDG",
				"lighting":	"D",
				"amsl_height":	214,
				"lat_dmsh":	"30 14 27.00N",
				"agl_height":	208,
				"laty":	30.240833
			}, {
				"lonx":	-87.703389,
				"lon_dmsh":	"087 42 12.20W",
				"obs_qty":	1,
				"marking":	"N",
				"obstacle":	"BLDG",
				"lighting":	"N",
				"amsl_height":	67,
				"lat_dmsh":	"30 14 43.32N",
				"agl_height":	59,
				"laty":	30.245367
			}, {
				"lonx":	-87.701947,
				"lon_dmsh":	"087 42 07.01W",
				"obs_qty":	1,
				"marking":	"N",
				"obstacle":	"BLDG",
				"lighting":	"R",
				"amsl_height":	282,
				"lat_dmsh":	"30 14 44.06N",
				"agl_height":	271,
				"laty":	30.245572
			}]
	}]
Keith
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board,  32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card 

User avatar
Corjan
Posts: 2936
Joined: Thu Nov 19, 2015 9:04 am

Re: 4.2 bugs

#72 Post by Corjan »

Hi,

Don't worry, I keep an eye out on this thread, and will post feelback here on in the release notes when something is fixed.
Have about 2 days a week to focus on fixing this, so things aren't going very fast at the moment.

Corjan

User avatar
Keith Baxter
Posts: 4674
Joined: Wed Dec 20, 2017 11:00 am
Location: Botswana

Re: 4.2 bugs

#73 Post by Keith Baxter »

Corjan wrote: Mon Nov 28, 2022 9:06 am Hi,

Don't worry, I keep an eye out on this thread, and will post feelback here on in the release notes when something is fixed.
Have about 2 days a week to focus on fixing this, so things aren't going very fast at the moment.

Corjan
Cool,

Was just a bit worried that you had not seen and might miss a few things. But if you are on top of it then all is good.

Keith
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board,  32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card 

User avatar
Corjan
Posts: 2936
Joined: Thu Nov 19, 2015 9:04 am

Re: 4.2 bugs

#74 Post by Corjan »

Hi,


New BETA is available. Think I have tackled most issues (for now :) ).

Writing 111 Mb of data as JSON is generally not a good idea :)
Don't think there is any reason to write that much data anyways.


Corjan

User avatar
Corjan
Posts: 2936
Joined: Thu Nov 19, 2015 9:04 am

Re: 4.2 bugs

#75 Post by Corjan »

Most notable additions in this BETA are support for JPEG images in API and possibility to grab parts of texture when using video stream.

Corjan

User avatar
Keith Baxter
Posts: 4674
Joined: Wed Dec 20, 2017 11:00 am
Location: Botswana

Re: 4.2 bugs

#76 Post by Keith Baxter »

Corjan wrote: Wed Dec 07, 2022 2:31 pm Most notable additions in this BETA are support for JPEG images in API and possibility to grab parts of texture when using video stream.

Corjan
Hi,

Thank you for the updates. Just a reminder if it was overlooked.
I have not tried the update yet but I see no mention of the _fill_gradient_linear() crash fix that you mentioned you found.
Also no hot fix for AM4.1.5 to .6


Keith
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board,  32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card 

User avatar
Keith Baxter
Posts: 4674
Joined: Wed Dec 20, 2017 11:00 am
Location: Botswana

Re: 4.2 bugs

#77 Post by Keith Baxter »

@Corjan

Hi,
After updating beta and trying to start, it is broken. The open screen flashes then CTD. Got a video if you want.

Keith
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board,  32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card 

SimPassion
Posts: 5336
Joined: Thu Jul 27, 2017 12:22 am

Re: 4.2 bugs

#78 Post by SimPassion »

Keith Baxter wrote: Wed Dec 07, 2022 7:45 pm @Corjan

Hi,
After updating beta and trying to start, it is broken. The open screen flashes then CTD. Got a video if you want.

Keith
+1
Same issue occurs

User avatar
Corjan
Posts: 2936
Joined: Thu Nov 19, 2015 9:04 am

Re: 4.2 bugs

#79 Post by Corjan »

Hi,


Not sure if that could be causing it, but did you update the flight sim plugin aswell?


Corjan

User avatar
Keith Baxter
Posts: 4674
Joined: Wed Dec 20, 2017 11:00 am
Location: Botswana

Re: 4.2 bugs

#80 Post by Keith Baxter »

Corjan wrote: Wed Dec 07, 2022 8:08 pm Hi,


Not sure if that could be causing it, but did you update the flight sim plugin aswell?


Corjan
Corjan,

The plugin was my first try. Yes it updated Xplane 11 and 12
AM does not open at all, Just a splash page flashes then CTD
Let me load the video clip. Give me a moment.

Hope this helps.
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board,  32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card 

Post Reply