Lesson 5 - Crash mobile only

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Locked
saldroubi
Posts: 10
Joined: Sun Jul 28, 2013 2:16 am

Lesson 5 - Crash mobile only

Post by saldroubi » Sun Sep 08, 2013 4:59 pm

Hello everyone,

I am coding lesson 5 as I follow the class video. The code works on desktop environment but it crashes when I use the iphone simulator right after the "Intro" card video. I am not sure what is causing this? I commented out the code in the "offers" card that has to do with anything related to mobile specific code but it is still crashing. Any idea how to find out where it is crashing in the the App?

P.S. Since I have a 13" MacBook Air so I wrote all the code for an Iphone not Ipad as the lessons are. All been working fine until I hit lesson 5.

Any ideas to debug this would be appreciated it.

Sincerely,

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Lesson 5 - Crash mobile only

Post by LCNeil » Mon Sep 09, 2013 9:48 am

Hi Saldroubi,

Does the simulator hard crash (fully close) or revert to the home screen?

If possible, could you attach your stack to your next reply and we will happily take a look at what could be causing the issue? If you cannot attach the stack to this post, please forward it to support@runrev.com.

Kind Regards,

Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
--

saldroubi
Posts: 10
Joined: Sun Jul 28, 2013 2:16 am

Re: Lesson 5 - Crash mobile only

Post by saldroubi » Tue Sep 10, 2013 11:43 am

Hello Neil,

It is not exactly a hard crash on simulator. The App crashes within the simulator and then the simulator goes back to home screen. I narrowed down the problem to playing the video in the Intro card. If I comment that out then everything then everything is working as expected. I am interested in learning if there is a better way to troubleshoot these problems. For example is there a log file to indicate what happened when an app crashes like that? The stack is attached. I also commented out all the code for the Offers card in the process of trying to find out where the crash was happening.


Sincerely,
Sam Al-Droubi
Attachments
SummerSchoolApp2 copy.livecode.zip
(190.63 KiB) Downloaded 418 times

saldroubi
Posts: 10
Joined: Sun Jul 28, 2013 2:16 am

Re: Lesson 5 - Crash mobile only

Post by saldroubi » Thu Sep 12, 2013 2:29 pm

Did anyone try to run my included livecode file/app. It does not work in simulator. It works fine on desktop. Am I the only one with this problem?

Also, I downloaded the solution for lesson 5 and same thing happens in simulator. It runs the intro movie then quits. Basically it does not go to contacts card.

Sincerely,

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Lesson 5 - Crash mobile only

Post by LCNeil » Thu Sep 12, 2013 5:29 pm

Hi saldroubi.

Apologies for the delayed reply.

I have tested your stack and can confirm that I am able to replicate the crash you are experiencing. This crash seem to be related to the iOS 6.1 simulators. If I try your stack on any iOS 5.1 simulators the crash does not occur.

Before I file a bug report on the issue could your tell me if you are using the iOS 6.1 simulator when testing your application?

Kind Regards,

Neil Roger

--
RunRev Support Team ~ http://www.runrev.com
--

saldroubi
Posts: 10
Joined: Sun Jul 28, 2013 2:16 am

Re: Lesson 5 - Crash mobile only

Post by saldroubi » Fri Sep 13, 2013 1:59 am

Hello Neil,

That seems to be the case. In the simulator under the menu Hardware | Version its says 6.1 (10B141)

Sincerely,

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Lesson 5 - Crash mobile only

Post by LCNeil » Mon Sep 16, 2013 10:27 am

Dear Saldroubi,

I have file a report on this bug with our Quality Control Team. You will be able to view this here-

http://quality.runrev.com/show_bug.cgi?id=11188

A work around that you should be able to use until this issue is resolved is by downloading Xcode 4.4 and using the 5.1 simulator.

You will be able to download Xcode 4.4 from https://developer.apple.com

Kind Regards,

Neil Roger

--
RunRev Support Team ~ http://www.runrev.com
--

Locked

Return to “Summer School 2013”