de en es fr
Let the machine help
Light teasing, exhibition, BDSM, sissyfication, watersports... with sounds and pictures


Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Program hangs on publish
PostPosted: Fri Jul 06, 2018 2:06 pm 
Offline
Regular
Hey, me again.

I have another issue when publishing. It turns out that I published the script with no images, I presume because I made sub-folders and didn't declare them.

I ended moving the pictures out of the subfolders, into just one script folder and trying to use folder/*. This made the program hang when I clicked publish. It didn't error, it didn't freeze, just loaded forever.

I initially thought it was just very slow to parse the folder so I declared all the images manually in resources. Then it still hanged.

Then I read the error file, and saw a new errror, wanted to make sure it was publishing related, so I deleted error.txt and tried publishing again. Sure enough it was there again.

Code:
Fri Jul 06 15:01:46 EEST 2018
os.name : Windows 10
os.arch : x86
java.version : 1.8.0_171
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space

   at java.util.Arrays.copyOf(Unknown Source)
   at java.io.ByteArrayOutputStream.grow(Unknown Source)
   at java.io.ByteArrayOutputStream.ensureCapacity(Unknown Source)
   at java.io.ByteArrayOutputStream.write(Unknown Source)
   at java.util.zip.DeflaterOutputStream.deflate(Unknown Source)
   at java.util.zip.DeflaterOutputStream.write(Unknown Source)
   at java.util.zip.ZipOutputStream.write(Unknown Source)
   at ss.desktop.Publisher.addToZipStream(Publisher.java:223)
   at ss.desktop.Publisher.addPathToZipStream(Publisher.java:263)
   at ss.desktop.Publisher.doPublish(Publisher.java:278)
   at ss.desktop.Publisher.execute(Publisher.java:107)
   at ss.desktop.EditorFrame$8.actionPerformed(EditorFrame.java:239)
   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.AbstractButton.doClick(Unknown Source)
   at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
   at javax.swing.plaf.basic.BasicMenuItemUI$Handler.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)


This is the resources I'm trying to load
Code:
/*
* Resources
* scripts/waitinggame.groovy
* images/waitinggame/intro1.jpg
* images/waitinggame/intro2.jpg
* images/waitinggame/intro3.jpg
* images/waitinggame/intro4.jpg
* images/waitinggame/lvl2_1.jpg
* images/waitinggame/lvl2_2.jpg
* images/waitinggame/lvl2_3.jpg
* images/waitinggame/lvl2_4.jpg
* images/waitinggame/lvl2_5.jpg
* images/waitinggame/lvl3_1.jpg
* images/waitinggame/lvl3_2.jpg
* images/waitinggame/lvl3_3.jpg
* images/waitinggame/lvl3_4.jpg
* images/waitinggame/lvl3_5.jpg
* images/waitinggame/main_1.jpg
* images/waitinggame/main_2.jpg
* images/waitinggame/main_3.jpg
* images/waitinggame/main_4.jpg
* images/waitinggame/main_5.jpg
* images/waitinggame/main_6.jpg
* sounds/waitinggame/testpulse.wav
* sounds/waitinggame/gamepulse.wav
*/


I've tried updating java, disabling firewall, restarting and nothing worked.


Top
 Profile Send private message 
 
 Re: Program hangs on publish
PostPosted: Fri Jul 06, 2018 8:10 pm 
Offline
Site Admin
User avatar
Are some of those files bigger thant 1Mb ? Which size ?


Top
 Profile Send private message 
 
 Re: Program hangs on publish
PostPosted: Sat Jul 07, 2018 12:56 am 
Offline
Regular
The biggest one is 3.54mb, smallest one is 1.81mb.


Top
 Profile Send private message 
 
 Re: Program hangs on publish
PostPosted: Sat Jul 07, 2018 8:51 am 
Offline
Site Admin
User avatar
1.81Mb for a jpg ? There must be a problem, a 1000x1000px JPEG with 90% quality is around 250Kb.

You can try with more memory, in a terminal (for example 512Mb) :
Code:
java -Dfile.encoding=UTF-8 -Xmx512M -jar sexscripts.jar


Top
 Profile Send private message 
 
 Re: Program hangs on publish
PostPosted: Sat Jul 07, 2018 9:14 am 
Offline
Regular
They were very high resolution, from a professional photoshoot. 8k.

I ended up making them average sized pictures, biggest one ending up at less than 500kb and everything seems to be fine.

Thanks for the work-around but I guess there's no reason to have super HD files, especially since some people are still on metered connections.

This is solved, thanks for the help again doti!


Top
 Profile Send private message 
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Maroon Fusion theme created by Oxydo
Software, theme modifications, phpBB modification by Doti 2010, 2015
This website uses session cookies only.