JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 18.02.2016, 15:45
maxmaster maxmaster is offline
Bandwidth Beast
 
Join Date: Dec 2014
Posts: 139
Default restore from tray issues

For Tray-settings see tray1.png

For bug-description see below.

With these settings, after a fresh start of JD2, when minimizing JD2 to tray it and then restoring it, the window-size is completely wrong, see tray2.png.

After resizing/maximizing the window, minimizing to tray and restoring it, the size of the restored window is fine until JD2 is closed.

For every new session, the window-size is wrong after restoring JD2 from tray for the first time.

Logs show no error or any other message.

Happening since yesterday (Feb 17).



EDIT:
Build Thu Feb 18 16:48:45 CET 2016 broke the restore in a different way.
Minimizing to tray right after starting JD2, it is not possible to restore the window at all.

Only when I switch panes before minimizing the first time, e.g. from Downloads to LinkGrabber, then restoring from tray works and the window has the proper size, too. One bug exchanged for another.

Log.L.log:
Code:
--ID:22TS:1455817335934-2/18/16 6:42:15 PM -  [] -> 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)
Gui.log:
Code:
--ID:22TS:1455817335933-2/18/16 6:42:15 PM -  [jd.gui.swing.jdgui.JDGui$36(edtRun)] -> Reset frame to 
null
Attached Images
File Type: png tray1.png (10.8 KB, 55 views)
File Type: png tray2.png (26.8 KB, 43 views)

Last edited by maxmaster; 18.02.2016 at 19:00.
Reply With Quote
  #2  
Old 18.02.2016, 20:32
Super JD Super JD is offline
Fibre Channel User
 
Join Date: Oct 2014
Posts: 116
Default Restoring from tray doesn't work

Since the most recent update, today, restoring JD2 from the icon in the system tray / notification area doesn't work. Please help. As always, many thanks.
Reply With Quote
  #3  
Old 18.02.2016, 20:44
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,983
Default

Fixed. Please install the latest update (Tray menu->Install Updates)
__________________
Reply With Quote
  #4  
Old 18.02.2016, 21:24
kartie
Guest
 
Posts: n/a
Default

That was fast. Thanks.

Edit: Nope, still won't restore after minimize to tray.

Last edited by kartie; 18.02.2016 at 21:27.
Reply With Quote
  #5  
Old 18.02.2016, 21:49
maxmaster maxmaster is offline
Bandwidth Beast
 
Join Date: Dec 2014
Posts: 139
Default

Quote:
Originally Posted by coalado View Post
Fixed. Please install the latest update (Tray menu->Install Updates)
Is Build Thu Feb 18 19:07:21 CET 2016 the latest version? It's being offered via update and is broken.
Reply With Quote
  #6  
Old 18.02.2016, 22:42
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,983
Default

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?
__________________
Reply With Quote
  #7  
Old 18.02.2016, 23:39
kartie
Guest
 
Posts: n/a
Default

I did that and... apparently it fixed itself.
After exit and start again normally it restores the window just fine.
Reply With Quote
  #8  
Old 19.02.2016, 00:17
Super JD Super JD is offline
Fibre Channel User
 
Join Date: Oct 2014
Posts: 116
Default

As per kartie's post, on restart it worked to restore from the tray - but only on the first attempt. Subsequent efforts are ineffective. This still needs work, please.

Last edited by Super JD; 19.02.2016 at 00:21.
Reply With Quote
  #9  
Old 19.02.2016, 08:51
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 70,278
Default

Please close your JDownloader and zip your logs folder and send to support@jdownloader.org
Or let us do a Teamviewer session, contact us via e-mail
__________________
JD-Dev & Server-Admin
Reply With Quote
  #10  
Old 19.02.2016, 12:55
Super JD Super JD is offline
Fibre Channel User
 
Join Date: Oct 2014
Posts: 116
Default

No one else is having this problem at this time?

For what it's worth, I've made no changes to JD2, and the problem emerged after a JD update concurrent with the reports by others, in this thread, that restoring from the tray isn't working. This doesn't appear as a coincidence.

I'm hoping to resolve this without getting into Team Viewer sessions.

Thanks.
Reply With Quote
  #11  
Old 19.02.2016, 14:31
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 70,278
Default

Please zip your logs folder and send to support@jdownloader.org
we are unable to reproduce the issue
__________________
JD-Dev & Server-Admin
Reply With Quote
  #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
  #13  
Old 19.02.2016, 16:43
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,983
Default

maxmaster: Bitte updaten und testen
__________________
Reply With Quote
  #14  
Old 19.02.2016, 17:11
maxmaster maxmaster is offline
Bandwidth Beast
 
Join Date: Dec 2014
Posts: 139
Default

Seems to be fixed in Build Fri Feb 19 15:12:44 CET 2016.

There's still the INFO-line in Gui.log after ever restore,
Code:
--ID:26TS:1455898015103-2/19/16 5:06:55 PM -  [jd.gui.swing.jdgui.JDGui$36(edtRun)] -> Bad ExtendedState 
7
--ID:26TS:1455898015104-2/19/16 5:06:55 PM -  [jd.gui.swing.jdgui.JDGui$36(edtRun)] -> Reset frame to 
null
but no more NullPointerException in Log.L.log and restore works too.

Thanks.
Reply With Quote
  #15  
Old 19.02.2016, 17:22
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 70,278
Default

Thanks for the feedback!
__________________
JD-Dev & Server-Admin
Reply With Quote
  #16  
Old 19.02.2016, 17:25
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,983
Default

Thanks a lot. I will work on the remaining issues. But at least you can use JDownloader now
__________________
Reply With Quote
  #17  
Old 19.02.2016, 17:45
Super JD Super JD is offline
Fibre Channel User
 
Join Date: Oct 2014
Posts: 116
Default

The most recent update seems to have fixed this, as of now.

I've restarted JD twice since the update and restoring from the tray has been successful at every attempt.

Thanks.
Reply With Quote
Reply

Thread Tools
Display Modes

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 11:17.
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 - 2021, Jelsoft Enterprises Ltd.