fredsa / playn

Cross platform game library for N≥4 platforms
0 stars 1 forks source link

java.nio.DirectFloatBufferU on hosted mode #207

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run Playn Cute Game on hosted mode windows/firefox (using playn version 1.4)

What is the expected output? 
Same behavior as production mode: the game should run without error

What do you see instead?
uncaught exception: java.lang.RuntimeException: Native buffer required 
java.nio.DirectFloatBufferU[pos=0 lim=640 cap=640]
uncaught exception: java.nio.BufferOverflowException

What version of the product are you using? On what operating system?
PlayN 1.4
GWT 2.4

Please provide any additional information below:
When reverting to playn 1.3, the game runs (slow but) OK

More information on this post:
http://stackoverflow.com/questions/11462628/playn-gwt-hosted-mode-bufferoverflow
exception 

Original issue reported on code.google.com by torlb...@gmail.com on 7 Aug 2012 at 8:46

GoogleCodeExporter commented 9 years ago
Exact same thing

Playn 1.5.1
Gwt 2.5
Firefox 18

Original comment by robert.h...@gmail.com on 20 Feb 2013 at 12:31

GoogleCodeExporter commented 9 years ago
Hosted mode is not supported for PlayN. It is unusably slow even if it did work.

You can use the new GWT SuperDevMode if you really need to do rapid 
edit/compile/debug cycles in the browser. But one of the whole points of PlayN 
is that you can develop using Java on your desktop, and then things "just work" 
on the other platforms.

Obviously you need to test on the other platforms, but you should be able to 
test sufficiently infrequently that doing a proper GWT build is sufficient for 
testing. Indeed, you have to eventually test using a proper GWT build since 
that's what you ship when you ship an HTML version, which renders the GWT 
devmode even more obsolete.

Original comment by m...@samskivert.com on 21 Feb 2013 at 7:34

GoogleCodeExporter commented 9 years ago
thank you for the replay.
makes sens..

Original comment by torlb...@gmail.com on 23 Feb 2013 at 4:24