swoolcock / diddy

An Open Source Framework that includes a set of extra functions and APIs for the Monkey language.
MIT License
21 stars 4 forks source link

r197 GUI example crashes instantly on Android and XNA #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Just compile and run for Android. (Either target)

What is the expected output? What do you see instead?
- It crashes instantly. In debug mode, it hangs and the stack trace never seems 
to finish generating.

What version of the product are you using? On what operating system?
- Monkey v42(b) + Diddy r178, compiling on Windows 7 Ultimate x64.
- Running on Motorola Droid X /w Liberty 1.5 ROM (Android 2.2.1).

Please provide any additional information below.
- While I love how it looks when compiling for HTML5, I suppose I'll have to 
wait a little before getting it to work on Android. I didn't have a lot of time 
to troubleshoot exactly what's causing this problem (running late for work), 
but I'll be sure to take a stab at it when I get home.

Original issue reported on code.google.com by Cheese...@gmail.com on 27 Jun 2011 at 7:39

GoogleCodeExporter commented 9 years ago
Just been testing the new GUI stuff myself:

* HTML5 - Fine
* Flash - Fine
* GLFW - Fine (although a tad slow to load)
* XNA - Fail
    Error : Input string was not in a correct format.
    Error : Object reference not set to an instance of an object.
* Android - Fail
     java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()

Monkey is getting better ... but still a long way off being perfect!

Original comment by therevil...@gmail.com on 27 Jun 2011 at 11:21

GoogleCodeExporter commented 9 years ago
> Monkey is getting better ... but still a long way off being perfect!
Agreed.  All monkey code should compile and run on all targets flawlessly, or 
it has failed its goal of being platform-agnostic. :P
I shall look at this when I get home.

Original comment by samah...@gmail.com on 28 Jun 2011 at 3:40

GoogleCodeExporter commented 9 years ago
Samah may want to change some other stuff, but this is fixed in r179.

Original comment by therevil...@gmail.com on 28 Jun 2011 at 6:06

GoogleCodeExporter commented 9 years ago
Closed.

Original comment by samah...@gmail.com on 28 Jun 2011 at 11:55

GoogleCodeExporter commented 9 years ago
Reopening this bug as it is happening again using r197 and Monkey v43.

Original comment by therevil...@gmail.com on 6 Jul 2011 at 9:38

GoogleCodeExporter commented 9 years ago
It seems there are a bunch of objects being instantiated in the LoadSkin call 
stack.  I'm trying to weed it out at the moment.

Original comment by samah...@gmail.com on 6 Jul 2011 at 3:18

GoogleCodeExporter commented 9 years ago
Android: java.lang.RuntimeException: Can't create handler inside thread that 
has not called Looper.prepare()
This stack trace is displayed because Mojo is unable to display the error 
dialog for the actual problem.  Once I added some actual logging, I was able to 
determine that it's an issue with parsing an empty string.

XNA: Error : Input string was not in a correct format.
A slightly more useful error message that confirms it.

For now you should compile Android in release mode due to a possible memory 
leak in  debug mode for Mojo.  I think the garbage collection spam is from 
that, although I have optimised LoadSkin a lot.

XML files fixed as of r198.

Original comment by samah...@gmail.com on 7 Jul 2011 at 2:22

GoogleCodeExporter commented 9 years ago
Just wanted to confirm this bug. My Game run nicely as HTML5 and Flash but 
crashes as soon as I run the game on my android phone. I am using monkey 42b 
and diddy r179. I am updating to versions 43 and r199 now with my fingers 
crossed

Original comment by aman....@gmail.com on 7 Jul 2011 at 12:21

GoogleCodeExporter commented 9 years ago
Fixed!

Original comment by therevil...@gmail.com on 9 Jul 2011 at 3:40