Crash and unknown error code

Hi!

We are trying to implement rewarded video ads in our game, but we have some issues with the plugin. Most of the time things work out as they are supposed to, watch the ad, get reward, etc. But at times it also crashes unexpectedly without any report. Anyone else had similar problems? We have tried with both the latest stable build and latest daily build (2631). Another question, if I start the app without an internet connection and try to request an ad we get an error code 10, code not defined. What is this?

Thanks in advance for any help!

Error code 10 is “Video prefetching did not complete” which seems reasonable since there was no Internet connectivity.

It’s a bit difficult to pinpoint if you don’t get a crash report in your logs though.

Are you getting a crash on iOS or Android? 

Ok, the error code seems reasonable then.

I managed to find error messages, just an inexperienced ios dev, looked at the wrong places :slight_smile:

There is alot of stuff here, but some “highlights”:

First:

Could not successfully update network info during initialization

Then a little farther down:

Terminating app due to uncaught exception ‘NSObjectInaccessibleException’, reason: 'CoreData could not fulfill a fault for 

And then this:

task_set_exception_ports(B07, 400, D03, 0, 0) failed with error (4: (os/kern) invalid argument

 

OK, that looks like it could be something with the Chartboost SDK itself.
How often would you say the crash happens?

Once I hear back from you I will report this to the Chartboost team to see if they have any clue to what the issue may be, but if it’s not easily reproducable it will most likely be difficult for them to track it down.

Hard to say how often, it sort of comes in bursts. It is also hard to reproduce. Haven’t had any problems today though.

I tested on android today, where I have not run into any crashes yet. I do get an Internal error message, any idea what this is?

Sorry, but Nope.

Do you get anything that can shed more light on the error in the log (using logcat) on Android?

/ActivityManager( 1352): Displayed —MY PACKAGE–/com.chartboost.sdk.CBImpressionActivity: +96ms

D/StatusBarPolicy( 1467): Network Type: 2

D/dalvikvm( 6242): GC_CONCURRENT freed 240K, 63% free 3836K/10247K, external 159K/512K, paused 4ms+4ms

D/NativeCrypto( 6242): returned from sslSelect() with result 1, error code 2

D/SensorService( 1352): enable: get sensor name = BMA150 3-axis Accelerometer

D/Sensors ( 1352): Enable akm: en = 1

D/SensorService( 1352): SensorDevice::activate–: handle = 0x0, enabled = 0x1

D/SensorService( 1352): enable: sensor->activate return value = 0x0

D/SensorService( 1352): enable: mActiveConnections.indexOf(connection) = 0xfffffffe

D/SensorService( 1352): enable: call mActiveConnections.add(connection)

D/SensorService( 1352): pid=6242, uid=10120

D/AudioPolicyService( 1248): startOutput() tid 5829

D/AudioPolicyManagerBase( 1248): startOutput() output 4, stream 3, session 28

I/AudioPolicyManagerBase( 1248): setOutputDevice() output 4 device 2 delayMs 0

I/AudioPolicyManagerBase( 1248): setOutputDevice() setting same device 2 or null device for output 4

D/AudioSystem( 1248): linearToSpecifyHtcVolume(volume:60, streamType:3, audio_devices:2)

I/OpenAL_SLES( 6242): playback_function started

D/ActivityManager( 1352): destroyActivityLocked, r=HistoryRecord{40b2af48 —MY PACKAGE–/com.chartboost.sdk.CBImpressionActivity}

V/ActivityManager( 1352): destroyActivityLocked, dalvik.system.VMStack.getThreadStackTrace(Native Method)

V/ActivityManager( 1352): destroyActivityLocked, java.lang.Thread.getStackTrace(Thread.java:745)

V/ActivityManager( 1352): destroyActivityLocked, com.android.server.am.ActivityStack.destroyActivityLocked(ActivityStack.java:3332)

V/ActivityManager( 1352): destroyActivityLocked, com.android.server.am.ActivityStack.finishCurrentActivityLocked(ActivityStack.java:3230)

V/ActivityManager( 1352): destroyActivityLocked, com.android.server.am.ActivityStack.finishCurrentActivityLocked(ActivityStack.java:3191)

V/ActivityManager( 1352): destroyActivityLocked, com.android.server.am.ActivityStack.activityIdleInternal(ActivityStack.java:2998)

V/ActivityManager( 1352): destroyActivityLocked, com.android.server.am.ActivityManagerService.activityIdle(ActivityManagerService.java:4410)

V/ActivityManager( 1352): destroyActivityLocked, android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:371)

V/ActivityManager( 1352): destroyActivityLocked, com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:1642)

V/ActivityManager( 1352): destroyActivityLocked, android.os.Binder.execTransact(Binder.java:320)

V/ActivityManager( 1352): destroyActivityLocked, dalvik.system.NativeStart.run(Native Method)

D/WindowManagerImpl( 6242): finishRemoveViewLocked, mViews[1]: com.android.internal.policy.impl.PhoneWindow$DecorView@4068dfd0

D/StatusBarPolicy( 1467): Network Type: 2

D/dalvikvm( 6437): GC_EXPLICIT freed 86K, 47% free 2859K/5379K, external 0K/0K, paused 83ms

V/webkit  ( 6305): TCP pre-connection: periodic writer

D/StatusBarPolicy( 1467): Network Type: 2

V/webkit  ( 4719): TCP pre-connection: periodic writer

D/StatusBarPolicy( 1467): Network Type: 2

D/StatusBarPolicy( 1467): Network Type: 2

D/PhoneApp( 1496): Recieved EVENT_SMART_DATA_ROAMING_REQUEST flag=true, mRadioSwitch=true

I/TelephonyRegistry( 1352): notifyServiceState: 0 home N Telenor (N/A) 24201  0 HSDPA CSS not supported -1 -1RoamInd: -1DefRoamInd: -1EriInd: -1EriMode: -1RadioPowerSv: falseEmergOnly: false

D/StatusBarPolicy( 1467): Network Type: 8

D/PendingMsgSendReceiverRegister( 1866): New state: 0

I/TelephonyRegistry( 1352): notifyDataConnection: state=0 isDataConnectivityPossible=true reason=null interfaceName=null networkType=8

D/TelephonyRegistry( 1352): notifyDataConnection() state=0isDataConnectivityPossible()true, reason=null

D/TelephonyRegistry( 1352): broadcastDataConnectionStateChanged()  state=DISCONNECTEDtypes=null, interfaceName=null, apn=null

D/StatusBarPolicy( 1467): onDataConnectionStateChanged , state= 0, networkType= 8

D/StatusBarPolicy( 1467): mPhoneState = 0

D/StatusBarPolicy( 1467): onDataConnectionStateChanged , SystemProperties.get(“net.gprs.data.connected”)= 0

D/AutoSetting( 1609): receiver - intent: android.intent.action.SERVICE_STATE

D/AutoSetting( 1609): receiver - flag: Service state 0

D/PendingMsgSendReceiverRegister( 1866): state in service

D/PendingMsgSendReceiverRegister( 1866): send HANDLER_SEND_QUEUED_MSG to mWorkingHandler

I/keystore( 1252): uid: 1000 action: e -> 7 state: 3 -> 3 retry: 4

D/AutoSetting( 1609): service - onStartCommand() action: com.htc.app.autosetting.timezoneupdate

D/AutoSetting( 1609): service - onStartCommand() Service state: 0

D/AutoSetting( 1609): service - mHandler: update timezone

D/AutoSetting( 1609): service - getTimeZoneIDFromMCC() MCC code: 242 TimeZoneID: Europe/Brussels

D/AutoSetting( 1609): service - setSystemTimeZoneID() TimeZoneID is not changed, current: Europe/Brussels

D/dalvikvm( 6447): GC_EXPLICIT freed 167K, 47% free 2968K/5511K, external 712K/1024K, paused 87ms

D/PendingMsgSendReceiverRegister( 1866): Enter sendQueuedMessage

I/keystore( 1252): uid: 1000 action: e -> 7 state: 3 -> 3 retry: 4

D/PendingMsgSendReceiverRegister( 1866): sendQueuedMessage, cursor not null and count: 0

D/StatusBarPolicy( 1467): Network Type: 8

D/dalvikvm( 6455): GC_EXPLICIT freed 136K, 46% free 2995K/5447K, external 0K/0K, paused 69ms

V/DeviceStorageMonitorService( 1352): freeMemory=762986496

D/DeviceStorageMonitorService( 1352): OoO SMS Memory available. SMS_AVAILABLE_THRESHOLD == 524288

I/DeviceStorageMonitorService( 1352): Posting Message again

D/StatusBarPolicy( 1467): Network Type: 8

I’ll send a report to Chartboost about the iOS and Android issues you are seeing to see if they can provide some more information.

Ok, thank you your help. It is very much appreciated :slight_smile:

Error code 10 is “Video prefetching did not complete” which seems reasonable since there was no Internet connectivity.

It’s a bit difficult to pinpoint if you don’t get a crash report in your logs though.

Are you getting a crash on iOS or Android? 

Ok, the error code seems reasonable then.

I managed to find error messages, just an inexperienced ios dev, looked at the wrong places :slight_smile:

There is alot of stuff here, but some “highlights”:

First:

Could not successfully update network info during initialization

Then a little farther down:

Terminating app due to uncaught exception ‘NSObjectInaccessibleException’, reason: 'CoreData could not fulfill a fault for 

And then this:

task_set_exception_ports(B07, 400, D03, 0, 0) failed with error (4: (os/kern) invalid argument

 

OK, that looks like it could be something with the Chartboost SDK itself.
How often would you say the crash happens?

Once I hear back from you I will report this to the Chartboost team to see if they have any clue to what the issue may be, but if it’s not easily reproducable it will most likely be difficult for them to track it down.

Hard to say how often, it sort of comes in bursts. It is also hard to reproduce. Haven’t had any problems today though.

I tested on android today, where I have not run into any crashes yet. I do get an Internal error message, any idea what this is?

Sorry, but Nope.

Do you get anything that can shed more light on the error in the log (using logcat) on Android?

/ActivityManager( 1352): Displayed —MY PACKAGE–/com.chartboost.sdk.CBImpressionActivity: +96ms

D/StatusBarPolicy( 1467): Network Type: 2

D/dalvikvm( 6242): GC_CONCURRENT freed 240K, 63% free 3836K/10247K, external 159K/512K, paused 4ms+4ms

D/NativeCrypto( 6242): returned from sslSelect() with result 1, error code 2

D/SensorService( 1352): enable: get sensor name = BMA150 3-axis Accelerometer

D/Sensors ( 1352): Enable akm: en = 1

D/SensorService( 1352): SensorDevice::activate–: handle = 0x0, enabled = 0x1

D/SensorService( 1352): enable: sensor->activate return value = 0x0

D/SensorService( 1352): enable: mActiveConnections.indexOf(connection) = 0xfffffffe

D/SensorService( 1352): enable: call mActiveConnections.add(connection)

D/SensorService( 1352): pid=6242, uid=10120

D/AudioPolicyService( 1248): startOutput() tid 5829

D/AudioPolicyManagerBase( 1248): startOutput() output 4, stream 3, session 28

I/AudioPolicyManagerBase( 1248): setOutputDevice() output 4 device 2 delayMs 0

I/AudioPolicyManagerBase( 1248): setOutputDevice() setting same device 2 or null device for output 4

D/AudioSystem( 1248): linearToSpecifyHtcVolume(volume:60, streamType:3, audio_devices:2)

I/OpenAL_SLES( 6242): playback_function started

D/ActivityManager( 1352): destroyActivityLocked, r=HistoryRecord{40b2af48 —MY PACKAGE–/com.chartboost.sdk.CBImpressionActivity}

V/ActivityManager( 1352): destroyActivityLocked, dalvik.system.VMStack.getThreadStackTrace(Native Method)

V/ActivityManager( 1352): destroyActivityLocked, java.lang.Thread.getStackTrace(Thread.java:745)

V/ActivityManager( 1352): destroyActivityLocked, com.android.server.am.ActivityStack.destroyActivityLocked(ActivityStack.java:3332)

V/ActivityManager( 1352): destroyActivityLocked, com.android.server.am.ActivityStack.finishCurrentActivityLocked(ActivityStack.java:3230)

V/ActivityManager( 1352): destroyActivityLocked, com.android.server.am.ActivityStack.finishCurrentActivityLocked(ActivityStack.java:3191)

V/ActivityManager( 1352): destroyActivityLocked, com.android.server.am.ActivityStack.activityIdleInternal(ActivityStack.java:2998)

V/ActivityManager( 1352): destroyActivityLocked, com.android.server.am.ActivityManagerService.activityIdle(ActivityManagerService.java:4410)

V/ActivityManager( 1352): destroyActivityLocked, android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:371)

