Page 1 of 2 12 LastLast
Results 1 to 20 of 22
  1. #1
    ark
    ark is offline Senior Member
    Join Date
    Apr 2015
    Posts
    288
    Rep Power
    4

    Default Java-fx form disappears after clicking on it in jdk 1.8 (glass.dll native error)

    I installed java-fx plugins in Ecllipse Kepler, Luna, Neon and got

    such error after creating some simple
    java-fx UI with scene builder -- after clicking inside created and

    rendered window (textfield, button, intercomponent space) - the

    window (scene) disappears and I get such error --

    JRE (1.8.0_151-b12)

    # Java VM: Java HotSpot(TM) Client VM (25.151-b12 mixed mode windows-x86 )
    # Problematic frame:
    # C [glass.dll+0x1202e]
    #
    # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
    #
    # An error report file with more information is saved as:
    #
    #
    # If you would like to submit a bug report, please visit:
    # Java Crash Reporting Page
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.

    Content of
    #C:\Users\Username\workspace\Samm\hs_err_pid2768.l og:
    ----
    ----# A fatal error has been detected by the Java Runtime Environment:
    #
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d96202e, pid=2768, tid=0x00000424
    #
    # JRE version: Java(TM) SE Runtime Environment (8.0_151-b12) (build 1.8.0_151-b12)
    # Java VM: Java HotSpot(TM) Client VM (25.151-b12 mixed mode windows-x86 )
    # Problematic frame:
    # C [glass.dll+0x1202e]
    #
    # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
    #
    # If you would like to submit a bug report, please visit:
    # Java Crash Reporting Page
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.

    Current thread (0x0b0b9400): JavaThread "JavaFX Application Thread" [_thread_in_native, id=1060, stack(0x0b940000,0x0b990000)]

    siginfo: ExceptionCode=0xc0000005, reading address 0x00000000

    ....
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j com.sun.glass.ui.win.WinApplication._runLoop(Ljava/lang/Runnable;)V+0
    j com.sun.glass.ui.win.WinApplication.lambda$null$14 7(ILjava/lang/Runnable;)V+8
    j com.sun.glass.ui.win.WinApplication$$Lambda$38.run ()V+12
    j java.lang.Thread.run()V+11
    v ~StubRoutines::call_stub
    ....
    Dymamic libraries:
    ....
    0x4fd70000 - 0x4ff16000 C:\WINDOWS\system32\d3d9.dll
    0x6df20000 - 0x6df26000 C:\WINDOWS\system32\d3d8thk.dll
    0x5b260000 - 0x5b298000 C:\WINDOWS\system32\uxtheme.dll
    0x70a10000 - 0x70a29000 G:\jdk-8u151-windows-i586\JDK\jre\bin\prism_sw.dll
    0x6d950000 - 0x6d988000 G:\jdk-8u151-windows-i586\JDK\jre\bin\glass.dll
    ....
    It is just part of log content.
    What should be the reason -- the jdk 1.8 version glass.dll
    or windows xp sp3. That error really appears in that windows xp
    but not in windows 7. But in last case I am not able
    to use internet for my maven connection -- so
    I need to create it in windows xp that I am more accustomized
    for a long time and need use jdk 1.8.
    I would be thankful for your suggestion.
    Could the reason to be in small memory on system disk indeed I have the second HD with G,H partititions and could use
    jdk 1.8 just with the help of wriiten down to eclipse.ini
    as the general version is jdk 1.7 despite I binded java_home and PATH variables to jdk 1.8, but registry has just 1.7 versions
    previously installed -- but jdk 1.8 has no place on disk C
    to roll over it during direct install so I jsut unpacked jdk 1.8
    and used even unpack 2000 script but in vain.
    Indeed in Windows 7 on second physical disk I fully installed
    jdk 1.8 and there is no such error with glass.dll frame --
    so what could be the reasons for native frame glass.dll error?

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    25

    Default Re: Java-fx form disappears after clicking on it in jdk 1.8 (glass.dll native error)

    From here.

    It seems to be something that came in with the use of the new Visual Studio compilers, which themselves do not support XP.
    Since XP is no longer supported this is not something that's going to be fixed.

    The original poster of the problem did have some work arounds for XP. Downgrading to an earlier version than 151 (so 144 for example) might be the least problematic.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    ark
    ark is offline Senior Member
    Join Date
    Apr 2015
    Posts
    288
    Rep Power
    4

    Default Re: Java-fx form disappears after clicking on it in jdk 1.8 (glass.dll native error)

    Why you talks about Visual Studio?? -- I mean java and Eclipse.
    I have seen that post on OpenJdk forum -but I have not found there solution -- moreover I do not know how to post issue there indeed it is connected with Jira bugtracking.
    Meanwhile what is glass.dll, what is accountable for, where to find reasons of such crash?

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    25

    Default Re: Java-fx form disappears after clicking on it in jdk 1.8 (glass.dll native error)

    No.
    Visual Studio i used to compile/build the dll in question (glass.dll).
    Since build 155 they have been using the latest version which is not compatible with XP, as Microsoft no longer supports XP.
    So from 155 onwards you will get this error on an XP box.

    There is no fix for version 155 on.
    The only solution is to use a version of 8 prior to 155, so 144 for example.

    As for what glass.dll is, it's the interface between FX and the Windows OS.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  5. #5
    ark
    ark is offline Senior Member
    Join Date
    Apr 2015
    Posts
    288
    Rep Power
    4

    Default Re: Java-fx form disappears after clicking on it in jdk 1.8 (glass.dll native error)

    Yes, really dll is non-native library for java. Indeed I have installed last G:\jdk-8u151 from Oracle site.
    So what is 155 version?
    Which jdk 1.8 version I need to find to install to absolve that or another dll error?

  6. #6
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,189
    Rep Power
    12

    Default Re: Java-fx form disappears after clicking on it in jdk 1.8 (glass.dll native error)

    You might be better off upgrading to Windows 10.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  7. #7
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    25

    Default Re: Java-fx form disappears after clicking on it in jdk 1.8 (glass.dll native error)

    Sorry, I meant "(t)here is no fix for version 151 on".

    If you have to run on Windows XP then you need to find an earlier build since from 151 they are building Java using a version of Visual Studio that is incompatible with XP, at least as far as JavaFX is concerned.

    Now I'm pretty sure that the proper Java sites don't provide old downloads, at least not easily accessible (I can't find them on Oracle or java.com), so if you haven't got an old installer/version then I'm not sure what your solution is as I do not know of a reliable download site for them.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  8. #8
    ark
    ark is offline Senior Member
    Join Date
    Apr 2015
    Posts
    288
    Rep Power
    4

    Default Re: Java-fx form disappears after clicking on it in jdk 1.8 (glass.dll native error)

    I think it should be possible to get early workable versions of 1.8 for glass.dll/
    And really java-fx with jdk 1.7 doesnt support Datepicker control, unlike 1.8 version - so it is important enough if to use.

  9. #9
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    25

    Default Re: Java-fx form disappears after clicking on it in jdk 1.8 (glass.dll native error)

    If you find one then tell us, in case someone else needs a fix like this.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  10. #10
    ark
    ark is offline Senior Member
    Join Date
    Apr 2015
    Posts
    288
    Rep Power
    4

    Default Re: Java-fx form disappears after clicking on it in jdk 1.8 (glass.dll native error)

    Is it really such issue to find far earlier version of java 1.8 - I did not tried yet.
    Indeed I have some doubts that even that solve the issue.

  11. #11
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    25

    Default Re: Java-fx form disappears after clicking on it in jdk 1.8 (glass.dll native error)

    It does solve the issue, as that link I posted explains.

    A bit of digging and I found the Oracle Java Archive page...which I didn't know existed.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  12. #12
    ark
    ark is offline Senior Member
    Join Date
    Apr 2015
    Posts
    288
    Rep Power
    4

    Default Re: Java-fx form disappears after clicking on it in jdk 1.8 (glass.dll native error)

    I have used a bit earlier version of JDK - jdk-8u131-windows-i586.
    Indeed situation came even worst.
    As I got compiler error exception (so I even do not see the form as in previous case).
    Here is error log:Graphics Device initialization failed for : d3d, sw
    Error initializing QuantumRenderer: no suitable pipeline found
    java.lang.RuntimeException: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found
    at com.sun.javafx.tk.quantum.QuantumRenderer.getInsta nce(QuantumRenderer.java:280)
    at com.sun.javafx.tk.quantum.QuantumToolkit.init(Quan tumToolkit.java:221)
    at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java: 205)
    at com.sun.javafx.application.PlatformImpl.startup(Pl atformImpl.java:209)
    at com.sun.javafx.application.LauncherImpl.startToolk it(LauncherImpl.java:675)
    at com.sun.javafx.application.LauncherImpl.launchAppl icationWithArgs(LauncherImpl.java:337)
    at com.sun.javafx.application.LauncherImpl.launchAppl ication(LauncherImpl.java:328)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at sun.launcher.LauncherHelper$FXHelper.main(Launcher Helper.java:767)
    Caused by: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found
    at com.sun.javafx.tk.quantum.QuantumRenderer$Pipeline Runnable.init(QuantumRenderer.java:94)
    at com.sun.javafx.tk.quantum.QuantumRenderer$Pipeline Runnable.run(QuantumRenderer.java:124)
    at java.lang.Thread.run(Thread.java:748)
    Exception in thread "main" java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at sun.launcher.LauncherHelper$FXHelper.main(Launcher Helper.java:767)
    Caused by: java.lang.RuntimeException: No toolkit found
    at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java: 217)
    at com.sun.javafx.application.PlatformImpl.startup(Pl atformImpl.java:209)
    at com.sun.javafx.application.LauncherImpl.startToolk it(LauncherImpl.java:675)
    at com.sun.javafx.application.LauncherImpl.launchAppl icationWithArgs(LauncherImpl.java:337)
    at com.sun.javafx.application.LauncherImpl.launchAppl ication(LauncherImpl.java:328)
    ... 5 more
    In the net it is predominantly linux error, indeed there is also window xp cases:
    I use such command line options as -Dprism.verbose=true as first of all
    but new error -
    Prism pipeline init order: d3d sw
    Using native-based Pisces rasterizer
    Using dirty region optimizations
    Not using texture mask for primitives
    Not forcing power of 2 sizes for textures
    Using hardware CLAMP_TO_ZERO mode
    Opting in for HiDPI pixel scaling
    Prism pipeline name = com.sun.prism.d3d.D3DPipeline
    Loading D3D native library ...
    GraphicsPipeline.createPipeline failed for com.sun.prism.d3d.D3DPipeline
    java.lang.UnsatisfiedLinkError: G:\jdk-8u131-windows-i586\JDK\jre\bin\prism_d3d.dll: Not found specific procedures.
    I used also such options separately as -Djavafx.verbose=true, -Dprism.order=es2,j2d , -Dprism.forceGPU,
    but again with errors.
    I use NVIDIA GeForce FX 5200 - could old driver be the reason. I did not found any driver earlier, but jdk8 151, at least rendered the form.

  13. #13
    ark
    ark is offline Senior Member
    Join Date
    Apr 2015
    Posts
    288
    Rep Power
    4

    Default Re: Java-fx form disappears after clicking on it in jdk 1.8 (glass.dll native error)

    There also jdk8u141, jdk8u144 in jdk archive between already used 131 and 151 updates.
    But it would improbably to help.
    Whether I need to use the most earlier updates of jdk8 (jdk8, jdk8u5).
    Last edited by ark; 12-08-2017 at 11:24 PM.

  14. #14
    ark
    ark is offline Senior Member
    Join Date
    Apr 2015
    Posts
    288
    Rep Power
    4

    Default Re: Java-fx form disappears after clicking on it in jdk 1.8 (glass.dll native error)

    The error with QuantumRenderer in update 131 is also present in update 144, that you I was proposed to installed here.
    Indeed I installed jdk 1.8 versions on my Windows XP SP3 according this gudielines:https://www.whitebyte.info/programmi...t-admin-rights -- should it be not complete install.
    Then it seems to be that jdk 8 update 151 is more advanced as previous ones -- as it allow to render the java-fx form.
    Maybe it is simplier to solve the issue with glass.dll, the issue I started the topic. And there is about exactly 50 dll in jdk 8
    installation folder, so I doubt that all of them are non-workable.
    Would you provide me the news and description that the jdk8u151 is compiled by Visual Studio non-compatible with Windows XP? maybe I would be better understand the reasons of issue.

  15. #15
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    25

    Default Re: Java-fx form disappears after clicking on it in jdk 1.8 (glass.dll native error)

    I have provided the information on that in my first post on the thread, with the link to the relevant question.

    As suggested on that link you could transfer just the glass.dll and replace the same one in the 151 JDK, but be sure to back up the old one.

    But the root cause is you are using an unsupported OS.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  16. #16
    ark
    ark is offline Senior Member
    Join Date
    Apr 2015
    Posts
    288
    Rep Power
    4

    Default Re: Java-fx form disappears after clicking on it in jdk 1.8 (glass.dll native error)

    It should be too easy to change glass.dll files. Indeed then I probably would the nessecity to change anotehr dll files (if the issue in non-supporting of new dll compilation). Anyway to do it - I need to change old java 7 glass.dll to new java 8 unsupported one?

  17. #17
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    25

    Default Re: Java-fx form disappears after clicking on it in jdk 1.8 (glass.dll native error)

    Quoting the original post I linked to:
    The only workarounds I've found are downgrading to a previous Java update (such as 144), or replacing the glass.dll file in update 151/152 with the glass.dll from updates 131, 141, or 144 (I have not tried previous glass.dll versions).
    So they're using the dll from the earlier JDK8 build.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  18. #18
    ark
    ark is offline Senior Member
    Join Date
    Apr 2015
    Posts
    288
    Rep Power
    4

    Default Re: Java-fx form disappears after clicking on it in jdk 1.8 (glass.dll native error)

    I have probably incorrectly understood the earlier posts. Indeed now I changed jdk8u151 and in u131 glass.dll to jdk 7.9 glass.dll. But twice I got UnsatisfiedLinkError exception and there were Quantumrenderer (Error initializing QuantumRenderer: no suitable pipeline found at com.sun.javafx.tk.quantum.QuantumRenderer$Pipeline Runnable.init(QuantumRenderer.java:94)) mentioned in logs. I also added jxrt.jar to project buildpath as was suggested on some sites according to such error, but in vain.
    So I would try your last suggestion. Indeed previous build as option1 is unworkable -- should it means it worked for you in practice?
    https://www.eclipse.org/forums/index.php/t/530666/ -- Here is such error ( UnsatisfiedLinkError) and similar suggestion for glass.dll in Linux.

  19. #19
    ark
    ark is offline Senior Member
    Join Date
    Apr 2015
    Posts
    288
    Rep Power
    4

    Default Re: Java-fx form disappears after clicking on it in jdk 1.8 (glass.dll native error)

    Yet I tried to substitute glass.dll from 131 and 144 update to update 151 -- but again - UnsitsfiedLinkError -- not found defined procedure. No options ...

  20. #20
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    25

    Default Re: Java-fx form disappears after clicking on it in jdk 1.8 (glass.dll native error)

    This has nothing to do with me.
    I have merely provided you with a link to the Open JDK forum which explained your issue and a possible work around.

    Since the glass.dll swap doesn't work, and going back to an earlier JDK doesn't work, then you may well be out of luck.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 0
    Last Post: 04-20-2013, 12:12 AM
  2. Replies: 1
    Last Post: 05-30-2012, 09:30 AM
  3. Error when double-clicking a jar file
    By Atynine in forum Java Applets
    Replies: 14
    Last Post: 01-20-2012, 04:09 PM
  4. Error when clicking a menu item JSF + Richfaces
    By pepelegal in forum JavaServer Faces (JSF)
    Replies: 0
    Last Post: 03-24-2011, 11:03 PM
  5. Replies: 1
    Last Post: 05-27-2010, 09:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •