JDownloader Community - Appwork GmbH
 

Go Back   JDownloader Community - Appwork GmbH > International Support > JDownloader 2
Reply
 
Thread Tools Display Modes
  #1  
Old 01.11.2017, 17:31
Celmor
Guest
 
Posts: n/a
Default Display issue when viewed/hosted via X2Go

Running JDownloader 2 on a Linux host and displaying the session via X2Go/nx-libs to display the application on local client.
Either having JDownloader opened in single application mode (which disables things like XSETTINGS daemon) or by first opening a custom desktop (openbox) and opening jdownloader from a Terminal in there.
Tried displaying JDownloader via this method on Windows and Linux (connecting to localhost), displaying other applications (even Java ones) via X2Go works fine.
Window content glitches out in a way that it doesn't update anymore. Hovering or clicking certain items or moving window over areas make them appear again temporarily. Other times certain letters/icons just seem to be missing.
Refer to images for visualization.
Periodically the the connection get interrupted.
I've discussed this behavior with people on the IRC support channel for x2go and the evaluation was that JDownloader may cause the X-Server or nxagent to crash since the session got closed.
JDownloader never gave the Warning when opening next time that it got closed abruptly.

Details:
OS (uname -a): Linux Celmor-PC 4.12.13-1-MANJARO #1 SMP PREEMPT Thu Sep 14 09:59:16 UTC 2017 x86_64 GNU/Linux
Java (jdk8-openjdk) version: 8.u144-1
JDownloader Core version: #38138
About JDownloader:
Spoiler:
**External links are only visible to Support Staff****External links are only visible to Support Staff**


Log:
Output in Terminal from which application was started just before glitch happened.
Spoiler:
21|Log.L.log 11/1/17 11:18:25 AM - SEVERE [ Log.L.log ] -> java.lang.ClassCastException: sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData
at sun.java2d.xr.XRPMBlitLoops.cacheToTmpSurface(XRPMBlitLoops.java:148)
at sun.java2d.xr.XrSwToPMBlit.Blit(XRPMBlitLoops.java:356)
at sun.java2d.pipe.DrawImage.blitSurfaceData(DrawImage.java:959)
at sun.java2d.pipe.DrawImage.renderImageCopy(DrawImage.java:577)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:67)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:1014)
at sun.java2d.pipe.ValidatePipe.copyImage(ValidatePipe.java:186)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3318)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3296)
at javax.swing.ImageIcon.paintIcon(ImageIcon.java:425)
at org.appwork.utils.images.IconIO$ScaledIcon.paintIcon(IconIO.java:149)
at sun.swing.plaf.synth.SynthIcon.paintIcon(SynthIcon.java:67)
at javax.swing.plaf.synth.SynthGraphicsUtils.paintText(SynthGraphicsUtils.java:396)
at de.javasoft.plaf.synthetica.GraphicsUtils.paintText(GraphicsUtils.java:198)
at javax.swing.plaf.synth.SynthLabelUI.paint(SynthLabelUI.java:212)
at javax.swing.plaf.synth.SynthLabelUI.update(SynthLabelUI.java:176)
at javax.swing.JComponent.paintComponent(JComponent.java:780)
at javax.swing.JComponent.paint(JComponent.java:1056)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paint(JComponent.java:1065)
at org.appwork.utils.swing.renderer.RendererMigPanel.paint(RendererMigPanel.java:118)
at javax.swing.CellRendererPane.paintComponent(CellRendererPane.java:151)
at javax.swing.plaf.synth.SynthTableUI.paintCell(SynthTableUI.java:692)
at javax.swing.plaf.synth.SynthTableUI.paintCells(SynthTableUI.java:580)
at javax.swing.plaf.synth.SynthTableUI.paint(SynthTableUI.java:364)
at javax.swing.plaf.synth.SynthTableUI.update(SynthTableUI.java:275)
at javax.swing.JComponent.paintComponent(JComponent.java:780)
at org.appwork.swing.exttable.ExtTable.paintComponent(ExtTable.java:1130)
at jd.gui.swing.jdgui.BasicJDTable.paintComponent(BasicJDTable.java:275)
at org.jdownloader.gui.views.components.packagetable.PackageControllerTable.paintComponent(PackageContr ollerTable.java:860)
at javax.swing.JComponent.paint(JComponent.java:1056)
at javax.swing.JComponent.paintToOffscreen(JComponent.java:5210)
at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:290)
at javax.swing.RepaintManager.paint(RepaintManager.java:1272)
at javax.swing.JComponent.paintForceDoubleBuffered(JComponent.java:1092)
at javax.swing.JViewport.blitDoubleBuffered(JViewport.java:1605)
at javax.swing.JViewport.windowBlitPaint(JViewport.java:1558)
at javax.swing.JViewport.setViewPosition(JViewport.java:1100)
at javax.swing.JViewport.scrollRectToVisible(JViewport.java:436)
at javax.swing.JComponent.scrollRectToVisible(JComponent.java:3111)
at org.appwork.swing.exttable.ExtTable$12.edtRun(ExtTable.java:1694)
at org.appwork.utils.swing.EDTHelper.run(EDTHelper.java:119)
at org.appwork.utils.swing.EDTHelper.start(EDTHelper.java:154)
at org.appwork.utils.swing.EDTHelper.start(EDTHelper.java:139)
at org.appwork.swing.exttable.ExtTable.scrollToSelection(ExtTable.java:1673)
at org.jdownloader.gui.views.downloads.DownloadsPanel$1.componentResized(DownloadsPanel.java:75)
at java.awt.Component.processComponentEvent(Component.java:6359)
at java.awt.Component.processEvent(Component.java:6313)
at java.awt.Container.processEvent(Container.java:2236)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2294)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java: 80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java: 90)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java: 80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

