This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 7 - Pages: 1 - Last Post: 28 Jun 22, 10:59 Last Post By: PeMac
PeMac

Posts: 4
Registered: 29-Aug-2014
On (K)Ubuntu 22.04 preview shows no images
Posted: 23 Jun 22, 16:44
 
  Click to reply to this thread Reply
How to reproduce:

  • make a fresh install of the lastest jalbum package jalbum_28.1-1_amd64.deb
  • no customizing at all
  • open project "Sample Portfolio" coming with jalbum (or create a tiny new project with just one or two images)
  • Make album

The internal bowser opens the album and shows the title and empty frames only, no images. Clicking on an empty frame will open the "image" which consist of a little white pumping ball.

Any ideas?
JeffTucker

Posts: 8,328
Registered: 31-Jan-2006
Re: On (K)Ubuntu 22.04 preview shows no images
Posted: 23 Jun 22, 16:47   in response to: PeMac in response to: PeMac
 
  Click to reply to this thread Reply
Not sure why it's failing, but it doesn't really matter. Go to Tools > Preferences > General > Preview, and choose External browser and Use embedded web server.
PeMac

Posts: 4
Registered: 29-Aug-2014
Re: On (K)Ubuntu 22.04 preview shows no images
Posted: 23 Jun 22, 16:52   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Doesn't work, nothing happens after making + buttonpreview ... or pressing F12. Browser ist firefox as a flatpak.
JeffTucker

Posts: 8,328
Registered: 31-Jan-2006
Re: On (K)Ubuntu 22.04 preview shows no images
Posted: 23 Jun 22, 16:55   in response to: PeMac in response to: PeMac
 
  Click to reply to this thread Reply
In that case, I have no clue. These things work just fine in Windows and macOS, which covers about 98% of the users.

Maybe David has the time to wade into it.
davidekholm

Posts: 4,108
Registered: 18-Oct-2002
Re: On (K)Ubuntu 22.04 preview shows no images
Posted: 23 Jun 22, 17:29   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Please open jAlbum's system console (F7), then copy and paste the following in the upper panel of the console window:
Desktop.getDesktop().browse(new URI("http://jalbum.net"));
Now hit the execute button to execute this statement. This should open jalbum.net in your default browser. Does it?
PeMac

Posts: 4
Registered: 29-Aug-2014
Re: On (K)Ubuntu 22.04 preview shows no images
Posted: 23 Jun 22, 22:46   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
No, it doesn't :-(

Seems to be a problem of detecting the default browser firefox (via flatpak)

xdg-settings get default-web-browser says:

org.mozilla.firefox.desktop

and the System console log says:

An unexpected error occurred. Please see detailed description below:

javax.script.ScriptException: javax.script.ScriptException: java.lang.UnsupportedOperationException: The BROWSE action is not supported on the current platform!
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:158)
at net.jalbum.script.GroovierScriptEngine.eval(GroovierScriptEngine.java:86)
at java.scripting/javax.script.AbstractScriptEngine.eval(Unknown Source)
at se.datadosen.jalbum.JConsoleFrame.processExpression(JConsoleFrame.java:354)
at se.datadosen.jalbum.JConsoleFrame.access$100(JConsoleFrame.java:62)
at se.datadosen.jalbum.JConsoleFrame$2.actionPerformed(JConsoleFrame.java:138)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.desktop/java.awt.Component.processEvent(Unknown Source)
at java.desktop/java.awt.Container.processEvent(Unknown Source)
at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
Caused by: javax.script.ScriptException: java.lang.UnsupportedOperationException: The BROWSE action is not supported on the current platform!
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:320)
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:155)
... 40 more
Caused by: java.lang.UnsupportedOperationException: The BROWSE action is not supported on the current platform!
at java.desktop/java.awt.Desktop.checkActionSupport(Unknown Source)
at java.desktop/java.awt.Desktop.browse(Unknown Source)
at java_awt_Desktop$browse$0.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:139)
at Script1.run(Script1.groovy:1)
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:317)
... 41 more

Edited by: PeMac on 23 Jun 2022, 22:46
davidekholm

Posts: 4,108
Registered: 18-Oct-2002
Re: On (K)Ubuntu 22.04 preview shows no images
Posted: 27 Jun 22, 23:33   in response to: PeMac in response to: PeMac
 
  Click to reply to this thread Reply
The error
java.lang.UnsupportedOperationException: The BROWSE action is not supported on the current platform!
makes me suspect that your Linux distro doesn't play well with JavaFX 14. We're working towards making the move to JavaFX 18. That will hopefully resolve this.
PeMac

Posts: 4
Registered: 29-Aug-2014
Re: On (K)Ubuntu 22.04 preview shows no images
Posted: 28 Jun 22, 10:59   in response to: PeMac in response to: PeMac
 
  Click to reply to this thread Reply
TNX, lets wait for FX18 :-)
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums