Random App Freezing
When I click "Launch" in Titanium, my app yields no errors. It loads the Default image, then as soon as it removes it and shows my app, my app will freeze at various stages.
- Sometimes this is after it has loaded a few labels and a button.
- Sometimes it freezes before it loads anything.
- Sometimes it works perfectly.
How in the world can I figure out what could be causing this?
Thanks!
(Using 1.2.1 with Mobile SDK 1.4 on an iPhone (latest SDK))
6 Answers
-
Clifton, just a test,
disable the analytics setting it to false in tiapp.xmlI had similar problem sometimes ago.
let me know. -
As far as I can tell, the app is choking on something in here.
Either that or the include function I'm using to reference it:
Ti.include('includes/left.js');
I'm up to like 20 hours debugging this.
Can I get some help? Anyone? :)
-
I donno,
Try to use hide() and show() instead of visible, and do this after you add the elements to the window. Should be fast enough for the user not to see it.You can compile the project using xcode and look at the gdb console. Usually it helps me a lot.
-
Isn't the Xcode console the same as the Titanium one? I'm looking at the DEBUG stuff in Ti, and it doesn't give me any hints.
-
Sometimes no :)
-
I'm seeing the same behaviour in my app in the simulator and on my iPhone. Using Titanium 1.2.1 with SDK 1.4.0 on Snow Leopard. Usually it happens on clicking a button, where the button will remain highlighted and the entire app will be non-responsive.
My app is, at this point, very vanilla: nothing but windows with labels and buttons that map out the user interaction. No loading of resources, no saving to files or SQLite databases.