New Window State (Normal): {
"extendedState" : "NORMAL",
"width" : 956,
"height" : 1041,
"x" : 3522,
"visible" : true,
"y" : 18,
"silentShutdown" : false,
"screenID" : ":0.0",
"locationSet" : true,
"focus" : false,
"active" : true
}
New Window State (Normal): {
"extendedState" : "NORMAL",
"width" : 956,
"height" : 941,
"x" : 0,
"visible" : true,
"y" : 0,
"silentShutdown" : false,
"screenID" : ":0.0",
"locationSet" : true,
"focus" : false,
"active" : true
}
New Window State (Normal): {
"extendedState" : "NORMAL",
"width" : 956,
"height" : 1041,
"x" : 3522,
"visible" : true,
"y" : 18,
"silentShutdown" : false,
"screenID" : ":0.0",
"locationSet" : true,
"focus" : false,
"active" : false
}


Screenshots:
Spoiler:
**External links are only visible to Support Staff****External links are only visible to Support Staff**
**External links are only visible to Support Staff****External links are only visible to Support Staff**
**External links are only visible to Support Staff****External links are only visible to Support Staff**
**External links are only visible to Support Staff****External links are only visible to Support Staff**
**External links are only visible to Support Staff****External links are only visible to Support Staff**
**External links are only visible to Support Staff****External links are only visible to Support Staff**
**External links are only visible to Support Staff****External links are only visible to Support Staff**
**External links are only visible to Support Staff****External links are only visible to Support Staff**
**External links are only visible to Support Staff****External links are only visible to Support Staff**

Last edited by Celmor; 01.11.2017 at 18:07. Reason: expanding description
Reply With Quote
  #2  
Old 02.11.2017, 10:46
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

You can try to switch to Oracle JDK (instead of openjdk) and check if that works
The issue comes from deep within Java itself
sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData
at sun.java2d.xr.XRPMBlitLoops.cacheToTmpSurface(XRPMBlitLoops.java:148)
bugs.java.com/view_bug.do?bug_id=8133723
bugs.java.com/view_bug.do?bug_id=7172749

You could also test java9 and see if that fixes the issue caused by X2Go/nx

You should use headless JDownloader any MyJDownloader service or run JDownloader within a VNC session.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 04.11.2017, 14:55
Celmor
Guest
 
Posts: n/a
Default update

Tested which neither solved the rendering or xorg crashing issue **External links are only visible to Support Staff**Oracles version of JDK 8
Testing **External links are only visible to Support Staff**Oracles version of JDK 9 fixes the rendering issue but xorg still seems to crash:
  • - JDownloader does look worse, more pixelated fonts, some borders missing and elements cut off but I was told this is a known issue with version 9 of Java.
    -> puu sh/ydUZa/1229fb6df0.png (replace space with dot)
  • - X2Go reports that connection got terminated periodically and I'll have to re-open it via X2Go Client
    -> puu sh/yey5i/1a7ca024df.png (replace space with dot)
  • - I was told in IRC chat on freenode that this may be a memory issue of not being allocated enough but JDownloader reports 63.3 MB/126MB/3.9GB of In use/allocated/max allowed
    -> puu sh/yexRd/d34ef21463.png (replace space with dot)
  • - Here maybe some more or less relevant comments from X2Go support:
    "the disconnects are still worrisome though"
    "it sounds like nxagent is spinning"
    "NX transport is really just proxying X requests through with compression applied"
    "so whatever behavior is causing this, I wouldn't expect it to just go away"
    (@Ionic on freenode.net#X2Go)

@moderators: If it's against the rules to modify URLs so they don't get replaced and therefore are visible to the public please replace those back with the proper URL so they get replaced by that placeholder again.

Last edited by raztoki; 05.11.2017 at 01:00.
Reply With Quote
  #4  
Old 06.11.2017, 17:19
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

The used look and feel does not yet support java1.9
This week we release an updated version that supports java 1.9. Then it should look fine again

You should however find out the cause of those connection issues and fix them
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 06.11.2017 at 17:25.
Reply With Quote
  #5  
Old 07.11.2017, 18:01
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

Just for your information. The updated look and feel just got released and now JDownloader should look okay again with java 1.9
__________________
JD-Dev & Server-Admin
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 08:45.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.