Author Topic: Newly-compiled apps "killed" immediately after execution  (Read 1162 times)

Stealth (OP)

  • *
  • Posts: 8
    • Headcannon
Newly-compiled apps "killed" immediately after execution
« on: December 27, 2013, 01:18:38 pm »
I've tried several times to build a working app, but every one that I attempt to run on an actual gcw-zero unit immediately exits back to the main menu. The only text in the log viewer after every attempt is "Killed"

This has happened on a variant of the sml_sprite_demo that I attempted, the unmodified sml_sprite_demo, and an unmodified version of AstroLander. I have tried both the mipsel-linux- and mipsel-gcw0-linux-uclibc compilers/linkers under Ubuntu Linux, none of which have reported an error, and I have also tried both Open package Creator under Windows and mksquashfs under Ubuntu with an appropriate default.gcw0.desktop file using the .elf file as the executable. Attempting to run the resulting opk always turns out the same - immediate return to the main menu with the log message "Killed"

What might I be overlooking/doing wrong that would cause this?

mth

  • *
  • Posts: 298
Re: Newly-compiled apps "killed" immediately after execution
« Reply #1 on: December 28, 2013, 12:23:01 am »
The only thing I can think of right now that would get a process killed is if it tries to consume lots of memory and the out-of-memory killer decides to snipe it. Is there anything printed in the kernel log? ("dmesg" command via telnet/ssh)

As a test, you could try to run the application without packaging it as an OPK. In gmenu2x, select the Terminal option, this makes sure the menu is not using the screen. Then you can launch apps via telnet/ssh. You can also launch them within gdb, so you can get some info if the app crashes (use "bt" after a crash for a backtrace showing what function called what).

You can also start at the very beginning by compiling "hello world" and check whether that runs. A very simple program using SDL is the vsync test, which you can find here.

You should be using only the mipsel-gcw0-linux-uclibc- tools.

Stealth (OP)

  • *
  • Posts: 8
    • Headcannon
Re: Newly-compiled apps "killed" immediately after execution
« Reply #2 on: January 01, 2014, 07:40:58 am »
That was perfect, thanks a bunch! I still don't know why the other attempts failed like that, but the vsync test worked just fine

If you want to know what this was about, I just made a post about it in the releases thread:
http://boards.dingoonity.org/gcw-releases/engine02-multiplatform-game-engine-sonic-mega-man-(-)/

 

Post a new topic
Post a new topic