PDA

View Full Version : My app crashes on load - anyone want to help me debug it?



mwilke
July 8th, 2009, 11:04 PM
Apologies in advance, I'm a total noob here. I've been following along with the Thru-You app tutorial on the main site, while referencing the APIs, and it all seems to check out, but when I try to launch my app from boxee, the loading animation spins a few times and Boxee totally crashes.

Here's my xml file: http://pastebin.org/679

Here's the Console output from the crash:


[0x0-0x3a76a73].tv.boxee.boxee[21842] sh: /Applications/Boxee.app/Contents/Resources/Boxee/tools/osx/preflight: No such file or directory

[0x0-0x3a76a73].tv.boxee.boxee[21842] Using key code for OSX 10.5

com.apple.launchd[88] ([0x0-0x3a76a73].tv.boxee.boxee[21842]) Stray process with PGID equal to this dead job: PID 21845 PPID 1 boxeeservice

com.apple.launchd[88] ([0x0-0x3a76a73].tv.boxee.boxee[21842]) Exited abnormally: Bus error

And here's the verbose log: http://pastebin.org/680

I'd appreciate any help y'all could provide, even if it's just a more detailed description of what stuff in the log files means.

Thanks :)

mwilke
July 8th, 2009, 11:06 PM
I should note that I've also run the xml through a few validators and it checks out. I don't know if that matters though.

StevenR
July 12th, 2009, 07:13 AM
The crash may be due to the image and button controls you have in the list control immediately after the content element. I didn't think you could put other controls directly in the list control, except within itemlayout and focusedlayout elements. Should those controls be outside of the list?

DPK
July 12th, 2009, 12:03 PM
You never close your image control on line 7:


<?xml version "1.0"?>
<window type="window" id="14000">
<defaultcontrol always="true">111</defaultcontrol>
<allowoverlay>no</allowoverlay>
<controls>
<control type="group">
<control type="image" id="100">
<posx>0</posx>
<posy>0</posy>
<width>1280</width>
<height>720</height>
<texture>main.png</texture>
</control>
<control type="videowindow">


That's most likely why you're crashing. The rendering engine is extremely picky on how it loads things. One small thing wrong (like even typing "heigh" instead of "height" somewhere will cause you quite some frustration. Solution is to test often and save often.