Issue #47 resolved
Former user created an issue

On Windows Server 2012R2 sometimes it happens, that the mainwindow isn't renderd anymore, so you just see a white square empty window until you close the application completely and reopen it.

Comments (14)

  1. AndiTopp


    here in this screenshot you can see the problem. it only happens with this application, no other software has this problem on this machine.

  2. Jonas Wolz repo owner

    This is most likely some Java bug.

    Which Java version is installed?

    You can also try to turn off Direct3D rendering in Java. To do so, put a file named yajhfc.l4j.iniin the same directory as yajhfc.exe with the following contents:

  3. Comfine

    Thanks for your reply. The installed Version is 8 Update 101 (Build 1.8.0_101-b13). I will try your reported steps and report back if it helps.

  4. Comfine

    Hi Jonas, i created the ini-File as described, installed the newest Java-Version, but the problem still occurs. Can i check somehow if Direct3D-Option is read out of the ini-File correct? Anything else i could try?

  5. Jonas Wolz repo owner

    The option should show up under Help -> About -> System properties.

    You can also try starting YajHFC directly without the launcher by using the command java -Dsun.java2d.d3d=false -jar "C:\Program Files\YajHFC\yajhfc.jar"

  6. Comfine file.encoding=Cp1252 file.separator=\ java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment java.class.path=C:\Program Files\YajHFC\yajhfc.jar;C:\Program Files\YajHFC\lib\itextpdf-5.5.4.jar;C:\Program Files\YajHFC\lib\jna.jar;C:\Program Files\YajHFC\lib\platform.jar java.class.version=52.0 java.endorsed.dirs=C:\Program Files\Java\jre1.8.0_101\lib\endorsed java.ext.dirs=C:\Program Files\Java\jre1.8.0_101\lib\ext;C:\Windows\Sun\Java\lib\ext java.home=C:\Program Files\Java\jre1.8.0_101\Users\ADMINI~1\AppData\Local\Temp\4\ java.library.path=C:\Program Files\Java\jre1.8.0_101\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\OpenVPN\bin;C:\Daten\A_Dokumentencenter\Marktpartner, gelb\W\Wieland\Auslegungsprogramme_Listen\HT2000W.8x;C:\Program Files\Java\jre1.8.0_101\bin;. SE Runtime Environment java.runtime.version=1.8.0_101-b13 Platform API Specification java.specification.vendor=Oracle Corporation java.specification.version=1.8 java.vendor=Oracle Corporation java.vendor.url= java.vendor.url.bug= java.version=1.8.0_101 mode HotSpot(TM) 64-Bit Server VM Virtual Machine Specification java.vm.specification.vendor=Oracle Corporation java.vm.specification.version=1.8 java.vm.vendor=Oracle Corporation java.vm.version=25.101-b13 line.separator=

    os.arch=amd64 Server 2012 R2 os.version=6.3 path.separator=; sun.awt.enableExtraMouseButtons=true sun.awt.exception.handler=yajhfc.util.AWTExceptionLogger sun.boot.class.path=C:\Program Files\Java\jre1.8.0_101\lib\resources.jar;C:\Program Files\Java\jre1.8.0_101\lib\rt.jar;C:\Program Files\Java\jre1.8.0_101\lib\sunrsasign.jar;C:\Program Files\Java\jre1.8.0_101\lib\jsse.jar;C:\Program Files\Java\jre1.8.0_101\lib\jce.jar;C:\Program Files\Java\jre1.8.0_101\lib\charsets.jar;C:\Program Files\Java\jre1.8.0_101\lib\jfr.jar;C:\Program Files\Java\jre1.8.0_101\classes sun.boot.library.path=C:\Program Files\Java\jre1.8.0_101\bin sun.cpu.endian=little sun.cpu.isalist=amd64 sun.desktop=windows --loadplugin=C:\Program Files\YajHFC\yajhfc-pdf-plugin.jar --loadplugin=C:\Program Files\YajHFC\yajhfc-plugin-libtiff.jar --windowstate=T sun.jnu.encoding=Cp1252 64-Bit Tiered Compilers sun.os.patch.level= user.dir=C:\Program Files\YajHFC user.home=C:\Users\Administrator user.language=de user.script= user.timezone=Europe/Berlin user.variant=

    thanks for your reply, as posted, i cannot find this option active - i will change the startup to the java-command and check again.

  7. Comfine

    okay, now the option is set!

    i changed the command to C:\ProgramData\Oracle\Java\javapath\javaw.exe -Dsun.java2d.d3d=false -jar "C:\Program Files\YajHFC\yajhfc.jar" because otherwise the black console window stays open in background. i will report back if this helps.

  8. Comfine

    Now we got the problem, that if we want to print to the MFILEMON-Port, nothing happens, the send-window of yajhfc does not show up - what can i do to fix it?

  9. Jonas Wolz repo owner

    Start YajHFC as (this is one line without line breaks!): javaw.exe -Dsun.java2d.d3d=false -cp "C:\Program Files\YajHFC\yajhfc.jar;C:\Program Files\YajHFC\lib\itextpdf-5.5.4.jar;C:\Program Files\YajHFC\lib\jna.jar;C:\Program Files\YajHFC\lib\platform.jar" yajhfc.Launcher --loadplugin="C:\Program Files\YajHFC\yajhfc-pdf-plugin.jar" --loadplugin="C:\Program Files\YajHFC\yajhfc-plugin-libtiff.jar"

    This should be about the same what the launcher does...

  10. Comfine

    Hi Jonas,

    thanks for your help! The customer reported, that the Rendering-Problem still exists, with the Option enabled! Do you have any other idea, what we can do to debug this problem?

  11. Jonas Wolz repo owner

    Honestly, I do not really have a good idea...

    I think there are 2 things you can try:

    1. Do other Java applications (with a Swing GUI) also show this problem? (you could use as an example)

    2. If you set the "Look and Feel" in YajHFC (Options->General->User Interface) to something different, does this help? (I would suggest to try at least "Metal")

  12. Jonas Wolz repo owner

    In case you are still having this issue and are interested in a possible solution: Try if it helps if you set Options->General->Look&Feel to "Metal" or "Nimbus".

    Another user is having similar issues on Windows 10 and there I found NullPointerExceptions in the log caused by the Windows "native" look&feel.

  13. Comfine

    Thanks for your Reply. I think, this solved the problem at my customer aswell - i changed it already some month/weeks ago as you suggested, and the customer didn't report any problem since this!

  14. Log in to comment