Java Binary Platform stops responding

Help creating logic scripts for Air Manager Instruments

Moderators: russ, Ralph

Message
Author
JackZ
Posts: 2267
Joined: Mon Feb 22, 2016 1:02 pm

Java Binary Platform stops responding

#1 Post by JackZ »

Hello to all

Still experimenting with gear failures, I went into troubles with AM being stuck and the message "Java(TM) Binary Platform SE (32bits) stop responding".

I suspect this has something to do with either:
- timer (to get one of the gear blocked, I have to "saturate" FSX gear variable every second with a certain position using a timer).
- Too many variables subscribed
The program i'm working on has to subscribe to dozens of variables at the same time.
Any hint?
AM works as usual with other gauges, so I suspect this timer thing is the culprit...

Windows 10
Java Binary Platform 32 bits
AM 2.1.1

Jacques
My YouTube Chanel on the A320 (Real SOPs by an Airline Pilot IRL):
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ

User avatar
Thair.nl
Posts: 144
Joined: Thu Apr 07, 2016 8:27 pm
Location: EHRD
Contact:

Re: Java Binary Platform stops responding

#2 Post by Thair.nl »

Hi Jacques,

to possibly rule out the error being caused by the number of subscibes. I use 67 (or 68) fsx subscribes in my C182 touch screen panel and it works without the error you are mentioning. I hope this helps (al little).

Greetings,

Theo.
Boeing 737-800 simulator (under construction): http://thair.nl, Beechcraft Baron B58 simulator (also under construction): http://b58.thair.nl.

JackZ
Posts: 2267
Joined: Mon Feb 22, 2016 1:02 pm

Re: Java Binary Platform stops responding

#3 Post by JackZ »

Thanks Theo, I was puzzled because I knew that I could run dozens of gauges without problems, so your answer at least rules out the number of subscribes.

To make sure that was a timer related problem, I created a gauge with only the faulty part of my code.

I think I finally found the culprit (sort of):
In fact I subscribed to the "gear handle position "variable while in another part of the code I was writing continuously to the "gear position" variable.

Obviously AM doesn't like this sort of schyzophrenic behaviour... :roll:

Jacques
My YouTube Chanel on the A320 (Real SOPs by an Airline Pilot IRL):
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ

User avatar
russ
Posts: 593
Joined: Tue Oct 27, 2015 5:37 pm

Re: Java Binary Platform stops responding

#4 Post by russ »

Jacques

I have had similar problems using timers and usually it fails as you say because I am calling it in a loop and creating more and more timers without stopping the previous ones. It runs Java out of memory and CRASH!

Be sure you are actually using the right timer variable name with no spelling errors I have also gotten the timer name and the call back function name confused in the stop timer function so it does nothing. Also be sure before you start a new instance if the timer to put a timer stop function before it to close the previous one.

This has been my problem in the past...just an idea but without seeing your code it is just a guess.
Russ Barlow
Air Manager Evangelist

JackZ
Posts: 2267
Joined: Mon Feb 22, 2016 1:02 pm

Re: Java Binary Platform stops responding

#5 Post by JackZ »

Thanks Russ for the hint!

I also definitely think that the timers should be the culprits, as I ruled out the subscribe thing, I'll have a look at my code hunting for timers...

Was wondering:
Are the timers stopped correctly when AM (Java) crashes?
Or could it be with the Simconnect plugin buffer that goes Wrong cause the pluggin is unaware that AM crashed? Sort of a memory leak? Could be difficult to sort out cause I also have FSUIPC running in the background.

Cause I discovered that if I restart AM right after having to stop it via the Task Manager in W10, things are getting worse, some switches are flipped to On right on startup, and the gauge takes at least ten seconds to display the texts. When I completely restart Windows, things are getting better, at least the gauge loads almost instantly and works for a few seconds before crashing.
Win 10 also puzzles me, as I find it less stable than Win 7 with FSX.

Jacques
My YouTube Chanel on the A320 (Real SOPs by an Airline Pilot IRL):
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ

JackZ
Posts: 2267
Joined: Mon Feb 22, 2016 1:02 pm

Re: Java Binary Platform stops responding

#6 Post by JackZ »

Continuing on with my investigations, I noticed that if I don't start FSX, and launch AM only, the gauge loads without problem, and the switches can be operated normally.

I suspect a problem with the Simconnect AM plugin?
I will try to reinstall it using the plugin installer, then update Java by installing the latest version, and let you know if I notice any improvement.

Jacques
My YouTube Chanel on the A320 (Real SOPs by an Airline Pilot IRL):
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ

User avatar
russ
Posts: 593
Joined: Tue Oct 27, 2015 5:37 pm

Re: Java Binary Platform stops responding

#7 Post by russ »

Also try putting the stop timer right before the start timer function. If it hasn't been defined yet it will do nothing.If there is a stray timer instance running it will kill it. Corjan should be back out of the White Mountains by tomorrow and will probably have the REAL answer when he sees your question,
Russ Barlow
Air Manager Evangelist

JackZ
Posts: 2267
Joined: Mon Feb 22, 2016 1:02 pm

Re: Java Binary Platform stops responding

#8 Post by JackZ »

Thanks Russ!

Alas, things are getting worse, now:
As stated, I reinstalled the Simconnect plugin using the install plugin.exe, and updated the Java JRE to the latest version, AM refuses since then to start at all!

I finally uninstalled AM using the uninstall program and restarted Win10 and then reinstalled the complete AM program using the Setup program, but with no avail.
AM still refuses to start, be it from the desktop shortcut or the original exe.

Mmmm, I'm now stuck with this, guess I'll have to wait for Corjan to return from his trip to France.
Too bad for me, as I'm far from a football fan :roll: , but I can live with that, trying to be the Sorcerer's apprentice is not that easy :P


Jacques
My YouTube Chanel on the A320 (Real SOPs by an Airline Pilot IRL):
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ

User avatar
Ralph
Posts: 7926
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: Java Binary Platform stops responding

#9 Post by Ralph »

Can you remove all present Java versions in the 'Add and remove programs' (or something like that, I'm not sure what it's called), and then install the latest Java JRE? To be sure that it uses the latest version of Java...

JackZ
Posts: 2267
Joined: Mon Feb 22, 2016 1:02 pm

Re: Java Binary Platform stops responding

#10 Post by JackZ »

Hello Ralph

It was a Java installation problem!
Following your advice, I checked if there were older installations of Java.
According to the site, the latest version of JRE ver 8 now includes a desinstaller, so no previous version was found.

I reinstalled the latest version of Java to be sure, and voilà it worked!
AM is back, was starting to feel anxious, it's like a drug this thing :roll:
Thanks for the hint!

Now I can and will continue to investigate with this timer problem...

Jacques
My YouTube Chanel on the A320 (Real SOPs by an Airline Pilot IRL):
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ

Post Reply