What may have caused my code to freeze ? (app runs on a Customized Samsung build ) ANR includedANR due to deadlock between app and widget?Toast.makeText ANRException : main java.lang.OutOfMemoryErrorAndroid, Display list of images one by one on imageviewmain thread is blocked by itself by Object.wait?Fatal signal 11 (SIGSEGV), code 1ListView of images and String arrays not workingGetting Lots of ANR due to AccessibilityNodeInfo getChildANR Investigating with trace.txtHow to fix ANR issue on /data/app/com.android.chrome-1/base.apk?

What prevents someone from claiming to be the murderer in order to get the real murderer off?

Why can a destructor change the state of a constant object?

Why does the U.S. tolerate foreign influence from Saudi Arabia and Israel on its domestic policies while not tolerating that from China or Russia?

Why isn't pressure filtration popular compared to vacuum filtration?

Is Trump personally blocking people on Twitter?

Do you know your 'KVZ's?

Optimization terminology: "Exact" v. "Approximate"

Referring to different instances of the same character in time travel

Do I have a right to cancel a purchase of foreign currency in the UK?

Should disabled buttons give feedback when clicked?

RPI3B+: What are the four components below the HDMI connector called?

Integer Lists of Noah

Why queuable apex accepts sobjects where as future methods doesn't?

How would vampires avoid contracting diseases?

Keep milk (or milk alternative) for a day without a fridge

Storming Area 51

How do you glue a text to a point?

Credit score and financing new car

How can I calculate the sum of 2 random dice out of a 3d6 pool in AnyDice?

Mathematica notebook opening off the screen

definition of "percentile"

Why doesn't sea level show seasonality?

Is the genetic term "polycistronic" still used in modern biology?

How to evolve human-like eyes that can stare at the sun without protection?



What may have caused my code to freeze ? (app runs on a Customized Samsung build ) ANR included


ANR due to deadlock between app and widget?Toast.makeText ANRException : main java.lang.OutOfMemoryErrorAndroid, Display list of images one by one on imageviewmain thread is blocked by itself by Object.wait?Fatal signal 11 (SIGSEGV), code 1ListView of images and String arrays not workingGetting Lots of ANR due to AccessibilityNodeInfo getChildANR Investigating with trace.txtHow to fix ANR issue on /data/app/com.android.chrome-1/base.apk?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















My animation using Canvas freezes over a period of time (from anywhere between 10 to 36 hours) when playing. It appears that the entire system simply froze, if you connect it to a PC or a laptop using USB cable, nothing will show up beyond "unrecognized device". We could only reset the system to "solve" the freeze.



I managed to pull both traces.txt from the data/anr/ folder, but unfortunately, I'm not that educated in reading either of them, but since both programs freeze at the exactly the same section of code, I think it's more likely my program than anything else.



The system my app runs on is a customized Samsung one. If it sounds confusing, I believe it could be because Samsung released certain SDK for their chips, and our supplier was using it. The Chip is Samsung 4418. the build is kind of special as it incorporates partially the graphic & display driver part of AOSP 5.1.1 while the rest of the AOSP code uses 4.4.2 version - so the build version is 4.4.2 API lvl 19.



Below are the anr traces of "main" for both freezes:



The first time:





----- pid 12021 at 2019-03-19 22:05:10 -----
Cmd line: com.tsl.touch.navigator

JNI: CheckJNI is off; workarounds are off; pins=0; globals=264

DALVIK THREADS:
(mutexes: tll=0 tsl=0 tscl=0 ghl=0)

"main" prio=5 tid=1 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x2c3c6ca8 self=0x2c3b53c0
| sysTid=12021 nice=0 sched=0/0 cgrp=apps handle=716837204
| state=R schedstat=( 57574000000 93000000 1899 ) utm=5637 stm=120 core=1
#00 pc 00012224 /system/lib/libpng.so
#01 pc 000078bf /system/lib/libpng.so (png_read_row+678)
#02 pc 000079ff /system/lib/libpng.so (png_read_rows+46)
#03 pc 000eecc1 /system/lib/libskia.so (SkPNGImageDecoder::onDecode(SkStream*, SkBitmap*, SkImageDecoder::Mode)+546)
#04 pc 000eb0e1 /system/lib/libskia.so (SkImageDecoder::decode(SkStream*, SkBitmap*, SkBitmap::Config, SkImageDecoder::Mode)+36)
#05 pc 00075201 /system/lib/libandroid_runtime.so
#06 pc 00075375 /system/lib/libandroid_runtime.so
#07 pc 0001dbcc /system/lib/libdvm.so (dvmPlatformInvoke+112)
#08 pc 0004e123 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
#09 pc 00026fe0 /system/lib/libdvm.so
#10 pc 0002dfa0 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
#11 pc 0002b638 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
#12 pc 00060865 /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+392)
#13 pc 000687c7 /system/lib/libdvm.so
#14 pc 00026fe0 /system/lib/libdvm.so
#15 pc 0002dfa0 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
#16 pc 0002b638 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
#17 pc 00060581 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+336)
#18 pc 00049d0b /system/lib/libdvm.so
#19 pc 0004cde7 /system/lib/libandroid_runtime.so
#20 pc 0004db0b /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+354)
#21 pc 0000105b /system/bin/app_process
#22 pc 0000e403 /system/lib/libc.so (__libc_init+50)
#23 pc 00000d7c /system/bin/app_process
at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:587)
at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:422)
at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:445)
at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:475)
at com.tsl.touch.navigator.MainActivity.animation(MainActivity.java:369)
at com.tsl.touch.navigator.MainActivity.showAnimation(MainActivity.java:448)
at com.tsl.touch.navigator.MainActivity.parseDataAndPresent(MainActivity.java:653)
at com.tsl.touch.navigator.MainActivity.access$800(MainActivity.java:61)
at com.tsl.touch.navigator.MainActivity$NaviEventRunnable.run(MainActivity.java:1024)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)


The 2nd time:



----- pid 759 at 2014-03-27 00:04:10 -----
Cmd line: com.tsl.touch.navigator

JNI: CheckJNI is off; workarounds are off; pins=0; globals=265

DALVIK THREADS:
(mutexes: tll=0 tsl=0 tscl=0 ghl=0)

"main" prio=5 tid=1 SUSPENDED
| group="main" sCount=1 dsCount=0 obj=0x2c010ca8 self=0x2bf4a3f8
| sysTid=759 nice=0 sched=0/0 cgrp=apps handle=716206420
| state=S schedstat=( 62555000000 300000000 3089 ) utm=6004 stm=250 core=0
#00 pc 000219bc /system/lib/libc.so (__futex_syscall3+8)
#01 pc 0000ef7c /system/lib/libc.so (__pthread_cond_timedwait_relative+48)
#02 pc 0000efdc /system/lib/libc.so (__pthread_cond_timedwait+64)
#03 pc 000536b7 /system/lib/libdvm.so
#04 pc 00053c79 /system/lib/libdvm.so (dvmChangeStatus(Thread*, ThreadStatus)+34)
#05 pc 00038a41 /system/lib/libdvm.so
#06 pc 00039aa3 /system/lib/libdvm.so
#07 pc 0003b849 /system/lib/libdvm.so
#08 pc 00001f4b /system/lib/libnativehelper.so (jniGetNonMovableArrayElements+22)
#09 pc 00077ea9 /system/lib/libandroid_runtime.so (GraphicsJNI::allocateJavaPixelRef(_JNIEnv*, SkBitmap*, SkColorTable*)+44)
#10 pc 00077f23 /system/lib/libandroid_runtime.so (JavaPixelAllocator::allocPixelRef(SkBitmap*, SkColorTable*)+18)
#11 pc 0008f8f5 /system/lib/libskia.so (SkBitmap::allocPixels(SkBitmap::Allocator*, SkColorTable*)+28)
#12 pc 000eeb61 /system/lib/libskia.so (SkPNGImageDecoder::onDecode(SkStream*, SkBitmap*, SkImageDecoder::Mode)+194)
#13 pc 000eb0e1 /system/lib/libskia.so (SkImageDecoder::decode(SkStream*, SkBitmap*, SkBitmap::Config, SkImageDecoder::Mode)+36)
#14 pc 00075201 /system/lib/libandroid_runtime.so
#15 pc 00075375 /system/lib/libandroid_runtime.so
#16 pc 0001dbcc /system/lib/libdvm.so (dvmPlatformInvoke+112)
#17 pc 0004e123 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
#18 pc 00026fe0 /system/lib/libdvm.so
#19 pc 0002dfa0 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
#20 pc 0002b638 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
#21 pc 00060865 /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+392)
#22 pc 000687c7 /system/lib/libdvm.so
#23 pc 00026fe0 /system/lib/libdvm.so
#24 pc 0002dfa0 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
#25 pc 0002b638 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
#26 pc 00060581 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+336)
#27 pc 00049d0b /system/lib/libdvm.so
#28 pc 0004cde7 /system/lib/libandroid_runtime.so
#29 pc 0004db0b /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+354)
#30 pc 0000105b /system/bin/app_process
#31 pc 0000e403 /system/lib/libc.so (__libc_init+50)
at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:587)
at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:422)
at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:445)
at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:475)
at com.tsl.touch.navigator.MainActivity.animation(MainActivity.java:379)
at com.tsl.touch.navigator.MainActivity.showAnimation(MainActivity.java:448)
at com.tsl.touch.navigator.MainActivity.parseDataAndPresent(MainActivity.java:653)
at com.tsl.touch.navigator.MainActivity.access$800(MainActivity.java:61)
at com.tsl.touch.navigator.MainActivity$NaviEventRunnable.run(MainActivity.java:1022)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)


