4.2 bugs

Discuss suspected bugs with other users and Sim Innovations Staff

Moderators: russ, Ralph

Message
Author
User avatar
jph
Posts: 2846
Joined: Fri Apr 10, 2020 12:50 pm
Location: Somewhere over the rainbow..

Re: 4.2 bugs

#91 Post by jph »

Keith Baxter wrote: Sun Dec 11, 2022 3:25 pm Yes the above post was reported. I do not care for the consequences. Joe is an absolute troll inciting members to resort to the previous posts profanity. He wings need to be clipped on this forum.
it is unfortunate you feel that way but I am trying to help you. My 'wings' are only ever angelic for you. :)
For your current issue then as said. this is definitely NOT an AM issue, this is an absolutely standard run of the mill day to day system management routine.
Automatic - non interventional updates, I would agree are not appropriate (in any program!)
I am willing to assist you by writing a routine to back up and add a date to the backup directory if you need ?
This should (normally) be all you need.
I also can point you to Qnap.com and Synology.com for simply and cost effective NAS solutions.
I can even provide you with a NIB Synology NAS that I don't use (I prefer Qnap mainly as I have used them for 12 years)
A basic script is easier though.
Enjoy
dbvydyj-5e965c97-bd54-4606-b4b4-d233bf249818.gif
:)
Joe. CISSP, MSc.

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

Re: 4.2 bugs

#92 Post by Keith Baxter »

Hi,

I did a brand new beta install and tested. AM opens 100%.
Added the panels OPED_DIRECTORY and the instruments OPEN_DIRECTORY and I get CTD

Now AM was working 100% before the update so I know that these files were clean as I had the CTD before and removed all the UUID's that were empty.

I will spend a few hours going through the hundreds of instrument UUID again to try and find the culprit/s

My guess is that AM created empty UUID's

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: 4671
Joined: Wed Dec 20, 2017 11:00 am
Location: Botswana

Re: 4.2 bugs

#93 Post by Keith Baxter »

Hi,

I am correct. Two empty UUID folders and also this instrument from Detlef. I have not investigated this instrument but it opens in AM4.1.5 without errors.

I am confused as to what is generating empty UUID folders.

Anyway, the empty folder CTD can easily be reproduced by removing all the instruments from the OPED_DIRECTORY then creating a new instrument. Then open the instrument folder and delete the contents. Restart AM and it will CTD

So empty UUID folders that used to create a . and CTD when opened in create/edit has now moved to CTD on startup.

@Corjan please take a look and see why it causes CTD in beta but works in stable.
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: 4671
Joined: Wed Dec 20, 2017 11:00 am
Location: Botswana

Re: 4.2 bugs

#94 Post by Keith Baxter »

Hi,

Ok I did some debugging on the above instrument and the CTD happens at following code from line 368

Code: Select all

---------------------- Gen1 switch ----------------
local gSwitchGen1

function cbSwitchGen1(switch, dir)
  if dir > 0 then
    fs2020_event("ROTOR_BRAKE", 2701)
  else
    fs2020_event("ROTOR_BRAKE", 2702)
  end
end

fs2020_variable_subscribe("L:switch_27_73X", "number", function(v)
  SetSwitchPosition(gSwitchGen1, math.floor(v/50)+1)
end)

gSwitchGen1 = AddVerticalSwitch(105, 301, true, true, true, cbSwitchGen1)
If you just run this code AM does not CTD but is gives a nil error when run at this line.
gSwitchGen1 = AddVerticalSwitch(105, 301, true, true, true, cbSwitchGen1)
But as I said. No errors reported or CTD in AM4.1.5

Hope that helps in getting the CTD on boot up sorted.

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

#95 Post by SimPassion »

Hi Keith, did you mentioned AM 4.2 Beta 7 is working properly, with putting faulting UUID instruments out from OPEN_DIRECTORY ?

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

Re: 4.2 bugs

#96 Post by Keith Baxter »

SimPassion wrote: Wed Dec 14, 2022 12:37 pm Hi Keith, did you mentioned AM 4.2 Beta 7 is working properly, with putting faulting UUID instruments out from OPEN_DIRECTORY ?
Gilles yes works 100%

But it needs to be fixed that faulting instruments do not CTD AM on boot up.
Now that SI know the issue I am sure it will be sorted because when writing code it will CTD if there is an error and peeps would have to spend hours finding the faulting UUID to get AM to open.
I am sure it will all make sense to Corjan

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: 4671
Joined: Wed Dec 20, 2017 11:00 am
Location: Botswana

Re: 4.2 bugs

#97 Post by Keith Baxter »

Hi,

I am going to make a suggestion. Could it be possible to have AM write a log.txt with all instrument UUID that have errors. If AM CTD then it is picking up the errors and that could be reported. I cleared the log.txt file and restarted. This is all it reports.

Code: Select all

2022-12-14 15:14:12 INFO  System - Initializing
2022-12-14 15:14:12 INFO  System - HW id = 1ba52b50c47f72c9a3cbccff82b82b48
2022-12-14 15:14:55 INFO  System - Initializing
2022-12-14 15:14:55 INFO  System - HW id = 1ba52b50c47f72c9a3cbccff82b82b48
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: 2933
Joined: Thu Nov 19, 2015 9:04 am

Re: 4.2 bugs

#98 Post by Corjan »

Hi,


That helps, fixed the issue where AM cannot deal with empty folders.
Can't get the Boeing instrument to crash, but I think I need the 737 instrument for that?


Corjan

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

Re: 4.2 bugs

#99 Post by Keith Baxter »

Corjan wrote: Wed Dec 14, 2022 2:16 pm Hi,


That helps, fixed the issue where AM cannot deal with empty folders.
Can't get the Boeing instrument to crash, but I think I need the 737 instrument for that?


Corjan
Hi,
Thanks for the empty folder fix. You really are fast. :)
I will do a clone that crashes and post here.

Give me a few moments.

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: 4671
Joined: Wed Dec 20, 2017 11:00 am
Location: Botswana

Re: 4.2 bugs

#100 Post by Keith Baxter »

Hi,

Try this.
If you comment out from line 369 it will not CTD.
No need for any 737
1c73bcea-717b-4632-a1af-a4aa4ac5c4fa.zip
(204.33 KiB) Downloaded 29 times
Keith

EDIT: My bad I used the same UUID. I changed it to the clone.
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