V/ActivityManager( 1352): destroyActivityLocked, com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:1642)

V/ActivityManager( 1352): destroyActivityLocked, android.os.Binder.execTransact(Binder.java:320)

V/ActivityManager( 1352): destroyActivityLocked, dalvik.system.NativeStart.run(Native Method)

D/WindowManagerImpl( 6242): finishRemoveViewLocked, mViews[1]: com.android.internal.policy.impl.PhoneWindow$DecorView@4068dfd0

D/StatusBarPolicy( 1467): Network Type: 2

D/dalvikvm( 6437): GC_EXPLICIT freed 86K, 47% free 2859K/5379K, external 0K/0K, paused 83ms

V/webkit  ( 6305): TCP pre-connection: periodic writer

D/StatusBarPolicy( 1467): Network Type: 2

V/webkit  ( 4719): TCP pre-connection: periodic writer

D/StatusBarPolicy( 1467): Network Type: 2

D/StatusBarPolicy( 1467): Network Type: 2

D/PhoneApp( 1496): Recieved EVENT_SMART_DATA_ROAMING_REQUEST flag=true, mRadioSwitch=true

I/TelephonyRegistry( 1352): notifyServiceState: 0 home N Telenor (N/A) 24201  0 HSDPA CSS not supported -1 -1RoamInd: -1DefRoamInd: -1EriInd: -1EriMode: -1RadioPowerSv: falseEmergOnly: false

D/StatusBarPolicy( 1467): Network Type: 8

D/PendingMsgSendReceiverRegister( 1866): New state: 0

I/TelephonyRegistry( 1352): notifyDataConnection: state=0 isDataConnectivityPossible=true reason=null interfaceName=null networkType=8

D/TelephonyRegistry( 1352): notifyDataConnection() state=0isDataConnectivityPossible()true, reason=null

D/TelephonyRegistry( 1352): broadcastDataConnectionStateChanged()  state=DISCONNECTEDtypes=null, interfaceName=null, apn=null

D/StatusBarPolicy( 1467): onDataConnectionStateChanged , state= 0, networkType= 8

D/StatusBarPolicy( 1467): mPhoneState = 0

D/StatusBarPolicy( 1467): onDataConnectionStateChanged , SystemProperties.get(“net.gprs.data.connected”)= 0

D/AutoSetting( 1609): receiver - intent: android.intent.action.SERVICE_STATE

D/AutoSetting( 1609): receiver - flag: Service state 0

D/PendingMsgSendReceiverRegister( 1866): state in service

D/PendingMsgSendReceiverRegister( 1866): send HANDLER_SEND_QUEUED_MSG to mWorkingHandler

I/keystore( 1252): uid: 1000 action: e -> 7 state: 3 -> 3 retry: 4

D/AutoSetting( 1609): service - onStartCommand() action: com.htc.app.autosetting.timezoneupdate

D/AutoSetting( 1609): service - onStartCommand() Service state: 0

D/AutoSetting( 1609): service - mHandler: update timezone

D/AutoSetting( 1609): service - getTimeZoneIDFromMCC() MCC code: 242 TimeZoneID: Europe/Brussels

D/AutoSetting( 1609): service - setSystemTimeZoneID() TimeZoneID is not changed, current: Europe/Brussels

D/dalvikvm( 6447): GC_EXPLICIT freed 167K, 47% free 2968K/5511K, external 712K/1024K, paused 87ms

D/PendingMsgSendReceiverRegister( 1866): Enter sendQueuedMessage

I/keystore( 1252): uid: 1000 action: e -> 7 state: 3 -> 3 retry: 4

D/PendingMsgSendReceiverRegister( 1866): sendQueuedMessage, cursor not null and count: 0

D/StatusBarPolicy( 1467): Network Type: 8

D/dalvikvm( 6455): GC_EXPLICIT freed 136K, 46% free 2995K/5447K, external 0K/0K, paused 69ms

V/DeviceStorageMonitorService( 1352): freeMemory=762986496

D/DeviceStorageMonitorService( 1352): OoO SMS Memory available. SMS_AVAILABLE_THRESHOLD == 524288

I/DeviceStorageMonitorService( 1352): Posting Message again

D/StatusBarPolicy( 1467): Network Type: 8

I’ll send a report to Chartboost about the iOS and Android issues you are seeing to see if they can provide some more information.

Ok, thank you your help. It is very much appreciated :slight_smile: