Android Question B4xpages barcode reader example problem.

calloatti

Member
Licensed User
I am testing the example barcode reader project from https://www.b4x.com/android/forum/threads/b4x-b4xpages-barcode-reader.120417/

It works fine in 2 devices, but on a cheap tablet it fails to work with the message "Failed to create detector" (I guess its the toast in the Sub CreateDetector (Codes As List))

This is the full debug log:

B4X:
Logger connected to:  PCBOX PCB-T104
--------- beginning of system
Cancelling event due to no window focus: KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x68, repeatCount=0, eventTime=3524505, downTime=3524432, deviceId=-1, source=0x101, displayId=0 }
uid=10135(b4a.barcode.reader) identical 7 lines
Cancelling event due to no window focus: KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x68, repeatCount=0, eventTime=3524505, downTime=3524432, deviceId=-1, source=0x101, displayId=0 }
--------- beginning of main
Not starting debugger since process cannot load the jdwp agent.
common created.
Starting remote logger. Port: 20413
[static] sSurfaceFactory = com.mediatek.view.impl.SurfaceFactoryImpl@b67e2bf
hardware acceleration = true , fakeHwAccelerated = false, sRendererDisabled = false, forceHwAccelerated = false, sSystemRendererDisabled = false
DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@441ebdb, this = DecorView@c505678[main]
[onConstructor]: an error ged handle
@gpudInitialize: successfully initialized with GL, dbg=0 mmdump_dbg=0 mmpath_dbg=0
Surface::connect(this=0x7489962000,api=1)
Surface::setBufferCount(this=0x7489962000,bufferCount=3)
Surface::allocateBuffers(this=0x7489962000)
mapper 3.x is not supported
ioctl c0044901 failed with code -1: Invalid argument
*** Debugger waiting for connection (0) ***
ignoring event: create_menu
hardware acceleration = true , fakeHwAccelerated = false, sRendererDisabled = false, forceHwAccelerated = false, sSystemRendererDisabled = false
[onConstructor]: an error ged handle
Surface::connect(this=0x748b3c1000,api=1)
Surface::setBufferCount(this=0x748b3c1000,bufferCount=3)
Surface::allocateBuffers(this=0x748b3c1000)
*** Debugger waiting for connection (1) ***
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Local module descriptor class for com.google.android.gms.vision.dynamite.barcode not found.
Considering local module com.google.android.gms.vision.dynamite.barcode:0 and remote module com.google.android.gms.vision.dynamite.barcode:0
Local module descriptor class for com.google.android.gms.vision.barcode not found.
Considering local module com.google.android.gms.vision.barcode:0 and remote module com.google.android.gms.vision.barcode:0
Error loading optional module com.google.android.gms.vision.barcode: com.google.android.gms.dynamite.DynamiteModule$LoadingException: No acceptable module found. Local version is 0 and remote version is 0.
Native handle not yet available. Reverting to no-op handle.
Local module descriptor class for com.google.android.gms.vision.dynamite.barcode not found.
Considering local module com.google.android.gms.vision.dynamite.barcode:0 and remote module com.google.android.gms.vision.dynamite.barcode:0
Local module descriptor class for com.google.android.gms.vision.barcode not found.
Considering local module com.google.android.gms.vision.barcode:0 and remote module com.google.android.gms.vision.barcode:0
Error loading optional module com.google.android.gms.vision.barcode: com.google.android.gms.dynamite.DynamiteModule$LoadingException: No acceptable module found. Local version is 0 and remote version is 0.
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
** Activity (main) Resume **
Background young concurrent copying GC freed 24323(2729KB) AllocSpace objects, 3(60KB) LOS objects, 74% free, 2090KB/8234KB, paused 274us total 154.354ms
After accept
Surface::disconnect(this=0x748b3c1000,api=1)
[Warning] assignParent to null: this = android.widget.LinearLayout{d95abb2 V.E...... ......ID 0,0-275,49}

Any hints as to what is wrong with this particular Android 10 tablet?
 

calloatti

Member
Licensed User
Maybe the problem is that the android vision api is being deprecated?

The Mobile Vision API is now a part of ML Kit. We strongly encourage you to try it out, as it comes with new capabilities like on-device image labeling! Also, note that we ultimately plan to wind down the Mobile Vision API, with all new on-device ML capabilities released via ML Kit.


Maybe an updated example using this ML Kit could be posted?
 
Upvote 0
Top