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


Permlink Replies: 15 - Pages: 2 [ 1 2 | Next ] - Last Post: 31-Mar-2014 18:10 Last Post By: davidekholm Threads: [ Previous | Next ]
jGromit

Posts: 33,185
Registered: 31-Jan-2006
LightBoxes error with jAlbum 12
Posted: 27-Mar-2014 16:05
 
  Click to reply to this thread Reply
Mike, you need to try LightBoxes with the jAlbum 12 beta release. I'm getting an "out of memory" error, with default settings and just a few images. Not sure where it's coming from....

Edit: It's OK under OSX. The problem only shows up in Win7.
drmikey

Posts: 867
Registered: 22-Dec-2006
Re: LightBoxes error with jAlbum 12
Posted: 27-Mar-2014 16:34   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
Thanks. I'll look into it. I have Win 7 under Parallels Desktop on my Mac
jGromit

Posts: 33,185
Registered: 31-Jan-2006
Re: LightBoxes error with jAlbum 12
Posted: 27-Mar-2014 21:21   in response to: drmikey in response to: drmikey
 
  Click to reply to this thread Reply
Attachment lbError.txt (2,1 KB)
FWIW, here's the text of the error I usually get. Sometimes, it's worse than that, and I get a blank window whose title bar says only, "An unexpected error occurred."
jGromit

Posts: 33,185
Registered: 31-Jan-2006
Re: LightBoxes error with jAlbum 12
Posted: 28-Mar-2014 06:52   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
I've done some poking around, and finally discovered that the error is occurring when jAlbum tries to copy the skin's res directory to the output. I can get rid of the error by simply deleting about half of the res contents. It doesn't seem to matter what, specifically, I get rid of. It's as if jAlbum is using some limited resource to do the copying, and just runs out of handles because the res directory structure is so deep.

