GLBasic forum

Main forum => Bug Reports => Topic started by: Moru on 2009-Oct-19

Title: Exit in GP2X
Post by: Moru on 2009-Oct-19
I'm having troubles quitting from an application on GP2X. If I press the volume + and - buttons it just locks up. Same if I set up the start button to quit.

I'm also having troubles drawing with polygons on GP2X. Nothing shows up. I included the project with simple source and precompiled for GP2X. Works fine on the PC, works on GP2X but hangs up when quitting, no polygon showing up.

Code (glbasic) Select
// --------------------------------- //
// Project: GP2X Test
// Start: Monday, October 19, 2009
// IDE Version: 7.145

LOADFONT "smalfont.png", 1
SETFONT 1

LOCAL y1%, y2%

WHILE KEY(28) = 0
STARTPOLY -1
POLYVECTOR 0,0,     0,0, RGB(255,255,255)
POLYVECTOR 0,239,   0,0, RGB(100,200,255)
POLYVECTOR 319,239, 0,0, RGB(255,255,255)
POLYVECTOR 319,0,   0,0, RGB(255,255,0)
ENDPOLY
PRINT "Test, should be light background", 0, 10
y1 = RND(20)
y2 = RND(20)
DRAWLINE 0,y1+50,319,y2+50, RGB(0,255,0)
DRAWLINE 0,y2+50,319,y1+50, RGB(255,0,0)
SHOWSCREEN
WEND



[attachment deleted by admin]
Title: Re: Exit in GP2X
Post by: gavendortt on 2009-Oct-20
I think you just have to put "End" just after the last line of your code, this will literally stop the program.
Title: Re: Exit in GP2X
Post by: Kitty Hello on 2009-Oct-20
Ooops. Looks like a bug.

[edit]
The drawing bug is fixed now.
Title: Re: Exit in GP2X
Post by: Moru on 2009-Oct-22
Yes, polyvector works fine again!

But the exit problem is still there, is anyone else having this problem or is it my unit?
Title: Re: Exit in GP2X
Post by: Moru on 2009-Oct-30
I'm still having troubles with exiting from a GP2X application. The older programs created with GLBasic works but newer just locks up on exit.
Title: Re: Exit in GP2X
Post by: Kitty Hello on 2009-Oct-31
OK, next update. on top of my TODO. Phew - now I just need to find my gp2x ...
Title: Re: Exit in GP2X
Post by: Kitty Hello on 2009-Nov-02
I'm on Open2X and it works. Do you have the original FW on it?

If so, do you have an F100 or F200?
Title: Re: Exit in GP2X
Post by: Moru on 2009-Nov-02
Original firmware, version 3.0

GP2X F100
Title: Re: Exit in GP2X
Post by: Ian Price on 2009-Nov-02
VOL+ and VOL- are locking up F200 too.
Title: Re: Exit in GP2X
Post by: Ian Price on 2009-Dec-23
GP2X still doesn't exit properly Gernot... ;)
Title: Re: Exit in GP2X
Post by: Kitty Hello on 2009-Dec-23
See the file "myprogram.gpe" -> it's a text file (unix line ends - use Notepad2 e.g.)
That calls the gp2x.prg executable and should try to start the menu later.
There might be a bug. It says: "./gp2xmenu" at the end, but might require "/usr/gp2x/gp2xmenu".

I'll have to test, but the kids are asleep and they have my gp2x.
Title: Re: Exit in GP2X
Post by: Ian Price on 2009-Dec-23
It's a crying shame that kids would rather sleep with an electronic device than a teddy bear nowadays :P

No worries Gernot. It's not something that I'm really concerned about (SantaMania is probably going to be my last GP2X project anyway).

I'll have a go with your text file later and let you know how I get on.  :)

Title: Re: Exit in GP2X
Post by: Kitty Hello on 2009-Dec-23
Hehe.
I wrote a program where they can flip through some mp3 ferry (fairy?) tales and play. And after it's done, the CPU gets clocked to 60MHz to safe battery and the display goes black, so they can sleep tight. They ruined a bunch of CD players already ...
Title: Re: Exit in GP2X
Post by: Moru on 2010-Mar-13
Still no luck with exiting GP2X applications even after inserting
./usr/gp2x/gp2xmenu
into the gp2x.gpe file.
Title: Re: Exit in GP2X
Post by: Kitty Hello on 2010-Mar-15
make sure the file is \n terminated (Unix line breaks) Use Notepad2 or so for that. The most windows programs can't do that.
Title: Re: Exit in GP2X
Post by: Moru on 2010-Mar-15
I had a look at the file now and it's doing a "cd /usr/gp2x" so that should work, right?

cd /usr/gp2x
./gp2xmenu

Line endings is set to UNIX and it still just locks up when trying to nicely end the program.
Title: Re: Exit in GP2X
Post by: kamakazieturtle on 2010-Jul-09
Was there a fix found for this?
Title: Re: Exit in GP2X
Post by: Kitty Hello on 2010-Jul-16
it should work. No?
Title: Re: Exit in GP2X
Post by: kamakazieturtle on 2010-Jul-17
Mine locks up on exit. It's an F-100 MK2 if that makes a difference?
Title: Re: Exit in GP2X
Post by: Ian Price on 2010-Jul-17
I've got and F100 and an F200 and they both lock up.
Title: Re: Exit in GP2X
Post by: kamakazieturtle on 2010-Aug-12
I don't mean to be a bother Gernot, I know your working hard on many things. I was just curious if you had pin pointed this one yet?
Title: Re: Exit in GP2X
Post by: xbee on 2010-Aug-13
My GP2X locks up too.

I'm using fw 2.1.1 and I do not plan to upgrade to newer firmware versions.
Title: Re: Exit in GP2X
Post by: Kitty Hello on 2010-Aug-17
I'm using Open2X and it seems to work for me. Also it boots a lot faster. The GPH firmwares sort of suck on the GP2X IMO.
On the Wiz, it's quite fine.
Title: Re: Exit in GP2X
Post by: CptnRoughnight on 2010-Aug-17
Got a F100, and I'm using Open2X too, but it doesn't work!

MfG
Title: Re: Exit in GP2X
Post by: Kitty Hello on 2010-Aug-17
OK; I'll really dig into that then and see if I can fix it. Debugging on GP2X is always fun :/
Title: Re: Exit in GP2X
Post by: Ian Price on 2010-Aug-17
Quote from: Kitty Hello on 2010-Aug-17
OK; I'll really dig into that then and see if I can fix it. Debugging on GP2X is always fun :/

It might not be fun, but it is appreciated :)
Title: Re: Exit in GP2X
Post by: Moru on 2010-Aug-17
Indeed, very appreciated, Gernot!