Shared libraries give problems after upgrading ndk-14 - android

I'm working on project, and integrated card.io and tess-two libraries. I have already owned these libraries, and use for reading national ID and other ID cards. Before upgrading to ndk-14, everything worked well. But after upgrade, i got lots of problems. I downgraded to ndk-13, but yet have these errors. Here are my logs:
04-06 14:22:41.997 3075-3075/com.javadbadirkhanly.newcardscannerproject A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 3075 (dscannerproject)
[ 04-06 14:22:42.000 375: 375 W/ ]
debuggerd: handling request: pid=3075 uid=10125 gid=10125 tid=3075
04-06 14:22:42.099 3236-3236/? A/DEBUG: pid: 3075, tid: 3075, name: dscannerproject >>> com.javadbadirkhanly.newcardscannerproject <<<
04-06 14:22:42.169 3236-3236/? A/DEBUG: #04 pc 0000000000139a60 /data/app/com.javadbadirkhanly.newcardscannerproject-1/lib/arm64/libtess.so (_ZNK7ERRCODE5errorEPKc16TessErrorLogCodeS1_z+360)
04-06 14:22:42.169 3236-3236/? A/DEBUG: #05 pc 0000000000148b90 /data/app/com.javadbadirkhanly.newcardscannerproject-1/lib/arm64/libtess.so (_ZN9tesseract8Classify22InitAdaptiveClassifierEb+252)
04-06 14:22:42.169 3236-3236/? A/DEBUG: #06 pc 0000000000233364 /data/app/com.javadbadirkhanly.newcardscannerproject-1/lib/arm64/libtess.so (_ZN9tesseract7Wordrec14program_editupEPKcbb+56)
04-06 14:22:42.169 3236-3236/? A/DEBUG: #07 pc 00000000000f0bfc /data/app/com.javadbadirkhanly.newcardscannerproject-1/lib/arm64/libtess.so (_ZN9tesseract9Tesseract23init_tesseract_internalEPKcS2_S2_NS_13OcrEngineModeEPPciPK13GenericVectorI6STRINGESA_b+268)
04-06 14:22:42.169 3236-3236/? A/DEBUG: #08 pc 00000000000f06bc /data/app/com.javadbadirkhanly.newcardscannerproject-1/lib/arm64/libtess.so (_ZN9tesseract9Tesseract14init_tesseractEPKcS2_S2_NS_13OcrEngineModeEPPciPK13GenericVectorI6STRINGESA_b+392)
04-06 14:22:42.169 3236-3236/? A/DEBUG: #09 pc 00000000000a1788 /data/app/com.javadbadirkhanly.newcardscannerproject-1/lib/arm64/libtess.so (_ZN9tesseract11TessBaseAPI4InitEPKcS2_NS_13OcrEngineModeEPPciPK13GenericVectorI6STRINGESA_b+288)
04-06 14:22:42.169 3236-3236/? A/DEBUG: #10 pc 000000000001f37c /data/app/com.javadbadirkhanly.newcardscannerproject-1/lib/arm64/libcardioRecognizer_tegra2.so (Java_com_javadbadirkhanly_newcardscannerproject_hardware_CardScanner_nSetup+104)
04-06 14:22:43.255 4939-3258/? W/ActivityManager: Force finishing activity com.javadbadirkhanly.newcardscannerproject/.activities.CardIOActivity
[ 04-06 14:22:43.276 375: 375 W/ ]
debuggerd: resuming target 3075
04-06 14:22:43.284 4939-19110/? I/WindowManager: WIN DEATH: Window{63d7429 u0 com.javadbadirkhanly.newcardscannerproject/com.javadbadirkhanly.newcardscannerproject.activities.CardIOActivity}
04-06 14:22:43.285 4939-4958/? I/ActivityManager: Process com.javadbadirkhanly.newcardscannerproject (pid 3075) has died
04-06 14:22:43.285 4939-4958/? W/ActivityManager: Scheduling restart of crashed service com.javadbadirkhanly.newcardscannerproject/com.android.tools.fd.runtime.InstantRunService in 1000ms
04-06 14:22:43.286 4939-6710/? W/InputDispatcher: channel '7e4664e com.javadbadirkhanly.newcardscannerproject/com.javadbadirkhanly.newcardscannerproject.activities.MainActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
04-06 14:22:43.286 4939-6710/? E/InputDispatcher: channel '7e4664e com.javadbadirkhanly.newcardscannerproject/com.javadbadirkhanly.newcardscannerproject.activities.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
04-06 14:22:43.292 4939-21535/? I/WindowManager: WIN DEATH: Window{7e4664e u0 com.javadbadirkhanly.newcardscannerproject/com.javadbadirkhanly.newcardscannerproject.activities.MainActivity}
04-06 14:22:43.292 4939-21535/? W/InputDispatcher: Attempted to unregister already unregistered input channel '7e4664e com.javadbadirkhanly.newcardscannerproject/com.javadbadirkhanly.newcardscannerproject.activities.MainActivity (server)'
04-06 14:22:43.305 4939-4958/? I/ActivityManager: Start proc 3261:com.javadbadirkhanly.newcardscannerproject/u0a125 for activity com.javadbadirkhanly.newcardscannerproject/.activities.MainActivity
04-06 14:22:43.611 3261-3261/? I/InstantRun: Starting Instant Run Server for com.javadbadirkhanly.newcardscannerproject
04-06 14:22:43.815 4939-4996/? I/ActivityManager: Displayed com.javadbadirkhanly.newcardscannerproject/.activities.MainActivity: +523ms
04-06 14:24:38.638 4939-3258/? W/ActivityManager: Ignoring remove of inactive process: ProcessRecord{fad747e 0:com.javadbadirkhanly.newcardscannerproject/u0a125}
The problem about libtess.so library, but i don't know why? Please help me, and ask for more details.
Here is my some essential codes from jni:
Initialize:
int res = api->Init(env->GetStringUTFChars(dataPath, 0), "aze");
if (res) {
dmz_error_log("Could not initialize tesseract");
} else {
dmz_debug_log("Initialized tesseract");
}
Getting image from card:
char *getCardNumberImage(cv::Mat cardImage) {
cv::Rect cropRect(kCreditCardTargetWidth * 76 / mmCardWidth,
kCreditCardTargetHeight * 14 / mmCardHeight,
kCreditCardTargetWidth * 24 / mmCardWidth,
kCreditCardTargetHeight * 4 / mmCardHeight);
api->SetVariable("tessedit_char_whitelist",
"0123456789");
return getOCRText(cardImage(cropRect));
}
Getting result from tesseract:
char *getOCRText(cv::Mat image) {
api->SetImage((uchar *) image.data, image.size().width, image.size().height,
image.channels(), image.step1());
// Get OCR result
char *outText = api->GetUTF8Text();
dmz_debug_log("TEXT %s", outText);
return outText;
}
I When i use training data which trained with 3.05 it works well, but when i use data which trained with 4.00 it gives me such errors. My tesseract version is 4.00 Alpha.

Related

VideoView and ViewPager 1 'Can't play this video' Error (Decoder Issue?)

I'm experiencing a 'Can't Play this Video' pop-up error when using the ViewPager 1 with VideoView. The popup message only happens when the user waits about an hour and a half and then navigates away to another video page that's adjacent to it. Looking at the logs, there seems to be a native crash with 'OMX.google.h264.decoder'. I'd like to figure out the root cause of this since I've recently migrated to ViewPager 2 and the issue seems to be fixed (not sure why). I'm using SDK version 25 with a custom ROM (if it matters). Also, I haven't been able to reproduce this issue on an emulator.
Steps to Reproduce:
Navigate to a video page that has an adjacent video page
Wait an hour and a half
Navigate to the adjacent video page
Expected Result:
Can't play this video error doesn't appear
Actual Result:
Can't play this video error appears
01-02 17:55:40.320 511 574 E SoundPool: Error creating AudioTrack
01-02 17:55:40.638 251 685 D NuPlayerDriver: pause(0xb060c060)
01-02 17:55:40.638 251 685 D NuPlayerDriver: notifyListener_l(0xb060c060), (7, 0, 0), loop setting(0, 0)
01-02 17:55:40.639 251 251 D NuPlayerDriver: seekTo(0xb060c060) 0 ms at state 6
01-02 17:55:40.639 251 251 D NuPlayerDriver: notifyListener_l(0xb060c060), (7, 0, 0), loop setting(0, 0)
01-02 17:55:40.642 251 296 D NuPlayerDriver: start(0xb1e2ac00), state is 6, eos is 0
01-02 17:55:40.649 251 2163 D NuPlayerDriver: notifyListener_l(0xb1e2ac00), (6, 0, 0), loop setting(0, 0)
01-02 17:55:40.652 248 2169 F libc : Fatal signal 6 (SIGABRT), code -6 in tid 2169 (le.h264.decoder)
01-02 17:55:40.653 222 222 W : debuggerd: handling request: pid=248 uid=1046 gid=1006 tid=2169
01-02 17:55:40.707 1964 1975 I art : Background sticky concurrent mark sweep GC freed 53604(4MB) AllocSpace objects, 37(740KB) LOS objects, 26% free, 11MB/16MB, paused 1.070ms total 160.419ms
01-02 17:55:40.748 17200 17200 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-02 17:55:40.750 17200 17200 F DEBUG : Build fingerprint: 'Android/pico_7d/pico_7d:7.1.2/dev-keys'
01-02 17:55:40.750 17200 17200 F DEBUG : Revision: '0'
01-02 17:55:40.750 17200 17200 F DEBUG : ABI: 'arm'
01-02 17:55:40.750 17200 17200 F DEBUG : pid: 248, tid: 2169, name: le.h264.decoder >>> media.codec <<<
01-02 17:55:40.750 17200 17200 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
01-02 17:55:40.751 17200 17200 F DEBUG : r0 00000000 r1 00000879 r2 00000006 r3 00000008
01-02 17:55:40.751 17200 17200 F DEBUG : r4 aa2ef978 r5 00000006 r6 aa2ef920 r7 0000010c
01-02 17:55:40.751 17200 17200 F DEBUG : r8 aacadbe0 r9 000f4240 sl aaa140a0 fp aaa6e0d0
01-02 17:55:40.751 17200 17200 F DEBUG : ip 00000016 sp aa2ef4b8 lr ab2de257 pc ab2e0ab4 cpsr 200f0010
01-02 17:55:40.796 17200 17200 F DEBUG :
01-02 17:55:40.796 17200 17200 F DEBUG : backtrace:
01-02 17:55:40.797 17200 17200 F DEBUG : #00 pc 00049ab4 /system/lib/libc.so (tgkill+12)
01-02 17:55:40.797 17200 17200 F DEBUG : #01 pc 00047253 /system/lib/libc.so (pthread_kill+34)
01-02 17:55:40.797 17200 17200 F DEBUG : #02 pc 0001d525 /system/lib/libc.so (raise+10)
01-02 17:55:40.797 17200 17200 F DEBUG : #03 pc 00019071 /system/lib/libc.so (__libc_android_abort+34)
01-02 17:55:40.797 17200 17200 F DEBUG : #04 pc 00017034 /system/lib/libc.so (abort+4)
01-02 17:55:40.797 17200 17200 F DEBUG : #05 pc 0000b50b /system/lib/libstagefright_soft_avcdec.so (_ZN7android7SoftAVC13onQueueFilledEj+1334)
01-02 17:55:40.797 17200 17200 F DEBUG : #06 pc 00023175 /system/lib/libstagefright_omx.so (_ZN7android22SimpleSoftOMXComponent17onMessageReceivedERKNS_2spINS_8AMessageEEE+272)
01-02 17:55:40.797 17200 17200 F DEBUG : #07 pc 000241ad /system/lib/libstagefright_omx.so
01-02 17:55:40.797 17200 17200 F DEBUG : #08 pc 0000f505 /system/lib/libstagefright_foundation.so (_ZN7android8AHandler14deliverMessageERKNS_2spINS_8AMessageEEE+24)
01-02 17:55:40.797 17200 17200 F DEBUG : #09 pc 00011795 /system/lib/libstagefright_foundation.so (_ZN7android8AMessage7deliverEv+60)
01-02 17:55:40.798 17200 17200 F DEBUG : #10 pc 0001006d /system/lib/libstagefright_foundation.so (_ZN7android7ALooper4loopEv+380)
01-02 17:55:40.798 17200 17200 F DEBUG : #11 pc 0000e3c1 /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+264)
01-02 17:55:40.798 17200 17200 F DEBUG : #12 pc 00046d23 /system/lib/libc.so (_ZL15__pthread_startPv+22)
01-02 17:55:40.798 17200 17200 F DEBUG : #13 pc 00019abd /system/lib/libc.so (__start_thread+6)
01-02 17:55:41.120 511 604 W NativeCrashListener: Couldn't find ProcessRecord for pid 248
01-02 17:55:41.121 17200 17200 E : debuggerd: failed to kill process 248: No such process
01-02 17:55:41.124 511 529 I BootReceiver: Copying /data/tombstones/tombstone_07 to DropBox (SYSTEM_TOMBSTONE)
01-02 17:55:41.137 222 222 W : debuggerd: resuming target 248
01-02 17:55:41.194 251 2168 E ACodec : OMX/mediaserver died, signalling error!
01-02 17:55:41.194 251 2168 E ACodec : signalError(omxError 0x8000100d, internalError -32)
01-02 17:55:41.194 251 2214 E ACodec : OMX/mediaserver died, signalling error!
01-02 17:55:41.194 251 2214 E ACodec : signalError(omxError 0x8000100d, internalError -32)
01-02 17:55:41.196 1964 1977 E MediaPlayer: error (100, 2)
01-02 17:55:41.196 1964 1964 E MediaPlayer: Error (100,2)
01-02 17:55:41.196 1964 1964 D VideoView: Error: 100,2
01-02 17:55:41.197 251 2167 E MediaCodec: Codec reported err 0xffffffe0, actionCode 0, while in state 6
01-02 17:55:41.197 251 2166 E NuPlayerDecoder: Decoder (video) reported error : 0xffffffe0
01-02 17:55:41.197 251 2213 E MediaCodec: Codec reported err 0xffffffe0, actionCode 0, while in state 7
01-02 17:55:41.197 251 2163 E NuPlayer: received error(0xffffffe0) from video decoder, flushing(0), now shutting down
01-02 17:55:41.197 251 2163 D NuPlayerDriver: notifyListener_l(0xb1e2ac00), (100, 1, -32), loop setting(0, 0)
01-02 17:55:41.207 1964 1976 E MediaPlayer: error (100, 2)
01-02 17:55:41.217 1964 1977 E MediaPlayer: error (1, -32)
01-02 17:55:41.218 251 2166 E NuPlayerDecoder: failed to flush OMX.google.h264.decoder (err=-38)
01-02 17:55:41.218 251 2163 E NuPlayer: received error(0xffffffda) from video decoder, flushing(2), now shutting down
01-02 17:55:41.218 251 2163 D NuPlayerDriver: notifyListener_l(0xb1e2ac00), (100, 1, -38), loop setting(0, 0)
01-02 17:55:41.225 251 2166 W AMessage: failed to post message as target looper for handler 0 is gone.
01-02 17:55:41.237 238 238 I ServiceManager: service 'media.codec' died
01-02 17:55:41.239 1964 1976 E MediaPlayer: error (1, -38)
01-02 17:55:41.258 1964 1964 E MediaPlayer: Error (100,2)
01-02 17:55:41.258 1964 1964 D VideoView: Error: 100,2
01-02 17:55:41.304 1964 1964 E MediaPlayer: Error (1,-32)
01-02 17:55:41.304 1964 1964 D VideoView: Error: 1,-32
01-02 17:55:41.351 1964 1964 E MediaPlayer: Error (1,-38)
01-02 17:55:41.351 1964 1964 D VideoView: Error: 1,-38
01-02 17:55:41.361 251 2212 E NuPlayerDecoder: failed to flush OMX.google.h264.decoder (err=-32)
01-02 17:55:41.361 251 2204 E NuPlayer: received error(0xffffffe0) from video decoder, flushing(1), now shutting down
01-02 17:55:41.361 251 2204 D NuPlayerDriver: notifyListener_l(0xb060c060), (100, 1, -32), loop setting(0, 0)
01-02 17:55:41.361 1964 1977 E MediaPlayer: error (1, -32)
01-02 17:55:41.367 251 2204 W AMessage: failed to post message as target looper for handler 0 is gone.
01-02 17:55:41.368 250 677 D FslExtractor: HandleSeekOperation do seek index=0
01-02 17:55:41.369 250 677 D FslExtractor: HandleSeekOperation index=0,ts=0,flag=2
01-02 17:55:41.371 251 2204 D NuPlayerDriver: notifyListener_l(0xb060c060), (4, 0, 0), loop setting(0, 0)
01-02 17:55:41.547 1964 1964 E MediaPlayer: Error (1,-32)
01-02 17:55:41.547 1964 1964 D VideoView: Error: 1,-32
01-02 17:55:41.587 17205 17205 I mediacodec: ### mediacodecservice starting
01-02 17:55:41.587 17205 17205 W /system/bin/mediacodec: libminijail: allowing syscall: clock_gettime
01-02 17:55:41.587 17205 17205 W /system/bin/mediacodec: libminijail: allowing syscall: connect
01-02 17:55:41.587 17205 17205 W /system/bin/mediacodec: libminijail: allowing syscall: fcntl64
01-02 17:55:41.587 17205 17205 W /system/bin/mediacodec: libminijail: allowing syscall: socket
01-02 17:55:41.588 17205 17205 W /system/bin/mediacodec: libminijail: allowing syscall: writev
01-02 17:55:41.588 17205 17205 W /system/bin/mediacodec: libminijail: logging seccomp filter failures
01-02 17:55:46.147 1964 2000 I nativePoll: Call timed out and no file descriptors were ready for GPIO
01-02 17:55:49.343 582 589 I art : Debugger is no longer active
01-02 17:55:49.344 582 589 I art : Starting a blocking GC Instrumentation
01-02 17:55:49.344 1964 1971 I art : Debugger is no longer active
01-02 17:55:49.344 1964 1971 I art : Starting a blocking GC Instrumentation
01-02 17:55:49.344 781 789 I art : Debugger is no longer active
01-02 17:55:49.344 897 904 I art : Debugger is no longer active
01-02 17:55:49.344 897 904 I art : Starting a blocking GC Instrumentation
01-02 17:55:49.344 781 789 I art : Starting a blocking GC Instrumentation
01-02 17:55:49.345 838 847 I art : Debugger is no longer active
01-02 17:55:49.345 511 517 I art : Debugger is no longer active
01-02 17:55:49.345 838 847 I art : Starting a blocking GC Instrumentation
01-02 17:55:49.345 511 517 I art : Starting a blocking GC Instrumentation
01-02 17:55:49.345 626 643 I art : Debugger is no longer active
01-02 17:55:49.345 626 643 I art : Starting a blocking GC Instrumentation
01-02 17:55:49.348 975 982 I art : Debugger is no longer active
01-02 17:55:49.348 975 982 I art : Starting a blocking GC Instrumentation
01-02 17:55:49.348 880 888 I art : Debugger is no longer active
01-02 17:55:49.348 880 888 I art : Starting a blocking GC Instrumentation
01-02 17:55:49.348 1136 1143 I art : Debugger is no longer active
01-02 17:55:49.348 1136 1143 I art : Starting a blocking GC Instrumentation
01-02 17:55:49.349 596 606 I art : Debugger is no longer active
01-02 17:55:49.349 596 606 I art : Starting a blocking GC Instrumentation
01-02 17:55:49.349 925 931 I art : Debugger is no longer active
01-02 17:55:49.349 925 931 I art : Starting a blocking GC Instrumentation
01-02 17:55:49.349 990 997 I art : Debugger is no longer active
01-02 17:55:49.349 990 997 I art : Starting a blocking GC Instrumentation
01-02 17:55:49.354 17126 17126 D StudioTransport: Profiler:Signal received 1
01-02 17:55:49.354 17126 17126 D StudioTransport: Profiler:TerminationService shutting down with signal 1
01-02 17:55:49.830 17210 17210 I getprop : type=1400 audit(0.0:690): avc: denied { open } for path="/dev/__properties__/u:object_r:safemode_prop:s0" dev="tmpfs" ino=6854 scontext=u:r:shell:s0 tcontext=u:object_r:safemode_prop:s0 tclass=file permissive=1
01-02 17:55:49.850 17210 17210 I getprop : type=1400 audit(0.0:691): avc: denied { getattr } for path="/dev/__properties__/u:object_r:safemode_prop:s0" dev="tmpfs" ino=6854 scontext=u:r:shell:s0 tcontext=u:object_r:safemode_prop:s0 tclass=file permissive=1
01-02 17:55:49.850 17210 17210 I getprop : type=1400 audit(0.0:692): avc: denied { open } for path="/dev/__properties__/u:object_r:mmc_prop:s0" dev="tmpfs" ino=6855 scontext=u:r:shell:s0 tcontext=u:object_r:mmc_prop:s0 tclass=file permissive=1
01-02 17:55:49.850 17210 17210 I getprop : type=1400 audit(0.0:693): avc: denied { getattr } for path="/dev/__properties__/u:object_r:mmc_prop:s0" dev="tmpfs" ino=6855 scontext=u:r:shell:s0 tcontext=u:object_r:mmc_prop:s0 tclass=file permissive=1
01-02 17:55:49.850 17210 17210 I getprop : type=1400 audit(0.0:694): avc: denied { open } for path="/dev/__properties__/u:object_r:device_logging_prop:s0" dev="tmpfs" ino=6857 scontext=u:r:shell:s0 tcontext=u:object_r:device_logging_prop:s0 tclass=file permissive=1
01-02 17:55:49.850 17210 17210 I getprop : type=1400 audit(0.0:695): avc: denied { getattr } for path="/dev/__properties__/u:object_r:device_logging_prop:s0" dev="tmpfs" ino=6857 scontext=u:r:shell:s0 tcontext=u:object_r:device_logging_prop:s0 tclass=file permissive=1
01-02 17:55:51.290 17267 17267 V StudioTransport: Server listening on 127.0.0.1:12389 port:12389
01-02 17:55:56.157 1964 2000 I nativePoll: Call timed out and no file descriptors were ready for GPIO
01-02 17:56:06.167 1964 2000 I nativePoll: Call timed out and no file descriptors were ready for GPIO
01-02 17:56:15.070 1964 1996 I BatteryMonitor: Battery voltage (V) current (mA), 4.5757, 522
01-02 17:56:15.073 1964 1981 I TemperatureLogger: Unit temperature (deg C), 71.00
01-02 17:56:16.177 1964 2000 I nativePoll: Call timed out and no file descriptors were ready for GPIO
01-02 17:56:26.187 1964 2000 I nativePoll: Call timed out and no file descriptors were ready for GPIO
01-02 17:56:36.197 1964 2000 I nativePoll: Call timed out and no file descriptors were ready for GPIO
01-02 17:56:46.206 1964 2000 I nativePoll: Call timed out and no file descriptors were ready for GPIO

Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 16163 , how to fix this?

The issue I'm having is that, the application I'm developing is running till Lollipop version and now when I trying to run an application on Marshmallow my application is getting crash and the log I getting are as follow :
05-12 11:22:34.402 848-978/system_process I/ActivityManager: START u0
{act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]
flg=0x10200000 cmp=com.aceroute.mobile.aceroute/.SplashII (has
extras)} from uid 10008 on display 0 05-12 11:22:34.443 16163-16163/?
I/art: Late-enabling -Xcheck:jni 0
5-12 11:22:34.449
848-860/system_process I/ActivityManager: Start proc
16163:com.aceroute.mobile.aceroute/u0a83 for activity
com.aceroute.mobile.aceroute/.SplashII 05-12 11:22:34.455 505-876/?
D/AudioFlinger: mixer(0xf1d80000) throttle end: throttle time(8) 05-12
11:22:34.482 16163-16168/? I/art: Debugger is no longer active 05-12
11:22:34.513 16163-16163/? A/libc: Fatal signal 11 (SIGSEGV), code 1,
fault addr 0x0 in tid 16163 (mobile.aceroute) 05-12 11:22:34.614
104-104/? A/DEBUG: *
05-12 11:22:34.614 104-104/? A/DEBUG: Build fingerprint: 'Android/vbox86p/vbox86p:6.0/MRA58K/buildbot01102000:userdebug/test-keys'
05-12 11:22:34.614 104-104/? A/DEBUG: Revision: '0' 05-12 11:22:34.614
104-104/? A/DEBUG: ABI: 'x86' 05-12 11:22:34.614 104-104/? A/DEBUG:
pid: 16163, tid: 16163, name: mobile.aceroute >>>
com.aceroute.mobile.aceroute <<< 05-12 11:22:34.614 104-104/? A/DEBUG:
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 05-12
11:22:34.621 104-104/? A/DEBUG: eax 00000000 ebx f77469c0 ecx
00000000 edx 00000000 05-12 11:22:34.621 104-104/? A/DEBUG: esi
f3e19a80 edi 00000000 05-12 11:22:34.621 104-104/? A/DEBUG: xcs
00000023 xds 0000002b xes 0000002b xfs 00000007 xss 0000002b 05-12
11:22:34.621 104-104/? A/DEBUG: eip f732c442 ebp 12c6f280 esp
fff7f21c flags 00210283 05-12 11:22:34.629 104-104/? A/DEBUG: #00
pc 0001e442 /system/lib/libc.so (strlen+18) 05-12 11:22:34.630
104-104/? A/DEBUG: #01 pc 0001322b /system/lib/libutils.so
(android::String16::String16(char const)+29) 05-12 11:22:34.630
104-104/? A/DEBUG: #02 pc 0004172d /system/lib/libmedia_jni.so
05-12 11:22:34.630 104-104/? A/DEBUG: #03 pc 720eff30
/data/dalvik-cache/x86/system#framework#boot.oat (offset 0x1eb9000)
05-12 11:22:34.637 1116-1345/com.android.launcher3 E/Surface:
getSlotFromBufferLocked: unknown buffer: 0xdec7bcd0 05-12 11:22:34.742
104-104/? E/DEBUG: AM write failed: Broken pipe 05-12 11:22:34.742
848-865/system_process I/BootReceiver: Copying
/data/tombstones/tombstone_04 to DropBox (SYSTEM_TOMBSTONE) 05-12
11:22:34.757 848-16180/system_process W/ActivityManager: Force
finishing activity com.aceroute.mobile.aceroute/.SplashII 05-12
11:22:34.780 503-503/? I/Zygote: Process 16163 exited due to signal
(11) 05-12 11:22:34.783 826-826/? E/EGL_emulation: tid 826:
eglCreateSyncKHR(1215): error 0x3004 (EGL_BAD_ATTRIBUTE) 05-12
11:22:34.898 848-16180/system_process W/ActivityManager: Exception
thrown during pause
android.os.DeadObjectException
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:503)
at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:727)
at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:867)
at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:2907)
at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:2763)
at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:2755)
at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:11971)
at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:11867)
at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:12556)
at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:12063)
at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
05-12 11:22:34.941 848-1160/system_process I/ActivityManager: Process
com.aceroute.mobile.aceroute (pid 16163) has died 05-12 11:22:34.992
848-867/system_process W/WindowManager: Failed looking up window
java.lang.IllegalArgumentException: Requested window
android.view.ViewRootImpl$W#bbc7de0 does not exist
at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8733)
at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8724)
at com.android.server.wm.WindowManagerService.removeWindow(WindowManagerService.java:2697)
at com.android.server.wm.Session.remove(Session.java:187)
at android.view.ViewRootImpl.dispatchDetachedFromWindow(ViewRootImpl.java:3099)
at android.view.ViewRootImpl.doDie(ViewRootImpl.java:5606)
at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:3409)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.os.HandlerThread.run(HandlerThread.java:61)
at com.android.server.ServiceThread.run(ServiceThread.java:46) 05-12
11:22:35.035 848-1719/system_process I/OpenGLRenderer: Initialized
EGL, version 1.4 05-12 11:22:35.041 1116-1345/com.android.launcher3
W/EGL_emulation: eglSurfaceAttrib not implemented 05-12 11:22:35.041
1116-1345/com.android.launcher3 W/OpenGLRenderer: Failed to set
EGL_SWAP_BEHAVIOR on surface 0xe06b6dc0, error=EGL_SUCCESS 05-12
11:22:35.103 848-1719/system_process W/EGL_emulation: eglSurfaceAttrib
not implemented 05-12 11:22:35.103 848-1719/system_process
W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface
0xd972c800, error=EGL_SUCCESS 05-12 11:22:37.435
848-1719/system_process E/Surface: getSlotFromBufferLocked: unknown
buffer: 0xf2cf5c60 05-12 11:22:37.437 848-1719/system_process
D/OpenGLRenderer: endAllStagingAnimators on 0xdeed2280
(RippleDrawable) with handle 0xdbb22df0 05-12 11:22:37.441
848-1160/system_process W/InputMethodManagerService: Window already
focused, ignoring focus gain of:
com.android.internal.view.IInputMethodClient$Stub$Proxy#c3b1c3c
attribute=null, token = android.os.BinderProxy#5926644 05-12
11:22:37.475 505-876/? D/AudioFlinger: mixer(0xf1d80000) throttle end:
throttle time(15) 05-12 11:22:37.689 848-867/system_process W/AppOps:
Finishing op nesting under-run: uid 1000 pkg android code 24 time=0
duration=0 nesting=0 05-12 11:23:02.221 100-100/? D/Genyd: Received
Set Clipboard 05-12 11:23:02.221 100-100/? D/Genymotion: Received Set
Some reference I have got are :
Android Fatal signal 11 (SIGSEGV) at 0x636f7d89 (code=1). How can it be tracked down?
Please have a look and help me.

What process should be used to compress SKMaps.zip file for use in Skobbler powered app?

I'm currently using the Skobbler SDK in an Android app to handle mapping and turn-by-turn direction tasks. One issue that came up was the desire to change to frequency at which audio advice is issued from the SDK so that we don't have too many instructions being fired off one after the other.
I found this answer to another question which explains the need to modify an advice_places.adv file which I was able to find within the SDK provided SKMaps.zip file.
The issue I'm experiencing seems to be related to how I re-archive the zip file once I've finished making changes to the advice_places.adv file. I'm working on a Mac and it seems that regardless of if I use the built-in "Compress..." context menu option or if I perform a zip operation via the command line similar to:
zip -vr SKMaps.zip SKMaps/ -x "*.DS_Store"; chmod +x SKMaps.zip
I still can't seem to load my app without it crashing during the Skobbler SDK map initialization process.
I've narrowed down the issue to it being a zip/unzip related issue since I can recreate the crash even if I don't modify any of the contents of the SKMaps.zip but only unzip and then rezip.
Here is a dump of the logs that I see when my app crashes.
SKMaps D SKMapViewHolder----#onResume
D SKMapSurfaceView----#onResume
D SKMapSurfaceView----#onResume preserve GL context is TRUE
WindowManager V Adding window Window{278f3a43 u0 com.company.mymapapp/com.company.mymapapp.activities.MainActivity} at 23 of 32 (before Window{246caca8 u0 SurfaceView})
V Adding window Window{1b0d49f9 u0 SurfaceView} at 23 of 33 (before Window{278f3a43 u0 com.company.mymapapp/com.company.mymapapp.activities.MainActivity})
SKMaps D MapRenderer----#onSurfaceCreated
D MapRenderer----#onSurfaceCreated LinInitialized = true
D MapRenderer---- #initGLView
SkobblerNG D set density JNI - before NG_SetScreenScale
D set density JNI - after NG_SetScreenScale
libc F Fatal signal 11 (SIGSEGV), code 1, fault addr 0x4 in tid 24828 (GLThread 44711)
btif_config_util D btif_config_save_file(L188): in file name:/data/misc/bluedroid/bt_config.new
DEBUG I *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I Build fingerprint: 'google/shamu/shamu:5.1/LMY47I/1767468:user/release-keys'
I Revision: '33696'
I ABI: 'arm'
I pid: 24493, tid: 24828, name: GLThread 44711 >>> com.company.mymapapp <<<
I signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x4
I r0 00000001 r1 00000000 r2 00000001 r3 00000029
I r4 a0edfcd0 r5 00000000 r6 a0edfc00 r7 a044a9b0
I r8 00000000 r9 a044a9d8 sl 00000001 fp 13250820
I ip 80000000 sp a044a978 lr 9e8d5efd pc 9e8d5f22 cpsr 600f0030
I backtrace:
I #00 pc 0018ef22 /data/app/com.company.mymapapp-1/lib/arm/libngnative.so (EarthSphere::SetupTextureInBufferFromTex(SK_WTEXTURE_ID&)+113)
I #01 pc 0018ff23 /data/app/com.company.mymapapp-1/lib/arm/libngnative.so (EarthSphere::Init(unsigned int, unsigned int)+190)
I #02 pc 0011dc7d /data/app/com.company.mymapapp-1/lib/arm/libngnative.so (MapRenderer::InitializeGlobeAndWorldTextures()+116)
I #03 pc 000fe1bd /data/app/com.company.mymapapp-1/lib/arm/libngnative.so (NG_InitializeGL+52)
I #04 pc 000e7fcf /data/app/com.company.mymapapp-1/lib/arm/libngnative.so (Java_com_skobbler_ngx_map_MapRenderer_initgl+14)
I #05 pc 0064b963 /data/dalvik-cache/arm/data#app#com.company.mymapapp-1#base.apk#classes.dex
I Tombstone written to: /data/tombstones/tombstone_07
ActivityManager W Force finishing activity 1 com.company.mymapapp/.activities.MainActivity
BootReceiver I Copying /data/tombstones/tombstone_07 to DropBox (SYSTEM_TOMBSTONE)
JavaBinder E !!! FAILED BINDER TRANSACTION !!!
WindowState I WIN DEATH: Window{23adbb9a u0 SurfaceView}
NetlinkEvent E NetlinkEvent::FindParam(): Parameter 'INTERFACE' not found
E NetlinkEvent::FindParam(): Parameter 'TIME_NS' not found
NetdConnector E Error handling '613 IfaceClass active (null)': java.lang.NumberFormatException: Invalid int: "(null)"
WindowState I WIN DEATH: Window{246caca8 u0 SurfaceView}
I WIN DEATH: Window{259e40bc u0 com.company.mymapapp/com.company.mymapapp.activities.IntroActivity}
I WIN DEATH: Window{278f3a43 u0 com.company.mymapapp/com.company.mymapapp.activities.MainActivity}
I WIN DEATH: Window{1b0d49f9 u0 SurfaceView}
Zygote I Process 24493 exited due to signal (11)
ActivityManager W Exception thrown during pause
W android.os.TransactionTooLargeException
W at android.os.BinderProxy.transactNative(Native Method)
W at android.os.BinderProxy.transact(Binder.java:496)
W at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:704)
W at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:825)
W at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:2726)
W at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:2583)
W at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:2497)
W at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:11500)
W at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:11397)
W at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:12081)
W at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:11592)
W at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
lowmemorykiller E Error opening /proc/24493/oom_score_adj; errno=2
Process com.company.mymapapp (PID: 24493) ended
If anyone has any information as to the preferred method of generating a zip file on a Mac for use with the Skobbler SDK in this fashion, I would appreciate any guidance.
Thank you!
Keith
I've had the same issue (I did the zipping/unzipping manually) - I did not get to the bottom of the problem but the trick is not to zip the SkMaps folder (that you get when unzipping) but the content of that folder (all the subfolders) in an archive named SkMaps.zip (go in the unpacked folder, SKMaps, select all the folder and compress them to an SKMaps.zip.
I'm not sure if this is Mac specific or zip specific. The SDK expects that when unzipping SKMaps.zip it will find a number of folders, but when you compress the SKMaps folder directly you end up with an archive that has as root folder a folder named SkMaps (which is wrong) and only inside that folder the correct folder structure.

App crashes when trying to use JavaMail for Android

I'm trying to use the JavaMail Android port in my application but my app crashes when I try to send anything. I've followed the guide here and created the Mailclass. Then in my MainActivity I've added
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Mail m = new Mail("mailtosendfrom", "mypassword");
new SendMailTask().execute(m);
}
private class SendMailTask extends AsyncTask<Mail, Void, Void> {
#Override
protected Void doInBackground(Mail... mail) {
Mail m = mail[0];
String[] toArr = {"mailtosendto"};
m.setTo(toArr);
m.setFrom("mailtosendfrom");
m.setSubject("This is an email sent using my Mail JavaMail wrapper from an Android device.");
m.setBody("Email body.");
try {
m.send();
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
}
AndroidManifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="mypackage" >
<uses-permission android:name="android.permission.INTERNET" />
<application ...>
...
</application>
</manifest>
Now when I start my app it crashes immediately with the following message in logcat:
04-19 18:37:58.540 4547-4547/? D/AndroidRuntime﹕ >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
04-19 18:37:58.540 4547-4547/? D/AndroidRuntime﹕ CheckJNI is ON
04-19 18:37:58.570 4547-4547/? E/memtrack﹕ Couldn't load memtrack module (No such file or directory)
04-19 18:37:58.570 4547-4547/? E/android.os.Debug﹕ failed to load memtrack module: -2
04-19 18:37:58.590 4547-4547/? D/AndroidRuntime﹕ Calling main entry com.android.commands.am.Am
--------- beginning of system
04-19 18:37:58.590 1313-1823/system_process I/ActivityManager﹕ Force stopping com.oskar.ratingapp appid=10046 user=0: from pid 4547
04-19 18:37:58.600 4547-4547/? D/AndroidRuntime﹕ Shutting down VM
04-19 18:37:58.600 4547-4550/? I/art﹕ Debugger is no longer active
04-19 18:37:58.600 4547-4556/? E/art﹕ Thread attaching while runtime is shutting down: Binder_1
04-19 18:37:58.600 4547-4556/? I/AndroidRuntime﹕ NOTE: attach of thread 'Binder_1' failed
04-19 18:37:58.990 4559-4559/? D/AndroidRuntime﹕ >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
04-19 18:37:58.990 4559-4559/? D/AndroidRuntime﹕ CheckJNI is ON
04-19 18:37:59.030 4559-4559/? E/memtrack﹕ Couldn't load memtrack module (No such file or directory)
04-19 18:37:59.030 4559-4559/? E/android.os.Debug﹕ failed to load memtrack module: -2
04-19 18:37:59.050 4559-4559/? D/AndroidRuntime﹕ Calling main entry com.android.commands.am.Am
04-19 18:37:59.060 1313-1804/system_process I/ActivityManager﹕ START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.oskar.ratingapp/.MainActivity} from uid 0 on display 0
04-19 18:37:59.070 4559-4559/? D/AndroidRuntime﹕ Shutting down VM
04-19 18:37:59.080 1313-1330/system_process I/ActivityManager﹕ Start proc com.oskar.ratingapp for activity com.oskar.ratingapp/.MainActivity: pid=4569 uid=10046 gids={50046, 9997, 3003} abi=x86_64
04-19 18:37:59.080 4559-4561/? I/art﹕ Debugger is no longer active
04-19 18:37:59.080 4569-4569/? E/libprocessgroup﹕ failed to make and chown /acct/uid_10046: Read-only file system
04-19 18:37:59.080 4569-4569/? W/Zygote﹕ createProcessGroup failed, kernel missing CONFIG_CGROUP_CPUACCT?
04-19 18:37:59.080 4569-4569/? I/art﹕ Not late-enabling -Xcheck:jni (already on)
04-19 18:37:59.330 4569-4585/? D/OpenGLRenderer﹕ Render dirty regions requested: true
04-19 18:37:59.350 4569-4569/? D/﹕ HostConnection::get() New Host Connection established 0x7fb32fc8f280, tid 4569
04-19 18:37:59.370 4569-4569/? D/Atlas﹕ Validating map...
04-19 18:37:59.430 4569-4585/? D/﹕ HostConnection::get() New Host Connection established 0x7fb32fc8ff40, tid 4585
04-19 18:37:59.440 4569-4585/? I/OpenGLRenderer﹕ Initialized EGL, version 1.4
04-19 18:37:59.460 4569-4585/? D/OpenGLRenderer﹕ Enabling debug mode 0
04-19 18:37:59.480 4569-4585/? W/EGL_emulation﹕ eglSurfaceAttrib not implemented
04-19 18:37:59.480 4569-4585/? W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0x7fb32fc8ef00, error=EGL_SUCCESS
--------- beginning of crash
04-19 18:37:59.610 4569-4584/? A/libc﹕ Fatal signal 11 (SIGSEGV), code 1, fault addr 0x750000013f in tid 4584 (AsyncTask #1)
04-19 18:37:59.730 957-957/? I/DEBUG﹕ *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
04-19 18:37:59.730 957-957/? I/DEBUG﹕ Build fingerprint: 'generic_x86_64/sdk_phone_x86_64/generic_x86_64:5.0/LRX09D/1504858:eng/test-keys'
04-19 18:37:59.730 957-957/? I/DEBUG﹕ Revision: '0'
04-19 18:37:59.730 957-957/? I/DEBUG﹕ ABI: 'x86_64'
04-19 18:37:59.730 957-957/? I/DEBUG﹕ pid: 4569, tid: 4584, name: AsyncTask #1 >>> com.oskar.ratingapp <<<
04-19 18:37:59.730 957-957/? I/DEBUG﹕ signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x750000013f
04-19 18:37:59.730 957-957/? I/DEBUG﹕ rax 0000000000000000 rbx 000000750000008f rcx 0000000000000081 rdx 0000000000000001
04-19 18:37:59.730 957-957/? I/DEBUG﹕ rsi 000000000000001e rdi 00007fb33a7a72b0
04-19 18:37:59.730 957-957/? I/DEBUG﹕ r8 000000000000014a r9 0000000000000000 r10 00007fb33e64fe2c r11 00007fb3410b12c0
04-19 18:37:59.730 957-957/? I/DEBUG﹕ r12 00007fb32fc91380 r13 0000000000000001 r14 00007fb32fccf268 r15 00007fb32fccf380
04-19 18:37:59.730 957-957/? I/DEBUG﹕ cs 0000000000000033 ss 000000000000002b
04-19 18:37:59.730 957-957/? I/DEBUG﹕ rip 00007fb3411144d6 rbp 0000000000000000 rsp 00007fb32fbfeb30 eflags 0000000000010202
04-19 18:37:59.730 957-957/? I/DEBUG﹕ backtrace:
04-19 18:37:59.730 957-957/? I/DEBUG﹕ #00 pc 00000000000e34d6 /system/lib64/libcrypto.so (ENGINE_init+38)
04-19 18:37:59.730 957-957/? I/DEBUG﹕ #01 pc 00000000000eb435 /system/lib64/libcrypto.so (EVP_MD_CTX_copy_ex+37)
04-19 18:37:59.730 957-957/? I/DEBUG﹕ #02 pc 00000000000f8582 /system/lib64/libcrypto.so (HMAC_CTX_copy+66)
04-19 18:37:59.730 957-957/? I/DEBUG﹕ #03 pc 00000000000f7e32 /system/lib64/libcrypto.so
04-19 18:37:59.730 957-957/? I/DEBUG﹕ #04 pc 00000000000f698a /system/lib64/libcrypto.so (EVP_PKEY_CTX_dup+234)
04-19 18:37:59.730 957-957/? I/DEBUG﹕ #05 pc 00000000000eb52b /system/lib64/libcrypto.so (EVP_MD_CTX_copy_ex+283)
04-19 18:37:59.730 957-957/? I/DEBUG﹕ #06 pc 000000000004a9b3 /system/lib64/libssl.so (tls1_mac+195)
04-19 18:37:59.730 957-957/? I/DEBUG﹕ #07 pc 0000000000032456 /system/lib64/libssl.so
04-19 18:37:59.730 957-957/? I/DEBUG﹕ #08 pc 000000000003207e /system/lib64/libssl.so (ssl3_write_bytes+302)
04-19 18:37:59.730 957-957/? I/DEBUG﹕ #09 pc 00000000000261d0 /system/lib64/libssl.so (ssl3_do_write+32)
04-19 18:37:59.730 957-957/? I/DEBUG﹕ #10 pc 0000000000028ef1 /system/lib64/libssl.so (ssl3_connect+2353)
04-19 18:37:59.730 957-957/? I/DEBUG﹕ #11 pc 00000000000207d7 /system/lib64/libssl.so (ssl23_connect+3463)
04-19 18:37:59.730 957-957/? I/DEBUG﹕ #12 pc 00000000000186a2 /system/lib64/libjavacrypto.so
04-19 18:37:59.730 957-957/? I/DEBUG﹕ #13 pc 0000000000409ef1 /data/dalvik-cache/x86_64/system#framework#boot.oat
04-19 18:37:59.800 957-957/? I/DEBUG﹕ Tombstone written to: /data/tombstones/tombstone_01
04-19 18:37:59.840 1313-1399/system_process W/InputDispatcher﹕ channel '27028e74 com.oskar.ratingapp/com.oskar.ratingapp.MainActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
04-19 18:37:59.840 1313-1399/system_process E/InputDispatcher﹕ channel '27028e74 com.oskar.ratingapp/com.oskar.ratingapp.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
04-19 18:37:59.840 963-963/? I/Zygote﹕ Process 4569 exited due to signal (11)
04-19 18:37:59.940 1313-4593/system_process W/ActivityManager﹕ Force finishing activity com.oskar.ratingapp/.MainActivity
04-19 18:37:59.950 1313-1822/system_process I/WindowState﹕ WIN DEATH: Window{27028e74 u0 com.oskar.ratingapp/com.oskar.ratingapp.MainActivity}
04-19 18:37:59.950 1313-1822/system_process W/InputDispatcher﹕ Attempted to unregister already unregistered input channel '27028e74 com.oskar.ratingapp/com.oskar.ratingapp.MainActivity (server)'
04-19 18:37:59.950 1313-4593/system_process E/ActivityManager﹕ Invalid thumbnail dimensions: 360x360
04-19 18:37:59.950 1313-4593/system_process W/ActivityManager﹕ Exception thrown during pause
android.os.DeadObjectException
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:479)
at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:701)
at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:852)
at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:2754)
at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:2611)
at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:2448)
at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:11507)
at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:11404)
at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:12083)
at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:11599)
at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
04-19 18:37:59.950 946-946/? E/lowmemorykiller﹕ Error opening /proc/4569/oom_score_adj; errno=2
04-19 18:37:59.960 1313-1329/system_process I/ActivityManager﹕ Process com.oskar.ratingapp (pid 4569) has died
04-19 18:38:00.000 1313-2329/system_process I/OpenGLRenderer﹕ Initialized EGL, version 1.4
04-19 18:38:00.010 1903-1968/com.android.launcher W/EGL_emulation﹕ eglSurfaceAttrib not implemented
04-19 18:38:00.010 1903-1968/com.android.launcher W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0x7fb32dde2980, error=EGL_SUCCESS
04-19 18:38:00.010 1313-2329/system_process W/EGL_emulation﹕ eglSurfaceAttrib not implemented
04-19 18:38:00.010 1313-2329/system_process W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0x7fb328cf1780, error=EGL_SUCCESS
04-19 18:38:03.090 1313-1426/system_process D/TaskPersister﹕ removeObsoleteFile: deleting file=44_task.xml
04-19 18:38:03.200 1313-1414/system_process W/AudioTrack﹕ AUDIO_OUTPUT_FLAG_FAST denied by client
04-19 18:38:03.220 1313-1463/system_process W/InputMethodManagerService﹕ Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#12273a0d attribute=null, token = android.os.BinderProxy#133a0350
04-19 18:38:03.740 1903-1968/com.android.launcher W/OpenGLRenderer﹕ Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
complete shot in the dark. This has worked for me however.
try this
ExecutorService es = Executors.newCachedThreadPool();
es.execute(new Runnable() {
#Override
public void run() {
//Run Mail Here
}
});
es.shutdown();
//This part is so that you know when the ES has finished so that you can persay say success.
try {
boolean finshed = es.awaitTermination(1, TimeUnit.MINUTES);
} catch (InterruptedException e) {
e.printStackTrace();
}
I had an issue with AsyncTasks earlier. Hope it helps!
The code is not the problem, the emulator is.
I just tried this on a device instead of the emulator and it works flawlessly.

SIGABRT in __ioctl() while waiting for /dev/binder response

Pre-requisites: ARMv7 device, Android platform 4.2.2.
Time to time I get SIGABRT upon interaction with a system service (a really buggy one) over a binder. The stack trace is as follows:
#00 pc 000170ac /system/lib/libc.so (__ioctl+8)
#01 pc 0002aa8d /system/lib/libc.so (ioctl+16)
#02 pc 00016ba1 /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+132)
#03 pc 0001709d /system/lib/libbinder.so (android::IPCThreadState::waitForResponse(android::Parcel*, int*)+44)
#04 pc 000172b7 /system/lib/libbinder.so (android::IPCThreadState::transact(int, unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+114)
#05 pc 00014a3b /system/lib/libbinder.so (android::BpBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+34)
__ioctl resolves to the following assembly code:
000170a4 <__ioctl>:
170a4: e92d0090 push {r4, r7}
170a8: e3a07036 mov r7, #54 ; 0x36
170ac: ef000000 svc 0x00000000
170b0: e8bd0090 pop {r4, r7}
170b4: e1b00000 movs r0, r0
170b8: 512fff1e bxpl lr
170bc: ea0093a6 b 3bf5c
The stack dump is triggered by signal 6 (SIGABRT), code -6 (SI_KILL), with a fault address like 0x304, 0x330, 0x33A (it differs time to time and I am not even sure whether it is really an address in any address space rather than an error code or a flag combination).
I have no idea what the signal might indicate, i.e. whether it is
a driver error (but why is it relayed in such a strange way rather than over the return value?)
an unintercepted driver fault (is that even possible without a kernel panic?);
a kernel fault (outside the driver call and possibly unrelated to the driver);
a broken interrupt vector (then why not SIGSEGV or SIGILL?);
a result of SIGQUIT (Dalvik stack trace signal) received in supervisor mode.
In the last case, I take my amazement back and proceed to investigation of the blocking call freeze cause (deadlock in the called process?). Possibly, I can build a test application to reproduce this specific precondition but it will take time.
I found a number of similar-looking traces and bug reports around the web, indicating that the issue is not device or vendor specific (though possibly platform version specific).
The exact service being interacted with does not matter either.
P.S. logcat:
03-21 16:21:22.933 772 831 I InputDispatcher: Application is not responding: Window{41000dd8 u0 my.application.package/my.application.package.MyActivity}. It has been 5008.3ms since event, 5005.7ms since wait started. Reason: Waiting because the touched window has not finished processing the input events that were previously delivered to it.
03-21 16:21:22.943 772 831 I WindowManager: Input event dispatching timed out sending to my.application.package/my.application.package.MyActivity
03-21 16:21:23.163 772 831 I Process : Sending signal. PID: 16195 SIG: 3
03-21 16:21:23.163 16195 16200 I dalvikvm: threadid=3: reacting to signal 3
03-21 16:21:23.263 16195 16200 I dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
03-21 16:21:23.273 772 831 E ActivityManager: ANR in my.application.package (my.application.package/my.application.package.MyActivity)
03-21 16:21:23.273 772 831 E ActivityManager: Reason: keyDispatchingTimedOut
03-21 16:21:23.273 772 831 E ActivityManager: Load: 0.0 / 0.0 / 0.0
03-21 16:21:23.273 772 831 E ActivityManager: CPU usage from 18140ms to 0ms ago:
-- CPU usage dump, nothing unusual --
03-21 16:21:23.273 772 831 E ActivityManager: 61% TOTAL: 33% user + 27% kernel + 0% iowait + 0.8% softirq
03-21 16:21:23.273 772 831 E ActivityManager: CPU usage from 5686369ms to 5686369ms ago with 0% awake:
03-21 16:21:23.273 772 831 E ActivityManager: 0% TOTAL: 0% user + 0% kernel
03-21 16:21:23.283 772 831 I Process : Sending signal. PID: 16195 SIG: 6
03-21 16:21:23.283 16195 16195 F libc : Fatal signal 6 (SIGABRT) at 0x00000304 (code=0), thread 16195 (my.application.package)
-- and then the stack dump --

Categories

Resources