I want to know what clue can be drawn from these traces, and I wanna know the potential solution to solve the crash/freeze.



My coder-sense tells me it has something to do with memory management, more specifically, the system failed to allocate memory for the bitmap decoding, it seems.



Please help?










share|improve this question




























    0















    My animation using Canvas freezes over a period of time (from anywhere between 10 to 36 hours) when playing. It appears that the entire system simply froze, if you connect it to a PC or a laptop using USB cable, nothing will show up beyond "unrecognized device". We could only reset the system to "solve" the freeze.



    I managed to pull both traces.txt from the data/anr/ folder, but unfortunately, I'm not that educated in reading either of them, but since both programs freeze at the exactly the same section of code, I think it's more likely my program than anything else.



    The system my app runs on is a customized Samsung one. If it sounds confusing, I believe it could be because Samsung released certain SDK for their chips, and our supplier was using it. The Chip is Samsung 4418. the build is kind of special as it incorporates partially the graphic & display driver part of AOSP 5.1.1 while the rest of the AOSP code uses 4.4.2 version - so the build version is 4.4.2 API lvl 19.



    Below are the anr traces of "main" for both freezes:



    The first time:





    ----- pid 12021 at 2019-03-19 22:05:10 -----
    Cmd line: com.tsl.touch.navigator

    JNI: CheckJNI is off; workarounds are off; pins=0; globals=264

    DALVIK THREADS:
    (mutexes: tll=0 tsl=0 tscl=0 ghl=0)

    "main" prio=5 tid=1 NATIVE
    | group="main" sCount=1 dsCount=0 obj=0x2c3c6ca8 self=0x2c3b53c0
    | sysTid=12021 nice=0 sched=0/0 cgrp=apps handle=716837204
    | state=R schedstat=( 57574000000 93000000 1899 ) utm=5637 stm=120 core=1
    #00 pc 00012224 /system/lib/libpng.so
    #01 pc 000078bf /system/lib/libpng.so (png_read_row+678)
    #02 pc 000079ff /system/lib/libpng.so (png_read_rows+46)
    #03 pc 000eecc1 /system/lib/libskia.so (SkPNGImageDecoder::onDecode(SkStream*, SkBitmap*, SkImageDecoder::Mode)+546)
    #04 pc 000eb0e1 /system/lib/libskia.so (SkImageDecoder::decode(SkStream*, SkBitmap*, SkBitmap::Config, SkImageDecoder::Mode)+36)
    #05 pc 00075201 /system/lib/libandroid_runtime.so
    #06 pc 00075375 /system/lib/libandroid_runtime.so
    #07 pc 0001dbcc /system/lib/libdvm.so (dvmPlatformInvoke+112)
    #08 pc 0004e123 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
    #09 pc 00026fe0 /system/lib/libdvm.so
    #10 pc 0002dfa0 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
    #11 pc 0002b638 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
    #12 pc 00060865 /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+392)
    #13 pc 000687c7 /system/lib/libdvm.so
    #14 pc 00026fe0 /system/lib/libdvm.so
    #15 pc 0002dfa0 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
    #16 pc 0002b638 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
    #17 pc 00060581 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+336)
    #18 pc 00049d0b /system/lib/libdvm.so
    #19 pc 0004cde7 /system/lib/libandroid_runtime.so
    #20 pc 0004db0b /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+354)
    #21 pc 0000105b /system/bin/app_process
    #22 pc 0000e403 /system/lib/libc.so (__libc_init+50)
    #23 pc 00000d7c /system/bin/app_process
    at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
    at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:587)
    at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:422)
    at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:445)
    at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:475)
    at com.tsl.touch.navigator.MainActivity.animation(MainActivity.java:369)
    at com.tsl.touch.navigator.MainActivity.showAnimation(MainActivity.java:448)
    at com.tsl.touch.navigator.MainActivity.parseDataAndPresent(MainActivity.java:653)
    at com.tsl.touch.navigator.MainActivity.access$800(MainActivity.java:61)
    at com.tsl.touch.navigator.MainActivity$NaviEventRunnable.run(MainActivity.java:1024)
    at android.os.Handler.handleCallback(Handler.java:733)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:136)
    at android.app.ActivityThread.main(ActivityThread.java:5017)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
    at dalvik.system.NativeStart.main(Native Method)


    The 2nd time:



    ----- pid 759 at 2014-03-27 00:04:10 -----
    Cmd line: com.tsl.touch.navigator

    JNI: CheckJNI is off; workarounds are off; pins=0; globals=265

    DALVIK THREADS:
    (mutexes: tll=0 tsl=0 tscl=0 ghl=0)

    "main" prio=5 tid=1 SUSPENDED
    | group="main" sCount=1 dsCount=0 obj=0x2c010ca8 self=0x2bf4a3f8
    | sysTid=759 nice=0 sched=0/0 cgrp=apps handle=716206420
    | state=S schedstat=( 62555000000 300000000 3089 ) utm=6004 stm=250 core=0
    #00 pc 000219bc /system/lib/libc.so (__futex_syscall3+8)
    #01 pc 0000ef7c /system/lib/libc.so (__pthread_cond_timedwait_relative+48)
    #02 pc 0000efdc /system/lib/libc.so (__pthread_cond_timedwait+64)
    #03 pc 000536b7 /system/lib/libdvm.so
    #04 pc 00053c79 /system/lib/libdvm.so (dvmChangeStatus(Thread*, ThreadStatus)+34)
    #05 pc 00038a41 /system/lib/libdvm.so
    #06 pc 00039aa3 /system/lib/libdvm.so
    #07 pc 0003b849 /system/lib/libdvm.so
    #08 pc 00001f4b /system/lib/libnativehelper.so (jniGetNonMovableArrayElements+22)
    #09 pc 00077ea9 /system/lib/libandroid_runtime.so (GraphicsJNI::allocateJavaPixelRef(_JNIEnv*, SkBitmap*, SkColorTable*)+44)
    #10 pc 00077f23 /system/lib/libandroid_runtime.so (JavaPixelAllocator::allocPixelRef(SkBitmap*, SkColorTable*)+18)
    #11 pc 0008f8f5 /system/lib/libskia.so (SkBitmap::allocPixels(SkBitmap::Allocator*, SkColorTable*)+28)
    #12 pc 000eeb61 /system/lib/libskia.so (SkPNGImageDecoder::onDecode(SkStream*, SkBitmap*, SkImageDecoder::Mode)+194)
    #13 pc 000eb0e1 /system/lib/libskia.so (SkImageDecoder::decode(SkStream*, SkBitmap*, SkBitmap::Config, SkImageDecoder::Mode)+36)
    #14 pc 00075201 /system/lib/libandroid_runtime.so
    #15 pc 00075375 /system/lib/libandroid_runtime.so
    #16 pc 0001dbcc /system/lib/libdvm.so (dvmPlatformInvoke+112)
    #17 pc 0004e123 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
    #18 pc 00026fe0 /system/lib/libdvm.so
    #19 pc 0002dfa0 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
    #20 pc 0002b638 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
    #21 pc 00060865 /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+392)
    #22 pc 000687c7 /system/lib/libdvm.so
    #23 pc 00026fe0 /system/lib/libdvm.so
    #24 pc 0002dfa0 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
    #25 pc 0002b638 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
    #26 pc 00060581 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+336)
    #27 pc 00049d0b /system/lib/libdvm.so
    #28 pc 0004cde7 /system/lib/libandroid_runtime.so
    #29 pc 0004db0b /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+354)
    #30 pc 0000105b /system/bin/app_process
    #31 pc 0000e403 /system/lib/libc.so (__libc_init+50)
    at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
    at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:587)
    at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:422)
    at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:445)
    at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:475)
    at com.tsl.touch.navigator.MainActivity.animation(MainActivity.java:379)
    at com.tsl.touch.navigator.MainActivity.showAnimation(MainActivity.java:448)
    at com.tsl.touch.navigator.MainActivity.parseDataAndPresent(MainActivity.java:653)
    at com.tsl.touch.navigator.MainActivity.access$800(MainActivity.java:61)
    at com.tsl.touch.navigator.MainActivity$NaviEventRunnable.run(MainActivity.java:1022)
    at android.os.Handler.handleCallback(Handler.java:733)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:136)
    at android.app.ActivityThread.main(ActivityThread.java:5017)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
    at dalvik.system.NativeStart.main(Native Method)


    I want to know what clue can be drawn from these traces, and I wanna know the potential solution to solve the crash/freeze.



    My coder-sense tells me it has something to do with memory management, more specifically, the system failed to allocate memory for the bitmap decoding, it seems.



    Please help?










    share|improve this question
























      0












      0








      0








      My animation using Canvas freezes over a period of time (from anywhere between 10 to 36 hours) when playing. It appears that the entire system simply froze, if you connect it to a PC or a laptop using USB cable, nothing will show up beyond "unrecognized device". We could only reset the system to "solve" the freeze.



      I managed to pull both traces.txt from the data/anr/ folder, but unfortunately, I'm not that educated in reading either of them, but since both programs freeze at the exactly the same section of code, I think it's more likely my program than anything else.



      The system my app runs on is a customized Samsung one. If it sounds confusing, I believe it could be because Samsung released certain SDK for their chips, and our supplier was using it. The Chip is Samsung 4418. the build is kind of special as it incorporates partially the graphic & display driver part of AOSP 5.1.1 while the rest of the AOSP code uses 4.4.2 version - so the build version is 4.4.2 API lvl 19.



      Below are the anr traces of "main" for both freezes:



      The first time:





      ----- pid 12021 at 2019-03-19 22:05:10 -----
      Cmd line: com.tsl.touch.navigator

      JNI: CheckJNI is off; workarounds are off; pins=0; globals=264

      DALVIK THREADS:
      (mutexes: tll=0 tsl=0 tscl=0 ghl=0)

      "main" prio=5 tid=1 NATIVE
      | group="main" sCount=1 dsCount=0 obj=0x2c3c6ca8 self=0x2c3b53c0
      | sysTid=12021 nice=0 sched=0/0 cgrp=apps handle=716837204
      | state=R schedstat=( 57574000000 93000000 1899 ) utm=5637 stm=120 core=1
      #00 pc 00012224 /system/lib/libpng.so
      #01 pc 000078bf /system/lib/libpng.so (png_read_row+678)
      #02 pc 000079ff /system/lib/libpng.so (png_read_rows+46)
      #03 pc 000eecc1 /system/lib/libskia.so (SkPNGImageDecoder::onDecode(SkStream*, SkBitmap*, SkImageDecoder::Mode)+546)
      #04 pc 000eb0e1 /system/lib/libskia.so (SkImageDecoder::decode(SkStream*, SkBitmap*, SkBitmap::Config, SkImageDecoder::Mode)+36)
      #05 pc 00075201 /system/lib/libandroid_runtime.so
      #06 pc 00075375 /system/lib/libandroid_runtime.so
      #07 pc 0001dbcc /system/lib/libdvm.so (dvmPlatformInvoke+112)
      #08 pc 0004e123 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
      #09 pc 00026fe0 /system/lib/libdvm.so
      #10 pc 0002dfa0 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
      #11 pc 0002b638 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
      #12 pc 00060865 /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+392)
      #13 pc 000687c7 /system/lib/libdvm.so
      #14 pc 00026fe0 /system/lib/libdvm.so
      #15 pc 0002dfa0 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
      #16 pc 0002b638 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
      #17 pc 00060581 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+336)
      #18 pc 00049d0b /system/lib/libdvm.so
      #19 pc 0004cde7 /system/lib/libandroid_runtime.so
      #20 pc 0004db0b /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+354)
      #21 pc 0000105b /system/bin/app_process
      #22 pc 0000e403 /system/lib/libc.so (__libc_init+50)
      #23 pc 00000d7c /system/bin/app_process
      at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
      at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:587)
      at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:422)
      at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:445)
      at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:475)
      at com.tsl.touch.navigator.MainActivity.animation(MainActivity.java:369)
      at com.tsl.touch.navigator.MainActivity.showAnimation(MainActivity.java:448)
      at com.tsl.touch.navigator.MainActivity.parseDataAndPresent(MainActivity.java:653)
      at com.tsl.touch.navigator.MainActivity.access$800(MainActivity.java:61)
      at com.tsl.touch.navigator.MainActivity$NaviEventRunnable.run(MainActivity.java:1024)
      at android.os.Handler.handleCallback(Handler.java:733)
      at android.os.Handler.dispatchMessage(Handler.java:95)
      at android.os.Looper.loop(Looper.java:136)
      at android.app.ActivityThread.main(ActivityThread.java:5017)
      at java.lang.reflect.Method.invokeNative(Native Method)
      at java.lang.reflect.Method.invoke(Method.java:515)
      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
      at dalvik.system.NativeStart.main(Native Method)


      The 2nd time:



      ----- pid 759 at 2014-03-27 00:04:10 -----
      Cmd line: com.tsl.touch.navigator

      JNI: CheckJNI is off; workarounds are off; pins=0; globals=265

      DALVIK THREADS:
      (mutexes: tll=0 tsl=0 tscl=0 ghl=0)

      "main" prio=5 tid=1 SUSPENDED
      | group="main" sCount=1 dsCount=0 obj=0x2c010ca8 self=0x2bf4a3f8
      | sysTid=759 nice=0 sched=0/0 cgrp=apps handle=716206420
      | state=S schedstat=( 62555000000 300000000 3089 ) utm=6004 stm=250 core=0
      #00 pc 000219bc /system/lib/libc.so (__futex_syscall3+8)
      #01 pc 0000ef7c /system/lib/libc.so (__pthread_cond_timedwait_relative+48)
      #02 pc 0000efdc /system/lib/libc.so (__pthread_cond_timedwait+64)
      #03 pc 000536b7 /system/lib/libdvm.so
      #04 pc 00053c79 /system/lib/libdvm.so (dvmChangeStatus(Thread*, ThreadStatus)+34)
      #05 pc 00038a41 /system/lib/libdvm.so
      #06 pc 00039aa3 /system/lib/libdvm.so
      #07 pc 0003b849 /system/lib/libdvm.so
      #08 pc 00001f4b /system/lib/libnativehelper.so (jniGetNonMovableArrayElements+22)
      #09 pc 00077ea9 /system/lib/libandroid_runtime.so (GraphicsJNI::allocateJavaPixelRef(_JNIEnv*, SkBitmap*, SkColorTable*)+44)
      #10 pc 00077f23 /system/lib/libandroid_runtime.so (JavaPixelAllocator::allocPixelRef(SkBitmap*, SkColorTable*)+18)
      #11 pc 0008f8f5 /system/lib/libskia.so (SkBitmap::allocPixels(SkBitmap::Allocator*, SkColorTable*)+28)
      #12 pc 000eeb61 /system/lib/libskia.so (SkPNGImageDecoder::onDecode(SkStream*, SkBitmap*, SkImageDecoder::Mode)+194)
      #13 pc 000eb0e1 /system/lib/libskia.so (SkImageDecoder::decode(SkStream*, SkBitmap*, SkBitmap::Config, SkImageDecoder::Mode)+36)
      #14 pc 00075201 /system/lib/libandroid_runtime.so
      #15 pc 00075375 /system/lib/libandroid_runtime.so
      #16 pc 0001dbcc /system/lib/libdvm.so (dvmPlatformInvoke+112)
      #17 pc 0004e123 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
      #18 pc 00026fe0 /system/lib/libdvm.so
      #19 pc 0002dfa0 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
      #20 pc 0002b638 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
      #21 pc 00060865 /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+392)
      #22 pc 000687c7 /system/lib/libdvm.so
      #23 pc 00026fe0 /system/lib/libdvm.so
      #24 pc 0002dfa0 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
      #25 pc 0002b638 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
      #26 pc 00060581 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+336)
      #27 pc 00049d0b /system/lib/libdvm.so
      #28 pc 0004cde7 /system/lib/libandroid_runtime.so
      #29 pc 0004db0b /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+354)
      #30 pc 0000105b /system/bin/app_process
      #31 pc 0000e403 /system/lib/libc.so (__libc_init+50)
      at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
      at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:587)
      at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:422)
      at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:445)
      at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:475)
      at com.tsl.touch.navigator.MainActivity.animation(MainActivity.java:379)
      at com.tsl.touch.navigator.MainActivity.showAnimation(MainActivity.java:448)
      at com.tsl.touch.navigator.MainActivity.parseDataAndPresent(MainActivity.java:653)
      at com.tsl.touch.navigator.MainActivity.access$800(MainActivity.java:61)
      at com.tsl.touch.navigator.MainActivity$NaviEventRunnable.run(MainActivity.java:1022)
      at android.os.Handler.handleCallback(Handler.java:733)
      at android.os.Handler.dispatchMessage(Handler.java:95)
      at android.os.Looper.loop(Looper.java:136)
      at android.app.ActivityThread.main(ActivityThread.java:5017)
      at java.lang.reflect.Method.invokeNative(Native Method)
      at java.lang.reflect.Method.invoke(Method.java:515)
      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
      at dalvik.system.NativeStart.main(Native Method)


      I want to know what clue can be drawn from these traces, and I wanna know the potential solution to solve the crash/freeze.



      My coder-sense tells me it has something to do with memory management, more specifically, the system failed to allocate memory for the bitmap decoding, it seems.



      Please help?










      share|improve this question














      My animation using Canvas freezes over a period of time (from anywhere between 10 to 36 hours) when playing. It appears that the entire system simply froze, if you connect it to a PC or a laptop using USB cable, nothing will show up beyond "unrecognized device". We could only reset the system to "solve" the freeze.



      I managed to pull both traces.txt from the data/anr/ folder, but unfortunately, I'm not that educated in reading either of them, but since both programs freeze at the exactly the same section of code, I think it's more likely my program than anything else.



      The system my app runs on is a customized Samsung one. If it sounds confusing, I believe it could be because Samsung released certain SDK for their chips, and our supplier was using it. The Chip is Samsung 4418. the build is kind of special as it incorporates partially the graphic & display driver part of AOSP 5.1.1 while the rest of the AOSP code uses 4.4.2 version - so the build version is 4.4.2 API lvl 19.



      Below are the anr traces of "main" for both freezes:



      The first time:





      ----- pid 12021 at 2019-03-19 22:05:10 -----
      Cmd line: com.tsl.touch.navigator

      JNI: CheckJNI is off; workarounds are off; pins=0; globals=264

      DALVIK THREADS:
      (mutexes: tll=0 tsl=0 tscl=0 ghl=0)

      "main" prio=5 tid=1 NATIVE
      | group="main" sCount=1 dsCount=0 obj=0x2c3c6ca8 self=0x2c3b53c0
      | sysTid=12021 nice=0 sched=0/0 cgrp=apps handle=716837204
      | state=R schedstat=( 57574000000 93000000 1899 ) utm=5637 stm=120 core=1
      #00 pc 00012224 /system/lib/libpng.so
      #01 pc 000078bf /system/lib/libpng.so (png_read_row+678)
      #02 pc 000079ff /system/lib/libpng.so (png_read_rows+46)
      #03 pc 000eecc1 /system/lib/libskia.so (SkPNGImageDecoder::onDecode(SkStream*, SkBitmap*, SkImageDecoder::Mode)+546)
      #04 pc 000eb0e1 /system/lib/libskia.so (SkImageDecoder::decode(SkStream*, SkBitmap*, SkBitmap::Config, SkImageDecoder::Mode)+36)
      #05 pc 00075201 /system/lib/libandroid_runtime.so
      #06 pc 00075375 /system/lib/libandroid_runtime.so
      #07 pc 0001dbcc /system/lib/libdvm.so (dvmPlatformInvoke+112)
      #08 pc 0004e123 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
      #09 pc 00026fe0 /system/lib/libdvm.so
      #10 pc 0002dfa0 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
      #11 pc 0002b638 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
      #12 pc 00060865 /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+392)
      #13 pc 000687c7 /system/lib/libdvm.so
      #14 pc 00026fe0 /system/lib/libdvm.so
      #15 pc 0002dfa0 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
      #16 pc 0002b638 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
      #17 pc 00060581 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+336)
      #18 pc 00049d0b /system/lib/libdvm.so
      #19 pc 0004cde7 /system/lib/libandroid_runtime.so
      #20 pc 0004db0b /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+354)
      #21 pc 0000105b /system/bin/app_process
      #22 pc 0000e403 /system/lib/libc.so (__libc_init+50)
      #23 pc 00000d7c /system/bin/app_process
      at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
      at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:587)
      at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:422)
      at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:445)
      at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:475)
      at com.tsl.touch.navigator.MainActivity.animation(MainActivity.java:369)
      at com.tsl.touch.navigator.MainActivity.showAnimation(MainActivity.java:448)
      at com.tsl.touch.navigator.MainActivity.parseDataAndPresent(MainActivity.java:653)
      at com.tsl.touch.navigator.MainActivity.access$800(MainActivity.java:61)
      at com.tsl.touch.navigator.MainActivity$NaviEventRunnable.run(MainActivity.java:1024)
      at android.os.Handler.handleCallback(Handler.java:733)
      at android.os.Handler.dispatchMessage(Handler.java:95)
      at android.os.Looper.loop(Looper.java:136)
      at android.app.ActivityThread.main(ActivityThread.java:5017)
      at java.lang.reflect.Method.invokeNative(Native Method)
      at java.lang.reflect.Method.invoke(Method.java:515)
      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
      at dalvik.system.NativeStart.main(Native Method)


      The 2nd time:



      ----- pid 759 at 2014-03-27 00:04:10 -----
      Cmd line: com.tsl.touch.navigator

      JNI: CheckJNI is off; workarounds are off; pins=0; globals=265

      DALVIK THREADS:
      (mutexes: tll=0 tsl=0 tscl=0 ghl=0)

      "main" prio=5 tid=1 SUSPENDED
      | group="main" sCount=1 dsCount=0 obj=0x2c010ca8 self=0x2bf4a3f8
      | sysTid=759 nice=0 sched=0/0 cgrp=apps handle=716206420
      | state=S schedstat=( 62555000000 300000000 3089 ) utm=6004 stm=250 core=0
      #00 pc 000219bc /system/lib/libc.so (__futex_syscall3+8)
      #01 pc 0000ef7c /system/lib/libc.so (__pthread_cond_timedwait_relative+48)
      #02 pc 0000efdc /system/lib/libc.so (__pthread_cond_timedwait+64)
      #03 pc 000536b7 /system/lib/libdvm.so
      #04 pc 00053c79 /system/lib/libdvm.so (dvmChangeStatus(Thread*, ThreadStatus)+34)
      #05 pc 00038a41 /system/lib/libdvm.so
      #06 pc 00039aa3 /system/lib/libdvm.so
      #07 pc 0003b849 /system/lib/libdvm.so
      #08 pc 00001f4b /system/lib/libnativehelper.so (jniGetNonMovableArrayElements+22)
      #09 pc 00077ea9 /system/lib/libandroid_runtime.so (GraphicsJNI::allocateJavaPixelRef(_JNIEnv*, SkBitmap*, SkColorTable*)+44)
      #10 pc 00077f23 /system/lib/libandroid_runtime.so (JavaPixelAllocator::allocPixelRef(SkBitmap*, SkColorTable*)+18)
      #11 pc 0008f8f5 /system/lib/libskia.so (SkBitmap::allocPixels(SkBitmap::Allocator*, SkColorTable*)+28)
      #12 pc 000eeb61 /system/lib/libskia.so (SkPNGImageDecoder::onDecode(SkStream*, SkBitmap*, SkImageDecoder::Mode)+194)
      #13 pc 000eb0e1 /system/lib/libskia.so (SkImageDecoder::decode(SkStream*, SkBitmap*, SkBitmap::Config, SkImageDecoder::Mode)+36)
      #14 pc 00075201 /system/lib/libandroid_runtime.so
      #15 pc 00075375 /system/lib/libandroid_runtime.so
      #16 pc 0001dbcc /system/lib/libdvm.so (dvmPlatformInvoke+112)
      #17 pc 0004e123 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
      #18 pc 00026fe0 /system/lib/libdvm.so
      #19 pc 0002dfa0 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
      #20 pc 0002b638 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
      #21 pc 00060865 /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+392)
      #22 pc 000687c7 /system/lib/libdvm.so
      #23 pc 00026fe0 /system/lib/libdvm.so
      #24 pc 0002dfa0 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
      #25 pc 0002b638 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
      #26 pc 00060581 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+336)
      #27 pc 00049d0b /system/lib/libdvm.so
      #28 pc 0004cde7 /system/lib/libandroid_runtime.so
      #29 pc 0004db0b /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+354)
      #30 pc 0000105b /system/bin/app_process
      #31 pc 0000e403 /system/lib/libc.so (__libc_init+50)
      at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
      at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:587)
      at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:422)
      at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:445)
      at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:475)
      at com.tsl.touch.navigator.MainActivity.animation(MainActivity.java:379)
      at com.tsl.touch.navigator.MainActivity.showAnimation(MainActivity.java:448)
      at com.tsl.touch.navigator.MainActivity.parseDataAndPresent(MainActivity.java:653)
      at com.tsl.touch.navigator.MainActivity.access$800(MainActivity.java:61)
      at com.tsl.touch.navigator.MainActivity$NaviEventRunnable.run(MainActivity.java:1022)
      at android.os.Handler.handleCallback(Handler.java:733)
      at android.os.Handler.dispatchMessage(Handler.java:95)
      at android.os.Looper.loop(Looper.java:136)
      at android.app.ActivityThread.main(ActivityThread.java:5017)
      at java.lang.reflect.Method.invokeNative(Native Method)
      at java.lang.reflect.Method.invoke(Method.java:515)
      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
      at dalvik.system.NativeStart.main(Native Method)


      I want to know what clue can be drawn from these traces, and I wanna know the potential solution to solve the crash/freeze.



      My coder-sense tells me it has something to do with memory management, more specifically, the system failed to allocate memory for the bitmap decoding, it seems.



      Please help?







      java android android-anr-dialog






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 26 at 2:08









      AsianRyanReynoldsAsianRyanReynolds

      256 bronze badges




      256 bronze badges






















          0






          active

          oldest

          votes










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55348859%2fwhat-may-have-caused-my-code-to-freeze-app-runs-on-a-customized-samsung-build%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes




          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55348859%2fwhat-may-have-caused-my-code-to-freeze-app-runs-on-a-customized-samsung-build%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript