B4J Question B4j app on Windows 10 with the latest Java runtime

yo3ggx

Active Member
Licensed User
Longtime User
Hi all,

I've developed a small Java app in B4J which runs ok on Windows 8.1 and Java 1.8.0_51, but not on Windows 10 with the same Java runtime.
It has a very strange behavior. If I click on any dropdown box from the interface, except the one with current focus, the application freeze and needs to be killed from the Task Manager.
The jar is downloadable from here:
http://www.yo3ggx.ro/jAS2SecNET/jAS2SecNET_v0.4.zip

There is no action defined on dropdown click event.

Any idea on a possible cause?

Thank you,
Dan
 

yo3ggx

Active Member
Licensed User
Longtime User
Hi Erel,

This is the computer used for development, with B4J installed. I've decided a few days ago to upgrade it to Windows 10 just to be at the latest version for testing purpose.
The application is very simple, the interface is designed with Java FX builder 2.0
The same thing happen when I run the application directly from B4j. I have seen that if I'm using only the keyboard, everything seems to be ok.
The problem appears only when I click with the mouse on a dropdown box which does not have the focus.
Other java apps (jar files) with combo boxes seems not to have this issue.
I do not exclude an issue with my particular system. I will test it again later in the evening on another Windows 10 computer with B4J installed.

Thank you,
Dan
 
Upvote 0

yo3ggx

Active Member
Licensed User
Longtime User
Ok, so this is a very simple project where the issue is still present on my system.
There are just two combo boxes filled with some data.
If you click on the one without focus the window freeze.

Dan
 

Attachments

  • test.zip
    6.8 KB · Views: 219
Upvote 0

yo3ggx

Active Member
Licensed User
Longtime User
I've tested it on another system with Windows 10 and Java 1.8.0_51 and it works.
It seems to be an issue with my other system, but it is still strange that it happen only in the app created with B4J.

Dan
 
Upvote 0

yo3ggx

Active Member
Licensed User
Longtime User
As you can see, the test app attached to my message does nothing. Just display two combo boxes with no action.
The app does not throw any exception when the window freeze. Is like executing an infinite loop with the interface disabled.
Dan
 
Upvote 0

Roycefer

Well-Known Member
Licensed User
Longtime User
What I meant was when you run your app on the problematic computer, run it from the B4J IDE or from the command line with
B4X:
java -jar MyApp.jar
so that you can see if any exceptions are thrown when the app freezes.
 
Upvote 0

yo3ggx

Active Member
Licensed User
Longtime User
Tried this too. There is no exception when the application hangs. After a click on a combo box without focus, the background of the extended combo box is displayed, white and empty, and the application just hangs, with no error message in the console.
 
Upvote 0

Roycefer

Well-Known Member
Licensed User
Longtime User
Since you noted that it's something particular to this specific computer, have you tried updating the drivers on that computer?
 
Upvote 0

yo3ggx

Active Member
Licensed User
Longtime User
Hi. Is a Sony Vaio Multi Flip SVF13N2M2ES with the latest available drivers from Microsoft installed. I will further dig on this.
The only strange thing is that I have this issue only with the Java apps created with B4A. For any other Java apps combo boxes behaves as expected.
Thank you.
Dan
 
Upvote 0

yo3ggx

Active Member
Licensed User
Longtime User
Hi Erel. Yes, with JavaFX 2.0.
This is the zip exported as you requested.
 

Attachments

  • test.zip
    1.2 KB · Views: 229
Upvote 0

yo3ggx

Active Member
Licensed User
Longtime User
Hi Erel.

Thank you for the link. Reading the discussions there, It seems to be related to the graphic chip driver. Even both my PC and my notebook are based on Intel HD4000, the way Windows 10 names the driver is different.
On the notebook appears as "Intel(R) HD Graphics Family"
but on the PC is named "Intel(R) HD Graphics 4000".
The issue seems to be present only on mobile processors with integrated graphics. On the PC the application works as expected.
I will try to find a workaround till the issue is solved in JavaFX.

Dan
 
Upvote 0

yo3ggx

Active Member
Licensed User
Longtime User
With the latest Windows 10 update from yesterday I have the same issue on the PC too. More than that, seems to have an issue with B4A too, as sometimes Java takes more than 1GB of RAM and B4A crashes. After I kill the Java process, everything goes back to normal till... the next time Java eats the memory.

Dan
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…