Download

Asserts on Android 4.7

Hey Guys,

I’ve been developing a project on Android using Asserts to help throw errors, however since 4.7 Visual Studio no longer breaks when an assert fails, it just exits with an exit code 0. I’ve discovered that the failed asserts are still reported in the Android log even though they are not breaking execution in Visual Studio. Here is a sample of one of the asserts firing in the android logs below:

03-19 12:22:12.121 14531 14568 D UE4 : [2015.03.19-12.22.12:123] 0]LogWorld: Bringing World /Game/Maps/Space.Space up for play (max tick rate 30) at 2015.03.19-12.22.12
03-19 12:22:12.123 14531 14568 D UE4 : [2015.03.19-12.22.12:124] 0]LogWorld: Bringing up level for play took: 0.003262
03-19 12:22:12.835 14531 14568 D UE4 : Assertion failed: done [File:D:/P4/NEgner_Main/depot_ges/release/GESGame/Source/GESGame/Pawns/GESGame_Pawn.cpp] [Line: 31]
03-19 12:22:12.835 14531 14568 D UE4 : Unable To Load SatelliteRole.txt
03-19 12:22:12.835 14531 14568 D UE4 : [2015.03.19-12.22.12:837] 0]LogStreaming:Warning: Failed to open ANSI TEXT file …/…/…/GESGame/Textfiles/SatelliteRole.txt
03-19 12:22:12.836 14531 14568 D UE4 : [2015.03.19-12.22.12:837] 0]Assertion failed: Assertion failed: done [File:D:/P4/NEgner_Main/depot_ges/release/GESGame/Source/GESGame/Pawns/GESGame_Pawn.cpp] [Line: 31]
03-19 12:22:12.836 14531 14568 D UE4 : Unable To Load SatelliteRole.txt
03-19 12:22:12.846 14531 14568 I AndroidRuntime: VM exiting with result code 0, cleanup skipped.
03-19 12:22:12.885 838 1003 I ActivityManager: Process com.YourCompany.GESGame (pid 14531) has died.
03-19 12:22:12.885 838 1019 I WindowState: WIN DEATH: Window{41f6e168 u0 com.YourCompany.GESGame/com.epicgames.ue4.GameActivity}
03-19 12:22:12.886 838 1086 V Sensors : HAL:enable - sensor Gyro (handle 0) en → dis
03-19 12:22:12.886 838 1086 V Sensors : HAL:Gyro sensor state change what=0
03-19 12:22:12.886 838 1086 V Sensors : HAL:handle = 0
03-19 12:22:12.886 838 1086 V Sensors : HAL:flags = 0
03-19 12:22:12.886 838 1086 V Sensors : HAL:enable : mEnabled = 2
03-19 12:22:12.886 838 1086 V Sensors : HAL:sen_mask= 0x70
03-19 12:22:12.886 838 1086 V Sensors : HAL:enableSensors - sensors: 0x70
03-19 12:22:12.886 838 1086 V Sensors : HAL:enableSensors - disable gyro
03-19 12:22:12.887 838 1003 W ActivityManager: Force removing ActivityRecord{421aa7e8 u0 com.YourCompany.GESGame/com.epicgames.ue4.GameActivity t10}: app died, no saved state
03-19 12:22:12.903 838 1086 V Sensors : HAL:enableSensors - enable accel
03-19 12:22:12.904 838 1086 V Sensors : HAL:enableSensors - disable compass
03-19 12:22:12.904 838 1086 V Sensors : HAL:wanted rate for all sensors : 20000000 ns, mpl rate: 20000 us, (50.00 Hz)
03-19 12:22:12.904 838 1086 V Sensors : HAL:MPL gyro sample rate: 20000
03-19 12:22:12.905 838 1086 V Sensors : HAL:MPL accel sample rate: 20000
03-19 12:22:12.905 838 1086 V Sensors : HAL:MPL compass sample rate: 20000
03-19 12:22:12.905 838 1086 V Sensors : HAL:enable - sensor Accelerometer (handle 2) en → dis
03-19 12:22:12.906 838 1086 V Sensors : HAL:Accelerometer sensor state change what=1
03-19 12:22:12.906 838 1086 V Sensors : HAL:handle = 2
03-19 12:22:12.906 838 1086 V Sensors : HAL:flags = 0
03-19 12:22:12.906 838 1086 V Sensors : HAL:enable : mEnabled = 0
03-19 12:22:12.906 838 1086 V Sensors : HAL:sen_mask= 0x0
03-19 12:22:12.906 838 1086 V Sensors : HAL:enableSensors - sensors: 0x0
03-19 12:22:12.906 838 1086 V Sensors : HAL:enableSensors - disable gyro
03-19 12:22:12.907 838 1086 V Sensors : HAL:enableSensors - disable accel
03-19 12:22:12.979 838 1086 V Sensors : HAL:enableSensors - disable compass
03-19 12:22:12.980 838 1086 I MPL-storeload: mpl state size = 5584
03-19 12:22:12.981 838 1086 E MPL-storeload: calData from inv_save_mpl_states, size=2
03-19 12:22:12.981 838 1086 I MPL-storeload: cal data size to write = 5584
03-19 12:22:12.983 838 1086 I MPL-storeload: Bytes written = 5584
03-19 12:22:12.983 838 1086 I Sensors : HAL:Cal file updated
03-19 12:22:13.040 838 891 W InputMethodManagerService: Got RemoteException sending setActive(false) notification to pid 14531 uid 10090
03-19 12:22:13.049 987 999 W Binder : Caught a RuntimeException from the binder stub implementation.
03-19 12:22:13.049 987 999 W Binder : java.lang.NullPointerException
03-19 12:22:13.049 987 999 W Binder : at android.inputmethodservice.IInputMethodWrapper.setSessionEnabled(IInputMethodWrapper.java:280)
03-19 12:22:13.049 987 999 W Binder : at com.android.internal.view.IInputMethod$Stub.onTransact(IInputMethod.java:129)
03-19 12:22:13.049 987 999 W Binder : at android.os.Binder.execTransact(Binder.java:404)
03-19 12:22:13.049 987 999 W Binder : at dalvik.system.NativeStart.run(Native Method)
03-19 12:22:13.500 1091 1091 W ContextImpl: Implicit intents with startService are not safe: Intent { act=com.nvidia.ControllerMapper.START_SERVICE } android.content.ContextWrapper.bindService:517 com.nvidia.ControllerMapper.MapperClient$ServiceClient.connect:683 com.nvidia.ControllerMapper.MapperClient.<init>:102

Has anyone else experienced this? and does anybody know how i can get the asserts firing in VS again?

Thanks for your time

Rengee

https://answers.unrealengine.com/questions/184511/crash-47-serious-android-development-crashes-and-b.html

Apparently fixed in 4.7.3 (Will Check tomorrow - note to self)