App crashes when trying to initialize the barcode scanner

Greetings!

So, the problem here is that our app isn't working, even though it was two days ago, initializing the barcode scanner correctly and stuff.

To verify whether it was a problem with the app itself, I installed the demo app (barcodescanner1) to understand the library code, and the demo isn't working either.

The device: TC510K, with android 6.0.1.

The only solution I saw here in the discussions so far was to add com.symbol.edmk.jar manually to the project, but I don't know if it makes sense in my case since:

  •     I'm already downloading the required dependency from jcenter (according to gradle, both my app and the demo are using com.symbol:emdk:7.3.14).
  •     The demo worked fine without having to do anything to it, and the dependency wasn't added in it manually as the solutions in the forum ask to do,
  •     Even if I have to actually add the jar, I can't seem to find it anywhere (aparently it comes within an installer specifically made for either windows or macos, and here at work I haven't found anybody with those OS as of yet).

I even reset the device to factory settings in case I configured something wrong on the device by accident, but it didn't help either.

Most likely I'm missing something, but I don't know what could it be, like, everything was working fine two days ago.

Anything that might help will be greatly appreciated.

Oh, and I forgot the error shown by logcat when trying to run the apps:

05-16 18:26:11.489 9057-9057/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

05-16 18:26:11.489 9057-9057/? A/DEBUG: Build fingerprint: 'Zebra/TC51/TC51:6.0.1/01-21-04.1-MN-00-UPDATE009/151:user/release-keys'

05-16 18:26:11.489 9057-9057/? A/DEBUG: Revision: '0'

05-16 18:26:11.489 9057-9057/? A/DEBUG: ABI: 'arm64'

05-16 18:26:11.489 9057-9057/? A/DEBUG: pid: 13505, tid: 13505, name: .barcodesample1  >>> com.symbol.barcodesample1 <<<

05-16 18:26:11.489 9057-9057/? A/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------

05-16 18:26:11.496 9057-9057/? 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'

05-16 18:26:11.496 9057-9057/? A/DEBUG:     x0   0000000000000000  x1   00000000000034c1  x2   0000000000000006  x3   0000000000000000

05-16 18:26:11.496 9057-9057/? A/DEBUG:     x4   0000000000000000  x5   0000000000000001  x6   0000000000000000  x7   0000000000000000

05-16 18:26:11.496 9057-9057/? A/DEBUG:     x8   0000000000000083  x9   0000007fb42e8a70  x10  0000000000000003  x11  000000000000ffff

05-16 18:26:11.496 9057-9057/? A/DEBUG:     x12  000000000000000e  x13  000000000000c000  x14  0000000000000001  x15  0000000000000000

05-16 18:26:11.496 9057-9057/? A/DEBUG:     x16  0000007fb42e16a8  x17  0000007fb42a2ccc  x18  0000000000000008  x19  0000007fb4705088

05-16 18:26:11.496 9057-9057/? A/DEBUG:     x20  0000007fb4704fc8  x21  0000000000000000  x22  0000000000000006  x23  0000007fb0e11000

05-16 18:26:11.496 9057-9057/? A/DEBUG:     x24  00000055990c8370  x25  0000005598df8500  x26  0000005598df3000  x27  0000007fb0d33000

05-16 18:26:11.496 9057-9057/? A/DEBUG:     x28  00000055990c8240  x29  0000007fcfd5c180  x30  0000007fb42a0468

05-16 18:26:11.496 9057-9057/? A/DEBUG:     sp   0000007fcfd5c180  pc   0000007fb42a2cd4  pstate 0000000020000000

05-16 18:26:11.499 9057-9057/? A/DEBUG: backtrace:

05-16 18:26:11.499 9057-9057/? A/DEBUG:     #00 pc 000000000006acd4  /system/lib64/libc.so (tgkill+8)

05-16 18:26:11.499 9057-9057/? A/DEBUG:     #01 pc 0000000000068464  /system/lib64/libc.so (pthread_kill+68)

05-16 18:26:11.499 9057-9057/? A/DEBUG:     #02 pc 00000000000212b8  /system/lib64/libc.so (raise+28)

05-16 18:26:11.499 9057-9057/? A/DEBUG:     #03 pc 000000000001ba58  /system/lib64/libc.so (abort+60)

05-16 18:26:11.499 9057-9057/? A/DEBUG:     #04 pc 00000000004361f0  /system/lib64/libart.so (_ZN3art7Runtime5AbortEv+324)

05-16 18:26:11.499 9057-9057/? A/DEBUG:     #05 pc 0000000000139264  /system/lib64/libart.so (_ZN3art10LogMessageD2Ev+3136)

05-16 18:26:11.499 9057-9057/? A/DEBUG:     #06 pc 0000000000133d08  /system/lib64/libart.so (_ZN3art7BarrierD2Ev+296)

05-16 18:26:11.499 9057-9057/? A/DEBUG:     #07 pc 000000000046af1c  /system/lib64/libart.so (_ZN3art10ThreadList4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+212)

05-16 18:26:11.499 9057-9057/? A/DEBUG:     #08 pc 00000000004362d8  /system/lib64/libart.so (_ZN3art7Runtime5AbortEv+556)

05-16 18:26:11.499 9057-9057/? A/DEBUG:     #09 pc 0000000000139264  /system/lib64/libart.so (_ZN3art10LogMessageD2Ev+3136)

05-16 18:26:11.499 9057-9057/? A/DEBUG:     #10 pc 0000000000540064  /system/lib64/libart.so (artQuickResolutionTrampoline+1404)

05-16 18:26:11.499 9057-9057/? A/DEBUG:     #11 pc 0000000000129d24  /system/lib64/libart.so (art_quick_resolution_trampoline+100)

05-16 18:26:11.499 9057-9057/? A/DEBUG:     #12 pc 00000000000d8664  /data/dalvik-cache/arm64/system@framework@com.symbol.emdk.jar@classes.dex (offset 0xd6000)

Samuel Doherty
Hi, did you manage to find

Hi, did you manage to find the issue? I am having the exact same problem :( spent hours trying to find a solution

Regards,

Sam

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Darryn Campbell
Hi, there is a sample app at

Hi, there is a sample app at https://techdocs.zebra.com/emdk-for-android/7-4/samples/barcode/ but please be aware the recommended approach to development is to use DataWedge rather than the EMDK, see https://techdocs.zebra.com/emdk-for-android/7-4/guide/about/

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments