iOS6 / iPhone5 app crashes

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

gpb01
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Sat Jun 04, 2011 5:41 pm

Re: iOS6 / iPhone5 app crashes

Post by gpb01 » Thu Nov 08, 2012 10:47 pm

DRJ-UK wrote:... Just been experimenting with various combinations of LiveCode 5.5.2 & 5.5.3 with xCode 4.5.2. Both work fine except when selecting iPad Simulator 6.0 as the test target in LiveCode. Then the App loads and then disappears just like the feedback we got about one of the new 4th generation iPads. Using the other test targets the Apps run flawlessly and this is the same on our iPad 2 and iPad 3. Is there something broken in 5.5.3?...
Hi Dave,
I'm just testing here ... iOS Simulator v.6.0 (358.4), Hardware -> Device -> iPad Retina, Hardware -> Version -> 6.0 (10A403) ... and all run fine without problems.

App created with LiveCode 5.5.3 (1497) and XCode 4.5.2 (4G2008a) on OSX 10.8.2

Which is your configuration ?

Guglielmo

DRJ-UK
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 73
Joined: Tue Aug 23, 2011 2:50 pm
Contact:

Re: iOS6 / iPhone5 app crashes

Post by DRJ-UK » Thu Nov 08, 2012 11:31 pm

I'm just testing here ... iOS Simulator v.6.0 (358.4), Hardware -> Device -> iPad Retina, Hardware -> Version -> 6.0 (10A403) ... and all run fine without problems.

App created with LiveCode 5.5.3 (1497) and XCode 4.5.2 (4G2008a) on OSX 10.8.2

Which is your configuration ?
Guglielmo

Many thanks for taking the time to explore this - much appreciated.

My configuration is LiveCode (1496) and LiveCode 4.5.2 (4G2008a) on OSX 10.7.5 (build 11G63) for the App. Hardware iPad Retina (Model MC706B) with iOS Version 6.0.1 (10A523).

Downloaded another version of 5.5.3 (1497) to match your kit. App runs absolutely fine on this iPad so maybe this is a generation 3 versus a generation 4 issue or simply a build using Lion is different to Mountain Lion. As mentioned earlier, iPhone builds work without a hitch on iPhone 5 and in the iPhone Simulator 6. Re-read the 5.5.3 iOS release notes and this configuration is recommended for both Lion and Mountain Lion.

Still seems like an issue around iPad simulator 6 running on Lion. The reported fault on the iPad generation 4 matches what happens in the simulator 6. Perhaps Lion builds are different to builds with Mountain Lion. The fact you can run simulator 6 on Mountain Lion could be the key to this issue.

Again, thanks for your feedback, any further suggestions welcome (was planning to upgrade to Mountain Lion at some point, maybe tomorrow now!).

Dave
LiveCode: Versions 8.0, 8.1
Xcode: Version 7.3, 8.0
Mac OS X: 10.11.12 (macOS Sierra) on iMacs with 3.4 Intel Core i7 & 16GB Memory

Creating Apps for educational professionals, effective teaching and learning.

DRJ-UK
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 73
Joined: Tue Aug 23, 2011 2:50 pm
Contact:

Re: iOS6 / iPhone5 app crashes

Post by DRJ-UK » Fri Nov 09, 2012 10:45 am

DRJ-UK wrote: Still seems like an issue around iPad simulator 6 running on Lion. The reported fault on the iPad generation 4 matches what happens in the simulator 6. Perhaps Lion builds are different to builds with Mountain Lion. The fact you can run simulator 6 on Mountain Lion could be the key to this issue.
Guglielmo

A few developments after more testing and feedback using LiveCode (1496) and LiveCode 4.5.2 (4G2008a) on OSX 10.7.5 (build 11G63):
- Report that the update to an App just released via the App Store now works without a hitch on iPad 4th generation :D
- A newly created App for iPad works perfectly well in all simulators from 4.3 upward, including iPad simulator 6 :D
- In LiveCode, same App build fails to not work with the iPad Simulator 6 (splash screen loads and then disappears), whether settings are iPad with 4.3 or later, 5.0 or later, 5.1 or later or 6.0 or later and Arm v7 :?


Using this same setup for an iPhone App has no problems on iPhone 5 or iPhone simulator 6. :D

The news that the App appears to work on the latest iPad is welcome so will re-build and submit all our other Apps to be sure end-users have no issues. It would seem that the problem is somehow linked to legacy LiveCode Apps rather than newly created ones. This situation is perplexing but we will do some more testing and report back here.

