Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Previewing activities hangs JClic Author #11

Open
leoperbo opened this issue Jul 1, 2015 · 3 comments
Open

Previewing activities hangs JClic Author #11

leoperbo opened this issue Jul 1, 2015 · 3 comments

Comments

@leoperbo
Copy link

leoperbo commented Jul 1, 2015

Working on Ubuntu 14.04 with Oracle Java 7, when I click on "preview" button in JClic Author (jclic-0.2.3.4.zip version released on 2013-12-13), it hangs and I have to kill Java. The only way to test activities is open the projects in JClic Player.

Same version is working well on Windows.

@frncesc
Copy link
Member

frncesc commented Jul 3, 2015

I'm unable to reproduce the issue.

This is a screenshot of JClic Author running on my Ubuntu 14.04 32 bit (updated from official sources, current kernel 3.13.0-55), with Unity desktop and Oracle Java 1.7.0_80 installed from ppa:webupd8team/java

The play preview window opens and closes without problems.

jclic author in ubuntu 14 04 with oracle java 7

Please try again installing JClic from ppa:jclic/master

If the problem persists, please provide information about what desktop are you using (Unity, Gnome, Gnome Classic, KDE, LXDE...)

Also, try launching JClicAuthor from a console and report the messages shown, if any. To do so, just open a terminal (Ctrl+Alt+T) and write: jclicauthor (assuming you have installed JClic from ppa:jclic/master)

@leoperbo
Copy link
Author

leoperbo commented Jul 3, 2015

Thank's for the reply.

I'm on Ubuntu 14.04 64 bit (updated from official sources, current kernel 3.13.0-57-generic - amd64), Unity Desktop and same version of Java (Oracle Java 1.7.0_80 installed from ppa:webupd8team/java):

captura de pantalla de 2015-07-03 08 35 17

This is the output in terminal when I run jclicauthor from decompressed zip version released on 2013-12-13:

~$ java -jar /home/myuser/software/jclic-0.2.3.4/jclicauthor.jar
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar 
jul 03, 2015 8:31:13 AM java.util.prefs.FileSystemPreferences syncWorld
WARNING: Couldn't flush system prefs: java.util.prefs.BackingStoreException: /etc/.java/.systemPrefs/edu create failed.

When I run jclicauthor installed from ppa:jclic/master, the problem persist (jclicauthor hangs when I try to preview an activity). This is the output in this case:

~$ jclicauthor
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar 
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at javax.swing.plaf.synth.SynthLookAndFeel.paintRegion(SynthLookAndFeel.java:371)
    at javax.swing.plaf.synth.SynthLookAndFeel.update(SynthLookAndFeel.java:335)
    at javax.swing.plaf.synth.SynthRootPaneUI.update(SynthRootPaneUI.java:120)
    at javax.swing.JComponent.paintComponent(JComponent.java:779)
    at javax.swing.JComponent.paint(JComponent.java:1055)
    at javax.swing.JComponent.paintToOffscreen(JComponent.java:5232)
    at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:295)
    at javax.swing.RepaintManager.paint(RepaintManager.java:1249)
    at javax.swing.JComponent._paintImmediately(JComponent.java:5180)
    at javax.swing.JComponent.paintImmediately(JComponent.java:4991)
    at javax.swing.RepaintManager$3.run(RepaintManager.java:808)
    at javax.swing.RepaintManager$3.run(RepaintManager.java:796)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:796)
    at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:769)
    at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:718)
    at javax.swing.RepaintManager.access$1100(RepaintManager.java:62)
    at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1677)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:745)
    at java.awt.EventQueue.access$300(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:706)
    at java.awt.EventQueue$3.run(EventQueue.java:704)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:715)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

@leoperbo
Copy link
Author

leoperbo commented Jul 3, 2015

Sorry, sorry, sorry!

I just realized that the preview window have been working ok, but have been located in another workspace! The "hang" I had detected was the preview window stopping me to use the work window of jclicauthor:

captura de pantalla de 2015-07-03 12 01 38

For what it's worth, I had moved the preview window to the workspace where jclicauthor were opened, closed the preview window, closed jclicauthor and when I restart jclicauhtor, "the preview window is still located in a not focused workspace", could be the correct title of this issue?

By the way, the output in terminal was clean when I changed the look and feel to "default":
captura de pantalla de 2015-07-03 12 10 02

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants