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


Permlink Replies: 15 - Pages: 2 [ 1 2 | Next ] - Last Post: 5 Jul 23, 20:11 Last Post By: davidekholm
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,216
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,216
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: 3,474
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: 3,474
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 :-)
bfulgham

Posts: 1
Registered: 15-Jan-2009
Re: On (K)Ubuntu 22.04 preview shows no images
Posted: 2 Sep 22, 01:06   in response to: PeMac in response to: PeMac
 
  Click to reply to this thread Reply
+1 on the problem.
Just upgraded (K)Ubuntu 20.04 to 22.04 and have the missing images on preview.
Worked perfectly on 20.04.
I've used jAlbum long enough to trust that everything is working as it should, so, I just upload the album and check it once it hits my web server; to verify my changes. A slight pain, but not a deal-breaker.
davidekholm

Posts: 3,474
Registered: 18-Oct-2002
Re: On (K)Ubuntu 22.04 preview shows no images
Posted: 5 Sep 22, 18:44   in response to: bfulgham in response to: bfulgham
 
  Click to reply to this thread Reply
bfulgham wrote:
+1 on the problem.
Just upgraded (K)Ubuntu 20.04 to 22.04 and have the missing images on preview.
Worked perfectly on 20.04.
I've used jAlbum long enough to trust that everything is working as it should, so, I just upload the album and check it once it hits my web server; to verify my changes. A slight pain, but not a deal-breaker.

The upcoming jAlbum release will run on Java 18 instead of Java 14. This will hopefully fix this issue. If not, let the (K)Ubuntu people know.
royalenfield

Posts: 7
Registered: 4-Nov-2007
Re: On (K)Ubuntu 22.04 preview shows no images
Posted: 20 Sep 22, 20:27   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
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"));
?

I have/had the same problem after upgrading to Ubuntu 22.04 a few days ago (20220913).

But after executing your test script, jalbum.net opens in Firefox as a new tab. No error messages in the console.

Only pictures don't show, but videos in the album can be played in the local viewer.

After following Jeff Tuckers' suggestion, “Go to Tools > Preferences > General > Preview, and choose External browser and Use embedded web server”, the album shows OK in the Firefox browser.
So with my Ubuntu 22.04 it's only the internal viewer that doesn't work.

Another difference with the original poster is that I use XUbuntu, with XFCE desktop and he uses KDE desktop.
I don't think that should be an issue.

Does this give another view on the issue?

Edited by: hollycat2000 on 20 Sep 2022, 20:30
davidekholm

Posts: 3,474
Registered: 18-Oct-2002
Re: On (K)Ubuntu 22.04 preview shows no images
Posted: 20 Sep 22, 22:14   in response to: royalenfield in response to: royalenfield
 
  Click to reply to this thread Reply
Can you give the latest jAlbum beta a try on your Linux machine? All at https://jalbum.net/forum/thread.jspa?messageID=357338&#357338

This beta runs on Java 18. Hopefully they've addressed some of the Linux specific problems now.
royalenfield

Posts: 7
Registered: 4-Nov-2007
Re: On (K)Ubuntu 22.04 preview shows no images
Posted: 21 Sep 22, 16:51   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
I tested v28.2b5 Java18 and tested all 3 preview options (integrated, windows, external).
All 3 are working fine now.

Problem solved?

Edited by: hollycat2000 on 21 Sep 2022, 16:52
davidekholm

Posts: 3,474
Registered: 18-Oct-2002
Re: On (K)Ubuntu 22.04 preview shows no images
Posted: 21 Sep 22, 19:02   in response to: royalenfield in response to: royalenfield
 
  Click to reply to this thread Reply
I guess so. Thanks for testing!
sainio

Posts: 1
Registered: 7-May-2010
Re: On (K)Ubuntu 22.04 preview shows no images
Posted: 5 Jul 23, 16:21   in response to: PeMac in response to: PeMac
 
  Click to reply to this thread Reply
Has this been released already, bumbbed to the same problem with Fedora 38 just now?
Legend
Forum admins
Helpful Answer
Correct Answer

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