[Windows 8 with Java 8] Right Clicking in Stencyl in opening files

aquilla

  • Posts: 15
Hey Guys,
When running stencyl from a batch file with "java -Xms64m -Xmx4096m -jar sw.jar" to increase memory, Stencyl goes a bit whacko and when I right click a file to get the context menu it will open the file instead.
This issue is isolated to Stencyl, the mouse button clicks and settings are normal in every other program.
Im running Windows 8.1 x64 with latest public release of Stencyl.
Java 8 Update 11 64 bit
Ive reinstalled Stencyl  and it makes no difference.

Anyone else had this issue?

« Last Edit: August 13, 2014, 03:20:22 am by captaincomic »

torcado194

  • *
  • Posts: 217
ah! I have this problem but i didnt investigate the problem very much. But I am also running off a batch file (1152MB) and the exact same thing happens. good to know its not just me.

captaincomic

  • *
  • Posts: 6109
Does it also happen with a different version of Java?
You can install Java 6, and modify the batch file so that it uses the java command from the Java 6 directory.
e.g.
Code: [Select]
C:\Program Files\Java\jre6\bin\java -Xms64m -Xmx4096m -jar sw.jar

aquilla

  • Posts: 15
Thanks captaincomic,
Your method works in Java7 with this line..
"C:\Program Files\Java\jre7\bin\java" -Xms64m -Xmx4096m -jar sw.jar

captaincomic

  • *
  • Posts: 6109
And with Java 7 the right-clicking works as expected?


captaincomic

  • *
  • Posts: 6109
To get a better idea of this bug: What files are you right-clicking? In the file chooser when you import/export something? Or are you right-clicking resources in Stencyl, like scenes, actor types, etc.?

Hectate

  • *
  • Posts: 4643
Running some replication tests for captaincomic:

I'm on Windows 8.1 x64. I installed JRE 8 update 11 (x64) and then launched Stencyl (build 7598) through the EXE file. No unusual behavior with the right/left mouse button was noted.

I created a batch file with the contents "java -Xms64m -Xmx4096m -jar sw.jar" and launched it. Immediately I noted that right-clicking a scene thumbnail from the dashboard caused the scene to open. It appeared that the context menu was briefly opened prior to the scene tab being moved to. Additionally, when I went to left-click the X on the scene's tab I got an error message pop-up with the contents (I may have inadvertantly dragged, but I could not reproduce this error a second time).
Quote
Unexpected problem on thread AWT-EventQueue-0: null
java.lang.NullPointerException
   at com.jidesoft.document.d.mouseDragged(Unknown Source)
   at java.awt.AWTEventMulticaster.mouseDragged(Unknown Source)
   at java.awt.AWTEventMulticaster.mouseDragged(Unknown Source)
   at java.awt.Component.processMouseMotionEvent(Unknown Source)
   at javax.swing.JComponent.processMouseMotionEvent(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$400(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)

I did some additional tests and noted that right-clicking Actor Types, Scenes, Tilesets, and Behaviors all reacted the same way - the context menu and editor (for the asset) would both open.
I followed it up by creating some folders in the dashboard and left/right clicking on those. Most interestingly, right-clicking on a folder would both open up the folder AND prompt me with the "Create New" pop-up, with the appropriate asset type preselected for me (example; right clicking an Actor Type folder would open the folder and open up a "Create New Actor Type" box).

I also noted that right-clicking anywhere in an empty folder or dashboard except the "create new" box would cause an error to pop up. Right/left-clicking a "create new" box would pop up the "create new " box.
Quote
Unexpected problem on thread AWT-EventQueue-0: null
java.lang.NullPointerException
   at stencyl.sw.app.center.AbstractPage$1PopupListener.rebuildPopup(AbstractPage.java:675)
   at stencyl.sw.app.center.AbstractPage$1PopupListener.maybeShowPopup(AbstractPage.java:453)
   at stencyl.sw.app.center.AbstractPage$1PopupListener.mouseReleased(AbstractPage.java:445)
   at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
   at java.awt.Component.processMouseEvent(Unknown Source)
   at javax.swing.JComponent.processMouseEvent(Unknown Source)
   at stencyl.sw.app.lists.AbstractList.processMouseEvent(AbstractList.java:278)
   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$400(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)

After this, I returned to using the EXE version of Stencyl and repeated all tests that had just caused issues.

1. Right clicking empty-space inside a folder (bug in both EXE and BAT) - might be unrelated
2. Right clicking on assets on the dashboard (bug only if running BAT)
3. Right clicking on folders on the dashboard (bug only if running BAT)
:
:
Patience is a Virtue,
But Haste is my Life.
Proud member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.

captaincomic

  • *
  • Posts: 6109
Thanks for the detailed testing!

I get the error too when right clicking empty-space inside a folder (on Linux, Java 7) so that must be unrelated.

captaincomic

  • *
  • Posts: 6109
Quote
1. Right clicking empty-space inside a folder (bug in both EXE and BAT) - might be unrelated
This one is fixed now.

aquilla

  • Posts: 15
Great work guys.
Are the BAT errors fixable or are they a little more complicated?

Bocharick

  • Posts: 79
win 8.1 x64. Stencyl build 8328 (latest now) - still open assets, scenes, games, ... with just rightclicking. So if i want to rename or duplicate - this is a problem.
This problem exist if i ran stencyl with bat file. Cause i want more ram for work
My games: