Bug? Take Screenshot

Pendrush

Well-Known Member
Licensed User
Longtime User
In last few version of B4A I'm not able to take screenshot from B4A it self.
When I click on Take Picture in menu, I can see busy pointer and after approx 2 sec pointer return to normal state, with no image and no error. Tested on Nexus 5 Phone, Samsung Note 5 and on Genymotion emulator.
As workaround I'm using Android Monitor from SDK folder (\sdk\tools\monitor.bat).

Unfiltered log from genymotion emulator:
gralloc_alloc: format 1 and usage 0x333 imply creation of host color buffer
HostConnection::get() New Host Connection established 0xf0f9b2c0, tid 1744
Process pipe failed
tid 544: eglCreateSyncKHR(1669): error 0x3004 (EGL_BAD_ATTRIBUTE)
>>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
CheckJNI is OFF
Unexpected CPU variant for X86 using defaults: x86
No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
Couldn't load memtrack module (No such file or directory)
failed to load memtrack module: -2
register_android_hardware_Radio DONE
Calling main entry com.android.commands.am.Am
action: android.intent.action.MEDIA_SCANNER_SCAN_FILE path: /storage/emulated/0/b4a_screenshot.png
Shutting down VM
The image is created on device on path: /storage/emulated/0/b4a_screenshot.png but is not transferred to B4A.

EDIT:
I'm using USB for connection between device and PC.

EDIT 2:
Android version don't play any role, tried on v5.0 - v9.0, same behavior on all versions.
 
Last edited:

Pendrush

Well-Known Member
Licensed User
Longtime User
On Nexus 5, today screenshot is taken and transferred as it should in B4A. Nothing changed.
Still don't work from Genymotion.

Nexus 5 unfiltered log:
getTransport: Cannot find entry [email protected]::IMapper/default in either framework or device manifest.
Loading /vendor/lib/hw/[email protected] from current namespace instead of sphal namespace.
Loading /vendor/lib/hw/gralloc.msm8974.so from current namespace instead of sphal namespace.
getTransport: Cannot find entry [email protected]::IAllocator/default in either framework or device manifest.
Loading /vendor/lib/hw/[email protected] from current namespace instead of sphal namespace.
Loading /vendor/lib/hw/gralloc.msm8974.so from current namespace instead of sphal namespace.
action: android.intent.action.MEDIA_SCANNER_SCAN_FILE path: /storage/emulated/0/b4a_screenshot.png
 
Top