TC70 - Sample App crashes at (BarcodeManager) emdkManager.getInstance(EMDKManager.FEATURE_TYPE.BARCODE);

The following came in from a customer recently:

Trying get instance of EMDK fails with following exception on TC700K, the issue is reproducible with Sample App provided by Zebra for EMDK too. Logs, sample app causing crash and device details attached.

  Code –

barcodeManager = (BarcodeManager) emdkManager.getInstance(EMDKManager.FEATURE_TYPE.BARCODE);

  Exception –

08-27 11:24:35.606 543-543/? A/DEBUG: Abort message: 'art/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc:923] Check failed: called != nullptr int java.lang.Enum.ordinal() com.symbol.emdk.EMDKManager$FEATURE_TYPE[] virtual 15'

Details -

We have following Devices:

1) MC33 :

EMDK Version=6.7.10.1010, Android_version: 7

2) TC700K :

EMDK Version=6.3.23.623, Android_version: 6.0.1

Issue with TC700K:

1) Scan functionality is implemented in Android app. EMDK is utilized. Barcode APIs have been used. It works fine for MC33 device, however it throws following exception on TC70x.

We have not run any update on both of devices. JDA Application Log is attached(TC70c_Logcat.txt)

08-27 11:24:35.606 543-543/? A/DEBUG: Abort message: 'art/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc:923] Check failed: called != nullptr int java.lang.Enum.ordinal() com.symbol.emdk.EMDKManager$FEATURE_TYPE[] virtual 15'

2) I have tried to use the sample App created by Zebra. Is has also resulted with same exception at same line mentioned below. Log is attached for your reference(BarcodeScanner1_logs.txt) Attaching the android sample project which resulted with this error.(BARCODESAMPLE_Zebra.7z). we are getting same error in our environment.

Code has failed to retrieve barcode manger, it fails at below line.

  barcodeManager = (BarcodeManager) emdkManager.getInstance(EMDKManager.FEATURE_TYPE.BARCODE);

Below exception occurred in our environment,

08-27 11:24:35.244 4280-4292/? D/com.symbol.emdk.emdkservice.MxServiceConnection: MxServiceConnection constructor

  Binding Mx srvice...

08-27 11:24:35.249 4280-4292/? D/com.symbol.emdk.emdkservice.MxServiceConnection: MX binding request sent. State: true

08-27 11:24:35.249 4280-4292/? D/SvcEMDKManager: getVersion - Entering

08-27 11:24:35.250 4280-4280/? D/com.symbol.emdk.emdkservice.MxServiceConnection: onServiceConnected: Connected to MX service...

08-27 11:24:35.250 4280-4280/? D/MxVersionHandler: MxVersionHandler Constructor

08-27 11:24:35.251 4280-4292/? D/SvcEMDKManager: getVersion - Leaving

  EMDK Version=6.3.23.623

08-27 11:24:35.255 3407-3407/? A/art: art/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc:923] Check failed: called != nullptr int java.lang.Enum.ordinal() com.symbol.emdk.EMDKManager$FEATURE_TYPE[] virtual 15

08-27 11:24:35.307 1190-1239/? I/ActivityManager: Displayed com.google.android.packageinstaller/com.android.packageinstaller.permission.ui.GrantPermissionsActivity: +299ms (total +399ms)

08-27 11:24:35.533 3407-3407/? A/art: art/runtime/barrier.cc:90] Check failed: count_ == 0 (count_=-1, 0=0) Attempted to destroy barrier with non zero count

  art/runtime/runtime.cc:366] Runtime aborting --- recursively, so no thread-specific detail!

  art/runtime/runtime.cc:366]

  --------- beginning of crash

08-27 11:24:35.533 3407-3407/? A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 3407 (com.jda.ahht)

08-27 11:24:35.534 3407-4306/? I/System.out: Welcome to HHTS.

08-27 11:24:35.558 2595-2595/? D/SessionManager: DEVICE INFORMATION SENT SUCCESSFULLY: {"device_model":"TC70x","device_serial":"17163522500421","android_version":"6.0.1","build_number":"01-15-01.7-MN-00-PATCH002","appgallery_version":"2.8.4.13","pushy_registration_id":"0"}

08-27 11:24:35.587 543-543/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

  Build fingerprint: 'Zebra/TC70x/TC70x:6.0.1/01-15-01.7-MN-00/105:user/release-keys'

  Revision: '0'

  ABI: 'arm64'

  pid: 3407, tid: 3407, name: com.jda.ahht >>> com.jda.ahht <<<

  signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------

08-27 11:24:35.606 543-543/? A/DEBUG: Abort message: 'art/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc:923] Check failed: called != nullptr int java.lang.Enum.ordinal() com.symbol.emdk.EMDKManager$FEATURE_TYPE[] virtual 15'

08-27 11:24:35.607 543-543/? A/DEBUG: x0 0000000000000000 x1 0000000000000d4f x2 0000000000000006 x3 0000000000000000

  x4 0000000000000000 x5 0000000000000001 x6 0000000000000000 x7 0000000000000000

  x8 0000000000000083 x9 0000007fac681a70 x10 0000000000000003 x11 0000000000000260

  x12 000000000000000e x13 0000000000008000 x14 0000000000000000 x15 0000000000000000

  x16 0000007fac67a6a8 x17 0000007fac63cb9c x18 6000000000000000 x19 0000007faca9f088

  x20 0000007faca9efc8 x21 0000000000000000 x22 0000000000000006 x23 0000007fa91c1000

  x24 00000055b7538aa0 x25 00000055b6d14880 x26 00000055b6d0eff0 x27 0000007fa90e4000

  x28 00000055b7537560 x29 0000007fec219780 x30 0000007fac63a338

  sp 0000007fec219780 pc 0000007fac63cba4 pstate 0000000020000000

08-27 11:24:35.612 543-543/? A/DEBUG: backtrace:

08-27 11:24:35.613 543-543/? A/DEBUG: #00 pc 000000000006aba4 /system/lib64/libc.so (tgkill+8)

  #01 pc 0000000000068334 /system/lib64/libc.so (pthread_kill+68)

  #02 pc 00000000000212b8 /system/lib64/libc.so (raise+28)

  #03 pc 000000000001ba58 /system/lib64/libc.so (abort+60)

  #04 pc 0000000000438608 /system/lib64/libart.so (_ZN3art7Runtime5AbortEv+324)

  #05 pc 0000000000139264 /system/lib64/libart.so (_ZN3art10LogMessageD2Ev+3136)

  #06 pc 0000000000133d08 /system/lib64/libart.so (_ZN3art7BarrierD2Ev+296)

  #07 pc 000000000046d1f4 /system/lib64/libart.so (_ZN3art10ThreadList4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+212)

  #08 pc 00000000004386f0 /system/lib64/libart.so (_ZN3art7Runtime5AbortEv+556)

08-27 11:24:35.614 543-543/? A/DEBUG: #09 pc 0000000000139264 /system/lib64/libart.so (_ZN3art10LogMessageD2Ev+3136)

  #10 pc 0000000000541968 /system/lib64/libart.so (artQuickResolutionTrampoline+1404)

  #11 pc 0000000000129d24 /system/lib64/libart.so (art_quick_resolution_trampoline+100)

  #12 pc 00000000000cda48 /data/dalvik-cache/arm64/system@framework@com.symbol.emdk.jar@classes.dex (offset 0xcc000)

08-27 11:24:35.909 543-543/? A/DEBUG: Tombstone written to: /data/tombstones/tombstone_09

08-27 11:24:35.909 543-543/? E/DEBUG: AM write failed: Broken pipe

08-27 11:24:35.909 1190-1237/? I/BootReceiver: Copying /data/tombstones/tombstone_09 to DropBox (SYSTEM_TOMBSTONE)

08-27 11:24:35.913 2723-2768/? D/TombstonePlugin: Received file observer event: 00000008 path: tombstone_09

  Detected Tombstone activity: tombstone_09

  Adding path to list

08-27 11:24:35.923 1190-1235/? V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@78d4eb2

  BoostFramework() : mPerf = com.qualcomm.qti.Performance@4d0ee03

08-27 11:24:35.937 1190-4316/? D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true

08-27 11:24:35.971 1190-4316/? I/Adreno: QUALCOMM build : 26dcca9, Ibef77cadeb

  Build Date : 06/16/16

  OpenGL ES Shader Compiler Version: XE031.06.00.02

  Local Branch : mybranch20332325

  Remote Branch : quic/LA.BR.1.3.4_rb1.13

  Remote Branch : NONE

  Reconstruct Branch : NOTHING

08-27 11:24:35.976 1190-4316/? I/OpenGLRenderer: Initialized EGL, version 1.4

08-27 11:24:36.005 1190-1937/? I/WindowState: WIN DEATH: Window{efdcb2f u0 com.jda.ahht/com.jda.ahht.ui.HomeActivity}

08-27 11:24:36.005 1190-1928/? D/GraphicsStats: Buffer count: 6

08-27 11:24:36.008 1190-1905/? I/WindowState: WIN DEATH: Window{f221df0 u0 Toast}

08-27 11:24:36.011 1190-1371/? I/WindowState: WIN DEATH: Window{1e467dd u0 Loading}

08-27 11:24:36.013 1190-1407/? W/InputDispatcher: channel '4dfa223 com.jda.ahht/com.jda.ahht.ui.MainActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9

08-27 11:24:36.013 1190-1407/? E/InputDispatcher: channel '4dfa223 com.jda.ahht/com.jda.ahht.ui.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!

08-27 11:24:36.014 592-592/? I/Zygote: Process 3407 exited due to signal (6)

08-27 11:24:36.015 1190-2005/? I/ActivityManager: Process com.jda.ahht (pid 3407) has died

08-27 11:24:36.015 1190-2005/? D/ActivityManager: cleanUpApplicationRecord -- 3407

08-27 11:24:36.017 1190-2005/? W/ActivityManager: Force removing ActivityRecord{64f928f u0 com.jda.ahht/.ui.MainActivity t339}: app died, no saved state

08-27 11:24:36.018 4280-4280/? D/com.symbol.emdk.emdkservice.EMDKService: onUnbind

  The EMDKService was destroyed.

08-27 11:24:36.018 1190-1902/? I/WindowState: WIN DEATH: Window{4dfa223 u0 com.jda.ahht/com.jda.ahht.ui.MainActivity}

08-27 11:24:36.018 1190-1902/? W/InputDispatcher: Attempted to unregister already unregistered input channel '4dfa223 com.jda.ahht/com.jda.ahht.ui.MainActivity (server)'

08-27 11:24:36.020 4280-4280/? D/com.symbol.emdk.emdkservice.MxServiceConnection: release: The connection to the MX Service is closing...

08-27 11:24:36.024 1190-2005/? W/ActivityManager: Force removing ActivityRecord{e36410c u0 com.jda.ahht/.ui.HomeActivity t339}: app died, no saved state

08-27 11:24:36.036 1190-1239/? W/WindowAnimator: Failed to dispatch window animation state change.

  android.os.DeadObjectException

  at android.os.BinderProxy.transactNative(Native Method)

  at android.os.BinderProxy.transact(Binder.java:503)

  at android.view.IWindow$Stub$Proxy.onAnimationStarted(IWindow.java:520)

  at com.android.server.wm.WindowAnimator.updateWindowsLocked(WindowAnimator.java:282)

  at com.android.server.wm.WindowAnimator.animateLocked(WindowAnimator.java:678)

  at com.android.server.wm.WindowAnimator.access$000(WindowAnimator.java:53)

  at com.android.server.wm.WindowAnimator$1.doFrame(WindowAnimator.java:123)

  at android.view.Choreographer$CallbackRecord.run(Choreographer.java:856)

  at android.view.Choreographer.doCallbacks(Choreographer.java:670)

  at android.view.Choreographer.doFrame(Choreographer.java:603)

  at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)

  at android.os.Handler.handleCallback(Handler.java:739)

  at android.os.Handler.dispatchMessage(Handler.java:95)

  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)

Anton Mueller
same error here ... is there

same error here ... is there a solution now?

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Anonymous (not verified)
Hi, can you please confirm

Hi, can you please confirm you are using EMDK 6.9 (not any of the more recent releases) as this was the last version to support the TC70 LP

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Anton Mueller
Sorry for the

Sorry for the misunderstanding but I use the TC51 with EMDK 7.0

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Anton Mueller
If the TC70 is no longer

If the TC70 is no longer supported, why is it on the list?

About EMDK For Android - Zebra Technologies Techdocs

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Anton Mueller
Ah ok sorry, it's the 70x

Ah ok sorry, it's the 70x Model.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Anonymous (not verified)
Can you please confirm if you

Can you please confirm if you see this issue with the sample application: samples-emdkforandroid-7_0/BarcodeSample1 at master · Zebra/samples-emdkforandroid-7_0 · GitHub  And please share the build version of your TC51 (Settings --> System --> About --> Build Number)

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Anton Mueller
Yes, same problem here. Model

Yes, same problem here.

Model Number: TC510K
Build Number: "01-21-04.1-MN-00-UPDATE013 release-keys"

Android Version: 6.0.1

EMDK Service version: 7.0.0.2000

Do you nee any other data?

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Anonymous (not verified)
Thank you for getting back to

Thank you for getting back to me with the information.  Although this is not a problem with Nougat, I downgraded a device I have here and can confirm that this is a problem with the Marshmallow build and I also note that you have the latest Lifeguard update installed.

Can you please raise a tech support issue so this can be addressed and given priority: Contact Support | Zebra Technologies

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Herbert De Jong
Anton, created an support

Anton, created an support case and i have reproduced this with compliled APK  only  and  with BarcodeSample1 from Github and raised engineering ticket  SPR 36599

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Michael Vermilion
Is there a way to workaround

Is there a way to workaround this issue?  I was trying to make a release and when testing on the TC8000 with Android 5.1.1 I kept getting this error.  It doesn't happen in debug builds.  I also have a MC33 and it works fine on that.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Herbert De Jong
Anton,have seen this on LP

Anton,

have seen this on LP TC8000 as well,  and found following solution to work when using complied APK from our sample codes

change following in app Build.gradle file for M and LP device and EMDK 6.9 sample

compileSdkVersion 'Zebra Technologies Corp:EMDK APIs:26'

to

compileSdkVersion 23

add

dependencies {

implementation 'com.android.support.constraint:constraint-layout:1.1.3'

compileOnly 'com.symbol:emdk:6.9.16'

}

change following in app Build.gradle file for M device  and using  EMDK 7.0  sample

from dependencies remove

implementation 'com.symbol:emdk:+'

change to

compileOnly 'com.symbol:emdk:7.0.0'

Vote: 
Vote up!
Vote down!

Points: 1

You voted ‘up’


Mahesh Eranda I...
Can you try ‘compileOnly’

Can you try ‘compileOnly’ instead of ‘implementation’ in the gradle and see whether this issue get resolved?

dependencies {
compileOnly
'com.symbol:emdk:7.0.0'
}

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments