Weird build problem - works in simulator but not device.

I am having troubles running an in development app on a device that worked yesterday.

The app loads just fine in the Corona v2015.2545 simulator.  It was working on my test devices yesterday.

I built a slight revision today and copied it to my device and it partially loads then the app flashes off screen (no error).

I deleted the app/prefs from the devices and re copied the app. no go, loads for 3 seconds then quits.

I rolled back my code to pre yesterday and recompiled (sam error, partial load and exits on load).

My stack trace is here (I swapped my real app name for “appnameremoved”

Incident Identifier: 4A1DA408-24C1-40CB-9FF0-9C7C3644F8CC

CrashReporter Key:   c82b97b2bb7ddbe19f793701f2ff24d5e23fa3df

Hardware Model:      iPhone5,2

Process:             appnameremoved [1730]

Path:                /private/var/mobile/Containers/Bundle/Application/D545BE37-C751-463E-9208-C86E5BFC4979/appnameremoved.app/appnameremoved

Identifier:          com.fearby.appnameremoved

Version:             2015.01.290539 (1.0)

Code Type:           ARM (Native)

Parent Process:      launchd [1]

OS Version:          iOS 8.1.2 (12B440)

Report Version:      105

Exception Type:  EXC_CRASH (SIGABRT)

Exception Codes: 0x0000000000000000, 0x0000000000000000

Triggered by Thread:  0

Last Exception Backtrace:

0   CoreFoundation                 0x257b549a __exceptionPreprocess + 122

1   libobjc.A.dylib               0x32f6bc86 objc_exception_throw + 34

2   CoreFoundation                 0x257ba8b4 -[NSObject(NSObject) doesNotRecognizeSelector:] + 184

3   CoreFoundation                 0x257b87d2 ___forwarding___ + 710

4   CoreFoundation                 0x256ea054 _CF_forwarding_prep_0 + 20

5   appnameremoved                 0x0016d104 -[UIApplication(GameThrivePush) gameThriveApplicationDidBecomeActive:] (GameThrive.m:929)

6   UIKit                         0x28cf0da0 -[UIApplication _stopDeactivatingForReason:] + 404

7   UIKit                         0x28ee07d4 -[UIApplication _handleNonLaunchSpecificActions:forScene:withTransitionContext:] + 2020

8   UIKit                         0x28ed8548 -[UIApplication workspace:didReceiveActions:] + 76

9   FrontBoardServices             0x2bf460cc __31-[FBSSerialQueue performAsync:]_block_invoke + 8

10  CoreFoundation                 0x2577bd78 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 8

11  CoreFoundation                 0x2577b03c __CFRunLoopDoBlocks + 212

12  CoreFoundation                 0x257797be __CFRunLoopRun + 758

13  CoreFoundation                 0x256c73bc CFRunLoopRunSpecific + 472

14  CoreFoundation                 0x256c71ce CFRunLoopRunInMode + 102

15  GraphicsServices               0x2cac50a4 GSEventRunModal + 132

16  UIKit                         0x28cd6f9c UIApplicationMain + 1436

17  appnameremoved                 0x000768be main + 62

18  libdyld.dylib                 0x334ebaaa tlv_initializer + 2

Thread 0 name:  Dispatch queue: com.apple.main-thread

Thread 0 Crashed:

0   libsystem_kernel.dylib         0x335b1dfc __pthread_kill + 8

1   libsystem_pthread.dylib       0x3362fd32 pthread_kill + 58

2   libsystem_c.dylib             0x33551904 abort + 72

3   libc++abi.dylib               0x3288f9c4 abort_message + 84

4   libc++abi.dylib               0x328a966c default_terminate_handler() + 264

5   libobjc.A.dylib               0x32f6bf22 _objc_terminate() + 190

6   libc++abi.dylib               0x328a6de0 std::__terminate(void (*)()) + 76

7   libc++abi.dylib               0x328a68aa __cxa_rethrow + 98

8   libobjc.A.dylib               0x32f6bdce objc_exception_rethrow + 38

9   CoreFoundation                 0x256c7458 CFRunLoopRunSpecific + 628

10  CoreFoundation                 0x256c71ce CFRunLoopRunInMode + 102

11  GraphicsServices               0x2cac50a4 GSEventRunModal + 132

12  UIKit                         0x28cd6f9c UIApplicationMain + 1436

13  appnameremoved                 0x000768be main + 62

14  libdyld.dylib                 0x334ebaac start + 0

Thread 1 name:  Dispatch queue: com.apple.libdispatch-manager

Thread 1:

0   libsystem_kernel.dylib         0x3359e2a0 kevent64 + 24

1   libdispatch.dylib             0x334d79fc _dispatch_mgr_invoke + 276

2   libdispatch.dylib             0x334cd20e _dispatch_mgr_thread + 34

Thread 2:

0   libsystem_kernel.dylib         0x335b29cc __workq_kernreturn + 8

1   libsystem_pthread.dylib       0x3362cea8 _pthread_wqthread + 788

2   libsystem_pthread.dylib       0x3362cb80 start_wqthread + 4

Thread 3 name:  Dispatch queue: com.apple.root.background-qos

Thread 3:

0   libsystem_kernel.dylib         0x3359e818 madvise + 8

1   libsystem_malloc.dylib         0x335dbbdc szone_free_definite_size + 1588

2   ProtocolBuffer                 0x2e978506 PBRepeatedUInt64Clear + 10

3   VectorKit                     0x30415386 -[VKPMatchingGraphNode dealloc] + 22

4   libobjc.A.dylib               0x32f85d5a objc_object::sidetable_release(bool) + 162

5   CoreFoundation                 0x256bc008 CFRelease + 596

6   CoreFoundation                 0x256d3158 -[__NSArrayM dealloc] + 144

7   libobjc.A.dylib               0x32f85d5a objc_object::sidetable_release(bool) + 162

8   VectorKit                     0x3023e000 -[VKPSheet dealloc] + 84

9   libobjc.A.dylib               0x32f85d5a objc_object::sidetable_release(bool) + 162

10  libsystem_blocks.dylib         0x33506ade _Block_release + 214

11  libdispatch.dylib             0x334d4da6 _dispatch_root_queue_drain + 862

12  libdispatch.dylib             0x334d5cd2 _dispatch_worker_thread3 + 90

13  libsystem_pthread.dylib       0x3362ce2e _pthread_wqthread + 666

14  libsystem_pthread.dylib       0x3362cb80 start_wqthread + 4

Thread 4:

0   libsystem_kernel.dylib         0x335b29cc __workq_kernreturn + 8

1   libsystem_pthread.dylib       0x3362cea8 _pthread_wqthread + 788

2   libsystem_pthread.dylib       0x3362cb80 start_wqthread + 4

Thread 5 name:  com.apple.NSURLConnectionLoader

Thread 5:

0   libsystem_kernel.dylib         0x3359e4f0 mach_msg_trap + 20

1   libsystem_kernel.dylib         0x3359e2e4 mach_msg + 36

2   CoreFoundation                 0x2577b316 __CFRunLoopServiceMachPort + 142

3   CoreFoundation                 0x257798bc __CFRunLoopRun + 1012

4   CoreFoundation                 0x256c73bc CFRunLoopRunSpecific + 472

5   CoreFoundation                 0x256c71ce CFRunLoopRunInMode + 102

6   CFNetwork                     0x2527c952 +[NSURLConnection(Loader) _resourceLoadLoop:] + 482

7   Foundation                     0x264c5b56 __NSThread__main__ + 1114

8   libsystem_pthread.dylib       0x3362ee90 _pthread_body + 136

9   libsystem_pthread.dylib       0x3362ee02 _pthread_start + 114

10  libsystem_pthread.dylib       0x3362cb8c thread_start + 4

Thread 6:

0   libsystem_kernel.dylib         0x335b29cc __workq_kernreturn + 8

1   libsystem_pthread.dylib       0x3362cea8 _pthread_wqthread + 788

2   libsystem_pthread.dylib       0x3362cb80 start_wqthread + 4

Thread 7:

0   libsystem_kernel.dylib         0x335b29cc __workq_kernreturn + 8

1   libsystem_pthread.dylib       0x3362cea8 _pthread_wqthread + 788

2   libsystem_pthread.dylib       0x3362cb80 start_wqthread + 4

Thread 8:

0   libsystem_kernel.dylib         0x3359e4f0 mach_msg_trap + 20

1   libsystem_kernel.dylib         0x3359e2e4 mach_msg + 36

2   CoreFoundation                 0x2577b316 __CFRunLoopServiceMachPort + 142

3   CoreFoundation                 0x257798bc __CFRunLoopRun + 1012

4   CoreFoundation                 0x256c73bc CFRunLoopRunSpecific + 472

5   CoreFoundation                 0x257100e6 CFRunLoopRun + 94

6   CoreMotion                     0x25fcae9a 0x25f8b000 + 261786

7   libsystem_pthread.dylib       0x3362ee90 _pthread_body + 136

8   libsystem_pthread.dylib       0x3362ee02 _pthread_start + 114

9   libsystem_pthread.dylib       0x3362cb8c thread_start + 4

Thread 9 name:  AURemoteIO::IOThread

Thread 9:

0   libsystem_kernel.dylib         0x3359e4f0 mach_msg_trap + 20

1   libsystem_kernel.dylib         0x3359e2e4 mach_msg + 36

2   AudioToolbox                   0x24f2f99a AURemoteIO::IOThread::Run() + 102

3   AudioToolbox                   0x24f33094 AURemoteIO::IOThread::Entry(void*) + 4

4   AudioToolbox                   0x24e679e2 CAPThread::Entry(CAPThread*) + 206

5   libsystem_pthread.dylib       0x3362ee90 _pthread_body + 136

6   libsystem_pthread.dylib       0x3362ee02 _pthread_start + 114

7   libsystem_pthread.dylib       0x3362cb8c thread_start + 4

Thread 10:

0   libsystem_kernel.dylib         0x335b219c __semwait_signal + 24

1   libsystem_c.dylib             0x33511a6c nanosleep + 168

2   libsystem_c.dylib             0x335119bc usleep + 48

3   appnameremoved                 0x000a85a2 Stream_Data_Thread_Callback + 3402

4   appnameremoved                 0x000af610 Internal_RunThread + 32

5   libsystem_pthread.dylib       0x3362ee90 _pthread_body + 136

6   libsystem_pthread.dylib       0x3362ee02 _pthread_start + 114

7   libsystem_pthread.dylib       0x3362cb8c thread_start + 4

Thread 0 crashed with ARM Thread State (32-bit):

    r0: 0x00000000    r1: 0x00000000      r2: 0x00000000      r3: 0x00000003

    r4: 0x00000006    r5: 0x35c7c9dc      r6: 0x35c68840      r7: 0x00353408

    r8: 0x16e84b40    r9: 0x00000000     r10: 0x35c67074     r11: 0x16e84b64

    ip: 0x00000148    sp: 0x003533fc      lr: 0x3362fd37      pc: 0x335b1dfc

  cpsr: 0x00080010

I removed game thrive and the app now works??

in main.lua

local GameThrive = require ( “plugin.GameThrivePushNotifications” )

GameThrive.Init(“my_valid_working_guid_removed”, “”, DidReceiveRemoteNotification)

Build .settings

    plugins =

    {

        [“plugin.GameThrivePushNotifications”] =

        {

            publisherId = “com.gamethrive”,

        }

and

   iphone =

   {

      plist =

      {

            UIBackgroundModes = {“remote-notification”},

            NSLocationWhenInUseUsageDescription = “Reason for notifications description goes here”, 

Problem may be game thrive https://www.gamethrive.com

This website is under heavy load

We’re sorry, too many people are accessing this website at the same time. We’re working on this problem. Please try again later.

 

I did not check this yesterday though.

There is another thread regarding the Game Thrive lugin.  The latest daily builds of Corona are now 64 bit and require 64 bit plugins.  I believe the Game Thrive person posted their plugin was updated, I just don’t know if we’ve pushed it out to the server yet or not.  But if they are having load issues that could be a different issue all together.

Rob

Hello,

We are working on the “heavy load” issue currently by optimizing some of our server code. We just put a change into place a few hours ago which fixed most it but you may see that message a few more times as we do a bit more optimization to the server today.

The crash your seeing FearTec is from a compatibility issue with Corona Build 2542+ and GameThrive. You can continue to use Corona builds 2541 and older until we release a new version with a fix. You can watch the following thread where I will post when it is released. http://forums.coronalabs.com/topic/54124-gamethrive-plugin-cause-my-app-to-crash/

Thanks.

I removed game thrive and the app now works??

in main.lua

local GameThrive = require ( “plugin.GameThrivePushNotifications” )

GameThrive.Init(“my_valid_working_guid_removed”, “”, DidReceiveRemoteNotification)

Build .settings

    plugins =

    {

        [“plugin.GameThrivePushNotifications”] =

        {

            publisherId = “com.gamethrive”,

        }

and

   iphone =

   {

      plist =

      {

            UIBackgroundModes = {“remote-notification”},

            NSLocationWhenInUseUsageDescription = “Reason for notifications description goes here”, 

Problem may be game thrive https://www.gamethrive.com

This website is under heavy load

We’re sorry, too many people are accessing this website at the same time. We’re working on this problem. Please try again later.

 

I did not check this yesterday though.

There is another thread regarding the Game Thrive lugin.  The latest daily builds of Corona are now 64 bit and require 64 bit plugins.  I believe the Game Thrive person posted their plugin was updated, I just don’t know if we’ve pushed it out to the server yet or not.  But if they are having load issues that could be a different issue all together.

Rob

Hello,

We are working on the “heavy load” issue currently by optimizing some of our server code. We just put a change into place a few hours ago which fixed most it but you may see that message a few more times as we do a bit more optimization to the server today.

The crash your seeing FearTec is from a compatibility issue with Corona Build 2542+ and GameThrive. You can continue to use Corona builds 2541 and older until we release a new version with a fix. You can watch the following thread where I will post when it is released. http://forums.coronalabs.com/topic/54124-gamethrive-plugin-cause-my-app-to-crash/

Thanks.