Thread: [Solved] restore from tray issues
View Single Post
  #12  
Old 19.02.2016, 16:33
maxmaster maxmaster is offline
Bandwidth Beast
 
Join Date: Dec 2014
Posts: 139
Default

Quote:
Originally Posted by coalado View Post
Hm. can you please start from console with java -jar JDownloader.jar -console and check if there are any exceptions on the console when you click the tray icon?
Code:
THREAD 24
24|Gui.log 19.02.16 16:17:31 - INFO [ jd.gui.swing.jdgui.JDGui$36(edtRun) ] -> Reset frame to
null
24|Log.L.log 19.02.16 16:17:31 - SEVERE [ Log.L.log ] -> java.lang.NullPointerException
        at jd.gui.swing.jdgui.JDGui$36.edtRun(JDGui.java:1740)
        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 jd.gui.swing.jdgui.JDGui.setWindowToTray(JDGui.java:1725)
        at org.jdownloader.gui.jdtrayicon.TrayExtension.mousePressed(TrayExtension.java:424)
        at org.jdownloader.gui.jdtrayicon.TrayMouseAdapter.mousePressed(TrayMouseAdapter.java:184)
        at java.awt.TrayIcon.processMouseEvent(Unknown Source)
        at java.awt.TrayIcon.processEvent(Unknown Source)
        at java.awt.TrayIcon.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$300(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue$4.run(Unknown Source)
        at java.awt.EventQueue$4.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Retested with a fresh JD2-install (Build Fri Feb 19 14:10:04 CET 2016), with only the Tray-settings from tray1.png.

What I also noticed: The very first time JD2 starts after a fresh install, the window's placement is off. See jd2_tray_bug_window.png. The top-left corner is exactly in the middle of the screen.

That's the same position the window has after force-closing JD2 when it cannot be restored from tray again. During this post-bug-session, minimizing to and restoring from tray DOES work.

The next time you open JD2, the bug is back.

Build Fri Feb 19 14:10:04 CET 2016
Core #32923
Launcher #3283
AppWork Utilities: #2597
Browser: #32849
Updater: #487
Oracle Corporation - 1.8.0_40(64bit) (197.03 MB/235.00 MB/1.78 GB)


EDIT:
During shutdown of the JD2-session when restoration fails:
Code:
THREAD: 24
24|Gui.log 19.02.16 16:20:02 - INFO [ jd.gui.swing.jdgui.JDGui$36(edtRun) ] -> Reset frame to
null

THREAD: 24
24|Log.L.log 19.02.16 16:20:02 - SEVERE [ Log.L.log ] -> java.lang.NullPointerException
        at jd.gui.swing.jdgui.JDGui$36.edtRun(JDGui.java:1740)
        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 jd.gui.swing.jdgui.JDGui.setWindowToTray(JDGui.java:1725)
        at org.jdownloader.gui.jdtrayicon.TrayExtension.stop(TrayExtension.java:96)
        at org.jdownloader.extensions.AbstractExtension.dispose(AbstractExtension.java:92)
        at jd.gui.swing.jdgui.JDGui$27$1.edtRun(JDGui.java:1353)
        at org.appwork.utils.swing.EDTHelper.run(EDTHelper.java:119)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$300(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Slightly different line-numbers.
Attached Images
File Type: png jd2_tray_bug_window.png (45.5 KB, 44 views)

Last edited by maxmaster; 19.02.2016 at 16:48.
Reply With Quote