Hope this is informative to other colleagues and trust they are problem free!

Dave
LiveCode: Versions 8.0, 8.1
Xcode: Version 7.3, 8.0
Mac OS X: 10.11.12 (macOS Sierra) on iMacs with 3.4 Intel Core i7 & 16GB Memory

Creating Apps for educational professionals, effective teaching and learning.

gpb01
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Sat Jun 04, 2011 5:41 pm

Re: iOS6 / iPhone5 app crashes

Post by gpb01 » Fri Nov 09, 2012 12:32 pm

Hi Dave,
thanks for sharing :)

Guglielmo

scotttyang
Posts: 125
Joined: Sat Jan 31, 2009 12:01 am

Re: iOS6 / iPhone5 app crashes

Post by scotttyang » Mon Nov 12, 2012 8:56 pm

i had to downgrade to 5.5.1 because of app crashes on the ipad. the accelereatedrendering to true was the culprit. got a bad review because of crash. pulled off app from appstore until crash is fixed.

scott

DRJ-UK
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 73
Joined: Tue Aug 23, 2011 2:50 pm
Contact:

Re: iOS6 / iPhone5 app crashes

Post by DRJ-UK » Wed Nov 21, 2012 12:28 pm

Guglielmo

We have been doing some further tests with our Apps to see why some do not seem to run in the iPad simulator 6.0 but do run on previous iPad simulators versions and also on the iPad running iOS 6+.

We seem to have pin-pointed this down to creating and using the video controls via the iPhoneControlSet and iPhoneControlDo commands. These work without a hitch except for the iPad simulator 6.0. This might explain why our other apps which do not have video work absolutely fine. There could be an issue with the simulator software of course!

Has anybody else come across this at all?

Dave
LiveCode: Versions 8.0, 8.1
Xcode: Version 7.3, 8.0
Mac OS X: 10.11.12 (macOS Sierra) on iMacs with 3.4 Intel Core i7 & 16GB Memory

Creating Apps for educational professionals, effective teaching and learning.

gpb01
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Sat Jun 04, 2011 5:41 pm

Re: iOS6 / iPhone5 app crashes

Post by gpb01 » Wed Nov 21, 2012 1:24 pm

Hi Dave ...
... unfortunately I don't have Apps using "video", but I can confirm that many Apps using mobileControlSet and mobileControlDo (... suggestion ... use the mobileControlxxxxx ... runs on both platforms iOS and Android) have no problems on each device and version of iOS Simulator.

So ... thanks to let us to know this problem with "video" !

Guglielmo

martinK
Posts: 7
Joined: Sun Sep 30, 2012 6:12 am

Re: iOS6 / iPhone5 app crashes

Post by martinK » Fri Jan 18, 2013 6:32 pm

Hi
iOS 5, Arm7, 5.5.3
I found out that when I use "iPhoneCommands" in my code the app crashes especially on launch when I am setting up my scroller.
On removing these commands, app works just fine!
I guess I now have to try scrolling with Animation Engine.

Martin

scotttyang
Posts: 125
Joined: Sat Jan 31, 2009 12:01 am

Re: iOS6 / iPhone5 app crashes

Post by scotttyang » Sat Jan 19, 2013 1:24 am

You have to upgrade to 5.5.3. I had to buy in iPad 4 just to confirm it. One of my Apps has 30,000 updates at any one upgrade, so you can see the emails of crashing in iPad4 when I was using 5.5.1. After upgrade, problem gone, with a shiny new iPad4, that I don't use, except for testing.

gpb01
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 281
Joined: Sat Jun 04, 2011 5:41 pm

Re: iOS6 / iPhone5 app crashes

Post by gpb01 » Mon Jan 21, 2013 2:13 pm

martinK wrote:Hi
iOS 5, Arm7, 5.5.3
I found out that when I use "iPhoneCommands" in my code the app crashes especially on launch when I am setting up my scroller.
On removing these commands, app works just fine!
I guess I now have to try scrolling with Animation Engine.

Martin
Martin ...
... first, better to use "mobileControlCreate" and other "mobileControXxxxxx" functions, more generic and valid both for iOS and Android.

Second ... for what are you trying to create a native scroller ?
Because the native scroller normally work very fine (... never see a crash) and, if your App crashes ... probably is a problem of incorrect function use ... ;)

Guglielmo

Post Reply