If others can duplicate the error (meaning that it isn't unique to my machine for some weird reason), this may be one that David will need to look at.

Edit: I've also confirmed that it works OK in jAlbum 11.6.14. I know that David has made some changes in the res copying routines to correct some old errors, so it seems that one of those changes is what's hitting LightBoxes about the head and shoulders.
drmikey

Posts: 867
Registered: 22-Dec-2006
Re: LightBoxes error with jAlbum 12
Posted: 28-Mar-2014 15:48   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
With Jalbum 12.20 and Java 7 v51, I get the following error with every skin:

An unexpected error occurred. Please see detailed description below:
 
java.lang.reflect.InvocationTargetException
	at java.awt.EventQueue.invokeAndWait(Unknown Source)
	at java.awt.EventQueue.invokeAndWait(Unknown Source)
	at javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
	at se.datadosen.jalbum.JAlbumFrame$11.run(JAlbumFrame.java:957)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.teamdev.jxbrowser.chromium.internal.WebViewManager
	at com.teamdev.jxbrowser.chromium.BrowserFactory.create(Unknown Source)
	at com.teamdev.jxbrowser.chromium.BrowserFactory.create(Unknown Source)
	at com.teamdev.jxbrowser.chromium.BrowserFactory.create(Unknown Source)
	at jxbrowser.BrowserPanel.initBrowser(BrowserPanel.java:394)
	at jxbrowser.BrowserPanel.getBrowserPane(BrowserPanel.java:451)
	at se.datadosen.jalbum.JProgressDialog.setDialogToFinishedState(JProgressDialog.java:375)
	at se.datadosen.jalbum.JAlbumFrame$11$1.run(JAlbumFrame.java:960)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$200(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.pumpEventsForFilter(Unknown Source)
	at java.awt.WaitDispatchSupport$2.run(Unknown Source)
	at java.awt.WaitDispatchSupport$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.WaitDispatchSupport.enter(Unknown Source)
	at java.awt.Dialog.show(Unknown Source)
	at java.awt.Component.show(Unknown Source)
	at java.awt.Component.setVisible(Unknown Source)
	at java.awt.Window.setVisible(Unknown Source)
	at java.awt.Dialog.setVisible(Unknown Source)
	at se.datadosen.jalbum.JProgressDialog.updateStateAndSetVisible(JProgressDialog.java:455)
	at se.datadosen.jalbum.JAlbumFrame.doMakeAlbum(JAlbumFrame.java:1054)
	at se.datadosen.jalbum.JAlbumFrame.makeAlbum(JAlbumFrame.java:854)
	at se.datadosen.jalbum.JAlbumFrame$JAlbumFrameActions$7.actionPerformed(JAlbumFrame.java:2947)
	at se.datadosen.component.JPopupButton$3.actionPerformed(JPopupButton.java:142)
	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
	at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
	at java.awt.Component.processMouseEvent(Unknown Source)
	at javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$200(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)
jGromit

Posts: 33,185
Registered: 31-Jan-2006
Re: LightBoxes error with jAlbum 12
Posted: 28-Mar-2014 16:24   in response to: drmikey in response to: drmikey
 
  Click to reply to this thread Reply
That's interesting. That's similar to the error I've been seeing in the console if I hit the Preview button before doing a Make Album, the error that David has not been able to duplicate. What's the exact sequence you're seeing? When does the error appear? Do you get that error even if you Make Album before doing a preview?
drmikey

Posts: 867
Registered: 22-Dec-2006
Re: LightBoxes error with jAlbum 12
Posted: 28-Mar-2014 16:31   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
I do not get a Preview when the Preview tab is clicked. The error occurs when I "Make Album". Also, if I click the magnifying glass icon next to make album, I get an error that the "Jalbum browser does not seem to work...." but when I click the Preview tab at the top, I get no error and no preview.
jGromit

Posts: 33,185
Registered: 31-Jan-2006
Re: LightBoxes error with jAlbum 12
Posted: 28-Mar-2014 16:40   in response to: drmikey in response to: drmikey
 
  Click to reply to this thread Reply
Try disabling the automatic internal browser, and see if the behavior changes - Tools, Preferences, General, Use jAlbum's integrated browser. Close and relaunch, because once you get an error like that, all further testing is "poisoned" by it!

I've emailed David to drop in on this thread. He's on a skiing vacation this week.
drmikey

Posts: 867
Registered: 22-Dec-2006
Re: LightBoxes error with jAlbum 12
Posted: 28-Mar-2014 16:52   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
No errors noted
jGromit

Posts: 33,185
Registered: 31-Jan-2006
Re: LightBoxes error with jAlbum 12
Posted: 28-Mar-2014 16:56   in response to: drmikey in response to: drmikey
 
  Click to reply to this thread Reply
One more experiment, with the internal browser disabled....

Start a new project, add a few images, then click Preview. It'll ask if you want to make the album - click Yes. Still no error?

Back to the original problem - are you getting the huge catastrophic error with LightBoxes that started this thread, or is it just me? I don't get it in OSX, so if you're not seeing it, it may be because even running Win7 in Parallels, it's still using some aspect of OSX's own file-handling routines. Tough to sort out.
drmikey

Posts: 867
Registered: 22-Dec-2006
Re: LightBoxes error with jAlbum 12
Posted: 28-Mar-2014 17:01   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
No preview and no dialog asking to make Album. I re-enabled Jalbums browser and still not dialog.
I am not getting the error with lightboxes in Parallels but I want to try it on a PC this weekend.
davidekholm

Posts: 21,460
Registered: 18-Oct-2002
Re: LightBoxes error with jAlbum 12
Posted: 31-Mar-2014 13:53   in response to: drmikey in response to: drmikey
 
  Click to reply to this thread Reply
jAlbum beta 21 available at http://jalbum.net/download/beta/jalbum-core.jar should now take care of that out-of-memory error during the copying of large folders. Please confirm.
jGromit

Posts: 33,185
Registered: 31-Jan-2006
Re: LightBoxes error with jAlbum 12
Posted: 31-Mar-2014 15:00   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Attachment ss000474.png (263,5 KB)
Different, but not better, I'm afraid.

Now when I create a new LightBoxes project, add a few images, and Make Album, I get an endless progress spinner (see screenshot). It never makes the album.

Looking at the output directory, it has copied some of the "res" subdirectory top-level structure (it's missing one subdirectory), but none of the structure below it. All of the subdirectories are empty.

No console messages.
jGromit

Posts: 33,185
Registered: 31-Jan-2006
Re: LightBoxes error with jAlbum 12
Posted: 31-Mar-2014 17:03   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
The jAlbum 12b22 core update appears to fix the gross error that prompted me to start this thread, so I'll mark it "answered." The entire res subdirectory is now being copied to the output, without any error messages. It's not speedy, but it works (that is one humongous res subdirectory!).

The JxBrowser initialization failure is a separate issue, probably best dealt with in the jAlbum 12 beta thread, since it's not skin-specific. I can't test it, but I wonder if there's a difference between Parallels and Bootcamp - Parallels presents a "virtual" Win7 experience, whereas Bootcamp is more like the real thing. There may be something about the Parallels virtualization that JxBrowser can't handle. Hard to say.
drmikey

Posts: 867
Registered: 22-Dec-2006
Re: LightBoxes error with jAlbum 12
Posted: 31-Mar-2014 17:14   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
Thanks for the info. I am rewriting Lightboxes currently and it will have a more "normal" sized res directory in the future. ;-)
Legend
Forum admins
Helpful Answer
Correct Answer

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