Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - grovian

Pages: 1
1
Hi everyone,

My elusive Java issue is back and it completely blocks me from using Stencyl.

Please find the test game and log attached.
I trimmed the game down as much I could to make checking/debugging it easier. I understand that it should not run (I deleted too much for that) but I get the very same error message in the full project as well.

How to reproduce: (it happens on my mac 5/5)
1. Open game “JavaIssue”
2. Test Game (Flash Player)
3. Error message shows up (Encountered errors while building your game…)
 
Events for 'Scene_1': Unexpected !
   from scripts.SceneEvents_0
   line: 107
   columns: 46-47
Events for 'Scene_1': Unexpected .
   from scripts.SceneEvents_0
   line: 107
   columns: 47-48
Events for 'Scene_1': Unexpected .
   from scripts.SceneEvents_0
   line: 107
   columns: 47-48
Events for 'Scene_1': Unexpected .
   from scripts.SceneEvents_0
   line: 107
   columns: 47-48
Events for 'Scene_1': Unexpected .
   from scripts.SceneEvents_0
   line: 107
   columns: 47-48

This happens in the full project as well, not because I’ve deleted stuff.

4. Click OK
5. It goes into “Ouch, this should not have happened…”  while opening the scene and that is the end of it :(

6. Someone hopefully comes up with a smart solution!

Thank you for helping me!

2
Abandoned Bugs / Java? Unexpected problem on thread AWT-EventQueue-0:
« on: March 30, 2015, 01:29:11 am »
I just moved my project from pc to mac and while the example games work ok, in my project one of the three scenes cannot be opened (other two is fine) and I get this error message. Works perfectly on PC.

I am using the latest version of both Stencyl and java. Some details below and I have attached the full report.

Version:
2015-03-30 15:56:19,806 INFO  [main] stencyl.sw.Session: OS Name: Mac OS X
2015-03-30 15:56:19,807 INFO  [main] stencyl.sw.Session: OS Version: 10.10.2
2015-03-30 15:56:19,807 INFO  [main] stencyl.sw.Session: Java Version: 1.8.0_31
2015-03-30 15:56:19,808 INFO  [main] stencyl.sw.Session: Stencyl Version: 3.3.0 (b8281)

Log: (one can clearly see that it is ok with the other scenes, but freaks out on "Scene_1" (not best name I know))

2015-03-30 15:56:28,372 DEBUG [AWT-EventQueue-0] stencyl.core.lib.io.read.SceneReader: Reading header for Scene: 0 (Scene_1) from: scenes/0.xml
2015-03-30 15:56:28,376 DEBUG [AWT-EventQueue-0] stencyl.core.lib.io.read.SceneReader: Reading header for Scene: 1 (Settings) from: scenes/1.xml
2015-03-30 15:56:28,378 DEBUG [AWT-EventQueue-0] stencyl.core.lib.io.read.SceneReader: Reading header for Scene: 2 (Language) from: scenes/2.xml
2015-03-30 15:56:28,482 DEBUG [AWT-EventQueue-0] stencyl.core.lib.io.read.SceneReader: Reading header for Scene: 0 (Scene_1) from: scenes/0.xml
2015-03-30 15:56:29,105 DEBUG [AWT-EventQueue-0] stencyl.sw.app.doc.Workspace: Loading Closed Resource: Scene_1
2015-03-30 15:56:29,106 DEBUG [pool-1-thread-1] stencyl.core.lib.io.read.SceneReader: Reading header for Scene: 0 (Scene_1) from: scenes/0.xml
2015-03-30 15:56:29,145 ERROR [AWT-EventQueue-0] root: Unexpected problem on thread AWT-EventQueue-0: java.nio.BufferUnderflowException
java.lang.RuntimeException: java.nio.BufferUnderflowException
   at stencyl.sw.app.tasks.StencylWorker.done(StencylWorker.java:74)
   at stencyl.sw.app.tasks.StencylWorker.done(StencylWorker.java:54)
   at stencyl.sw.app.tasks.OpenResourceTask.done(OpenResourceTask.java:88)
   at javax.swing.SwingWorker$5.run(SwingWorker.java:737)
   at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(SwingWorker.java:832)
   at sun.swing.AccumulativeRunnable.run(AccumulativeRunnable.java:112)
   at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(SwingWorker.java:842)
   at javax.swing.Timer.fireActionPerformed(Timer.java:313)
   at javax.swing.Timer$DoPostEvent.run(Timer.java:245)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:749)
   at java.awt.EventQueue.access$500(EventQueue.java:97)
   at java.awt.EventQueue$3.run(EventQueue.java:702)
   at java.awt.EventQueue$3.run(EventQueue.java:696)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:719)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.nio.BufferUnderflowException
   at java.nio.Buffer.nextGetIndex(Buffer.java:506)
   at java.nio.HeapByteBuffer.getInt(HeapByteBuffer.java:361)
   at stencyl.core.lib.io.read.SceneReader.readLayer(SceneReader.java:1004)
   at stencyl.core.lib.io.read.SceneReader.readData(SceneReader.java:989)
   at stencyl.core.lib.io.read.SceneReader.read(SceneReader.java:328)
   at stencyl.core.lib.scene.SceneModel.load(SceneModel.java:229)
   at stencyl.sw.app.tasks.OpenResourceTask.doInBackground(OpenResourceTask.java:68)
   at stencyl.sw.app.tasks.OpenResourceTask.doInBackground(OpenResourceTask.java:22)
   at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   at javax.swing.SwingWorker.run(SwingWorker.java:334)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   at java.lang.Thread.run(Thread.java:745)

Pages: 1