Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screen sharing feature not working fine on Android 12 #11367

Closed
amjidkhanmohmand opened this issue Apr 11, 2022 · 14 comments
Closed

Screen sharing feature not working fine on Android 12 #11367

amjidkhanmohmand opened this issue Apr 11, 2022 · 14 comments

Comments

@amjidkhanmohmand
Copy link

Hello team jitsi,
Hopefully, you are doing well. I just faced an error while using the screen sharing feature. I have tested it by adding the latest SDK version 5.0.2 and also the Jitsi meet's official app available on playstore. The problem is that when I click on the "screen sharing" option it sometimes started for a few seconds and then restarts my device and sometimes directly restarts my device. I think there is an issue in the task handling part for android 12.
Kindly let me as soon as possible after your confirmation.

@saghul
Copy link
Member

saghul commented Apr 12, 2022

That sounds like an Android bug, an app should never cause a restart.

Do you have the ability to get adb logcat logs?

@amjidkhanmohmand
Copy link
Author

amjidkhanmohmand commented Apr 12, 2022

No unfortunately there is no bug report when the device is restarted. You can test it by yourself too. Kindly test it on any Android 12 device. I have downloaded the jitsi meet's official app from playstore too but the results are the same. I think its something with the permissions as Android 12 is a bit more secure and may need some special permissions for some tasks

@saghul
Copy link
Member

saghul commented Apr 12, 2022

No unfortunately there is no bug report when the device is restarted.

If you are tailing logcat while in a meeting maybe you can catch it.

You can test it by yourself too. Kindly test it on any Android 12 device. I have downloaded the jitsi meet's official app from playstore too but the results are the same.

I did and I cannot reproduce it. It must be a bug in a device specific part of Android. I had a 15 minute screen share here:

Screenshot 2022-04-12 at 15 59 08

I think its something with the permissions as Android 12 is a bit more secure and may need some special permissions for some tasks

That's not it, it would never cause a device restart.

@amjidkhanmohmand
Copy link
Author

Ok i will try to catch a logcat and will share it shortly

@amjidkhanmohmand
Copy link
Author

The Complete log report can be seen in the given file
log_report.txt

@saghul
Copy link
Member

saghul commented Apr 14, 2022

Sorry, I can't see anything weird in that log.

@amjidkhanmohmand
Copy link
Author

I think you can find it in the end, i will try to generate another log with the problem section only

@amjidkhanmohmand
Copy link
Author

This is the complete error log for Jitsi meet's official app that is available on playstore

`2022-04-14 22:58:32.224 14622-14622/? E/org.jitsi.meet: Not starting debugger since process cannot load the jdwp agent.
2022-04-14 22:58:32.275 7050-7432/? E/HwDetectorWithState: a: 3
2022-04-14 22:58:32.585 14622-14652/? E/OpenGLRenderer: Device claims wide gamut support, cannot find matching config, error = EGL_SUCCESS
2022-04-14 22:58:32.600 14622-14675/? E/ion: ioctl c0044901 failed with code -1: Invalid argument
2022-04-14 22:58:32.630 14622-14652/? E/OpenGLRenderer: fbcNotifyFrameComplete error: undefined symbol: fbcNotifyFrameComplete
2022-04-14 22:58:32.630 14622-14652/? E/OpenGLRenderer: fbcNotifyNoRender error: undefined symbol: fbcNotifyNoRender
2022-04-14 22:58:39.584 14854-14854/? E/webview_servic: Not starting debugger since process cannot load the jdwp agent.
2022-04-14 22:58:42.883 14622-14677/? E/BLASTBufferQueue: ViewRootImpl[MainActivity]#1 setNextTransaction
2022-04-14 22:58:42.893 14622-14652/? E/BLASTBufferQueue: ViewRootImpl[MainActivity]#1 not apply transaction, processNextBufferLocked size=1080x2320 mFrameNumber=252 applyTransaction=false mTimestamp=997239935334054(auto) mPendingTransactions.size=0 graphicBufferId=62801011802120 transform=0
2022-04-14 22:58:43.035 14622-14622/? E/org.jitsi.meet: No package ID ff found for ID 0xffffffff.
2022-04-14 22:58:47.910 14622-14902/? E/libEGL: call to OpenGL ES API with no current context (logged once per thread)
2022-04-14 22:58:55.010 14622-14678/? E/BufferQueueProducer: SurfaceTexture-2-14622-1 connect: already connected (cur=1 req=1)

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

2022-04-14 22:58:55.014 5002-5002/? A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x70 in tid 5002 (surfaceflinger), pid 5002 (surfaceflinger)
2022-04-14 22:58:55.171 15074-15074/? A/DEBUG: Softversion: PD2147DF_EX_A_6.12.4
2022-04-14 22:58:55.171 15074-15074/? A/DEBUG: Time: 2022-04-14 22:58:55
2022-04-14 22:58:55.171 15074-15074/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2022-04-14 22:58:55.171 15074-15074/? A/DEBUG: Build fingerprint: 'vivo/2109N/2109:12/SP1A.210812.003_NONFC/compiler03021050:user/release-keys'
2022-04-14 22:58:55.171 15074-15074/? A/DEBUG: Revision: '0'
2022-04-14 22:58:55.171 15074-15074/? A/DEBUG: ABI: 'arm64'
2022-04-14 22:58:55.171 15074-15074/? A/DEBUG: Timestamp: 2022-04-14 22:58:55.084663069+0500
2022-04-14 22:58:55.171 15074-15074/? A/DEBUG: Process uptime: 0s
2022-04-14 22:58:55.171 15074-15074/? A/DEBUG: Cmdline: /system/bin/surfaceflinger
2022-04-14 22:58:55.171 15074-15074/? A/DEBUG: pid: 5002, tid: 5002, name: surfaceflinger >>> /system/bin/surfaceflinger <<<
2022-04-14 22:58:55.171 15074-15074/? A/DEBUG: uid: 1000
2022-04-14 22:58:55.171 15074-15074/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x70
2022-04-14 22:58:55.171 15074-15074/? A/DEBUG: Cause: null pointer dereference
2022-04-14 22:58:55.171 15074-15074/? A/DEBUG: x0 0000000000000010 x1 0000000000000002 x2 0000007fd8aba430 x3 b400007def115ce8
2022-04-14 22:58:55.171 15074-15074/? A/DEBUG: x4 0000000000000080 x5 0000000000000028 x6 0000000000000000 x7 0000000000000000
2022-04-14 22:58:55.171 15074-15074/? A/DEBUG: x8 b400007d4edb7d90 x9 aabf16133400d9ff x10 8000000086c9a639 x11 b400007d2edb5e10
2022-04-14 22:58:55.171 15074-15074/? A/DEBUG: x12 0000000000000001 x13 8000000086c9a639 x14 0000000000000000 x15 0000000000000000
2022-04-14 22:58:55.171 15074-15074/? A/DEBUG: x16 0000005b300aa220 x17 0000007f33edb018 x18 0000007f39fe6000 x19 00000000ffffffff
2022-04-14 22:58:55.171 15074-15074/? A/DEBUG: x20 0000007f33eee200 x21 b400007d0edf51c0 x22 0000007f390cf000 x23 0000000000000000
2022-04-14 22:58:55.171 15074-15074/? A/DEBUG: x24 b400007cdee09310 x25 0000000000000000 x26 b400007caedc9cb0 x27 0000000000000002
2022-04-14 22:58:55.171 15074-15074/? A/DEBUG: x28 b400007e2edc14e0 x29 0000007fd8aba450
2022-04-14 22:58:55.172 15074-15074/? A/DEBUG: lr 0000005b2fbec3a8 sp 0000007fd8aba420 pc 0000005b2fbec3b0 pst 0000000060001000
2022-04-14 22:58:55.172 15074-15074/? A/DEBUG: backtrace:
2022-04-14 22:58:55.172 15074-15074/? A/DEBUG: #00 pc 000000000014b3b0 /system/bin/surfaceflinger (android::impl::HWComposer::setOutputBuffer(android::HalVirtualDisplayId, android::spandroid::Fence const&, android::spandroid::GraphicBuffer const&)+400) (BuildId: b8f8139153f92f873494c3a55666e19c)
2022-04-14 22:58:55.172 15074-15074/? A/DEBUG: #1 pc 0000000000152214 /system/bin/surfaceflinger (android::VirtualDisplaySurface::refreshOutputBuffer()+340) (BuildId: b8f8139153f92f873494c3a55666e19c)
2022-04-14 22:58:55.172 15074-15074/? A/DEBUG: #2 pc 00000000001ff1cc /system/bin/surfaceflinger (android::compositionengine::impl::Output::beginFrame()+204) (BuildId: b8f8139153f92f873494c3a55666e19c)
2022-04-14 22:58:55.172 15074-15074/? A/DEBUG: #3 pc 00000000001fceb4 /system/bin/surfaceflinger (android::compositionengine::impl::Output::present(android::compositionengine::CompositionRefreshArgs const&)+484) (BuildId: b8f8139153f92f873494c3a55666e19c)
2022-04-14 22:58:55.172 15074-15074/? A/DEBUG: #4 pc 00000000001f2c40 /system/bin/surfaceflinger (android::compositionengine::impl::CompositionEngine::present(android::compositionengine::CompositionRefreshArgs&)+368) (BuildId: b8f8139153f92f873494c3a55666e19c)
2022-04-14 22:58:55.172 15074-15074/? A/DEBUG: #5 pc 000000000019e970 /system/bin/surfaceflinger (android::SurfaceFlinger::onMessageRefresh()+4416) (BuildId: b8f8139153f92f873494c3a55666e19c)
2022-04-14 22:58:55.172 15074-15074/? A/DEBUG: #6 pc 000000000019d3f0 /system/bin/surfaceflinger (android::SurfaceFlinger::onMessageInvalidate(long, long)+11616) (BuildId: b8f8139153f92f873494c3a55666e19c)
2022-04-14 22:58:55.172 15074-15074/? A/DEBUG: #7 pc 000000000019a648 /system/bin/surfaceflinger (android::SurfaceFlinger::onMessageReceived(int, long, long)+160) (BuildId: b8f8139153f92f873494c3a55666e19c)
2022-04-14 22:58:55.172 15074-15074/? A/DEBUG: #8 pc 0000000000016990 /system/lib64/libutils.so (android::Looper::pollInner(int)+368) (BuildId: 55b781a1d1b30c7b8faab272b31a9564)
2022-04-14 22:58:55.172 15074-15074/? A/DEBUG: #9 pc 00000000000167b8 /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+112) (BuildId: 55b781a1d1b30c7b8faab272b31a9564)
2022-04-14 22:58:55.172 15074-15074/? A/DEBUG: #10 pc 0000000000179614 /system/bin/surfaceflinger (android::impl::MessageQueue::waitMessage()+92) (BuildId: b8f8139153f92f873494c3a55666e19c)
2022-04-14 22:58:55.172 15074-15074/? A/DEBUG: #11 pc 0000000000190d54 /system/bin/surfaceflinger (android::SurfaceFlinger::run()+12) (BuildId: b8f8139153f92f873494c3a55666e19c)
2022-04-14 22:58:55.172 15074-15074/? A/DEBUG: #12 pc 00000000001f01f4 /system/bin/surfaceflinger (main+1628) (BuildId: b8f8139153f92f873494c3a55666e19c)
2022-04-14 22:58:55.172 15074-15074/? A/DEBUG: #13 pc 0000000000048a00 /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+96) (BuildId: 3cf600896578484f9ee24df4f1e36b7d)
2022-04-14 22:59:02.123 14622-14652/? E/BufferQueueProducer: ViewRootImpl[MainActivity]#1(BLAST Consumer)1 waitForFreeSlotThenRelock TIMED_OUT 4000000000
2022-04-14 22:59:02.124 14622-14652/? E/BufferQueueProducer: BQDUMP- BufferQueue mMaxAcquiredBufferCount=2 mMaxDequeuedBufferCount=2
BQDUMP mDequeueBufferCannotBlock=0 mAsyncMode=0
BQDUMP mQueueBufferCanDrop=0 mLegacyBufferDrop=1
BQDUMP default-size=[1080x2320] default-format=1 BQDUMP transform-hint=00 frame-counter=591
BQDUMP mTransformHintInUse=00 mAutoPrerotation=0
BQDUMPFIFO(0):
BQDUMP(mConsumerName=ViewRootImpl[MainActivity]#1(BLAST Consumer)1, mConnectedApi=1, mConsumerUsageBits=2304, mId=391e00000001, producer=[14622:org.jitsi.meet], consumer=[14622:org.jitsi.meet])
BQDUMPSlots:
BQDUMP >[00:0xb400007b55e0bbb0] state=ACQUIRED 0xb400007b75e959d0 frame=588 [1080x2320:1088, 1]
BQDUMP >[01:0xb400007b55e23eb0] state=ACQUIRED 0xb400007b75e94d90 frame=589 [1080x2320:1088, 1]
BQDUMP >[02:0xb400007b55e24330] state=ACQUIRED 0xb400007b75e8f7d0 frame=590 [1080x2320:1088, 1]
BQDUMP >[03:0xb400007b55e22a70] state=ACQUIRED 0xb400007b75e90b10 frame=591 [1080x2320:1088, 1]
2022-04-14 22:59:02.124 14622-14652/? E/BufferQueueProducer: Slots:
BQDUMP >[00:0xb400007b55e0bbb0] state=ACQUIRED 0xb400007b75e959d0 frame=588 [1080x2320:1088, 1]
BQDUMP >[01:0xb400007b55e23eb0] state=ACQUIRED 0xb400007b75e94d90 frame=589 [1080x2320:1088, 1]
BQDUMP >[02:0xb400007b55e24330] state=ACQUIRED 0xb400007b75e8f7d0 frame=590 [1080x2320:1088, 1]
BQDUMP >[03:0xb400007b55e22a70] state=ACQUIRED 0xb400007b75e90b10 frame=591 [1080x2320:1088, 1]
2022-04-14 22:59:02.201 5203-15197/? E/AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: PhotonicModulator
java.lang.NullPointerException: Attempt to read from field 'int android.view.DisplayInfo.type' on a null object reference
at com.android.server.display.DisplayPowerState$PhotonicModulator.run(DisplayPowerState.java:789)
2022-04-14 22:59:02.320 7050-7863/? E/VoiceInteractionService: system service binder died shutting down
2022-04-14 22:59:02.328 7050-7050/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.google.android.googlequicksearchbox:interactor, PID: 7050
DeadSystemException: The system died; earlier logs will point to the root cause
`

@saghul
Copy link
Member

saghul commented Apr 14, 2022

Looks like surfacelinger, part of the system graphics daemons crashes.

Unfortunately there is nothing we can do about that. It looks like a device specific firmware issue.

@amjidkhanmohmand
Copy link
Author

The screen sharing is working fine with miracast etc, only failing on jitsi meet don't know why. By the way Thanks for the guidance and help. Jitsi meet is indeed a very good and easy solution for video conferencing. I will try to test it on another device with Android version 12 too.
Thanks and Regards
Amiid Khan Mohmand

@amjidkhanmohmand
Copy link
Author

Thanks for your support @saghul, it was indeed the device-specific issue. I have tested it on another Android 12 device and it was working fine.
Thanks and regards
Amjid Khan Mohmand

@faisal061213
Copy link

i try to hit api which is properly run web browser but does 't run android
plx suggestions /
running Gradle task 'assembleDebug'...
√ Built build\app\outputs\flutter-apk\app-debug.apk.
Debug service listening on ws://127.0.0.1:63552/4TkXkaRAGqw=/ws
Syncing files to device CPH2269...
D/SurfaceComposerClient( 3483): VRR [FRTC] client handle [bufferId:18446744073709551615 framenumber:0] [ffffffff, ffffffff]
E/OpenGLRenderer( 3483): fbcNotifyFrameComplete error: undefined symbol: fbcNotifyFrameComplete
E/OpenGLRenderer( 3483): fbcNotifyNoRender error: undefined symbol: fbcNotifyNoRender
D/ViewRootImplMainActivity: debugCancelDraw cancelDraw=false,count = 387,android.view.ViewRootImpl@f97b364
D/SurfaceComposerClient( 3483): VRR [FRTC] client handle [bufferId:18446744073709551615 framenumber:0] [ffffffff, ffffffff]
I/GED ( 3483): ged_boost_gpu_freq, level 100, eOrigin 2, final_idx 2, oppidx_max 2, oppidx_min 0
I/BufferQueueProducer( 3483): SurfaceView[com.example.photosapi/com.example.photosapi.MainActivity]#1(BLAST Consumer)1 disconnect: api 1
E/BLASTBufferQueue( 3483): BLASTBufferItemConsumer::onDisconnect()
I/BufferQueueProducer( 3483): SurfaceView[com.example.photosapi/com.example.photosapi.MainActivity]#1(BLAST Consumer)1 disconnect: api -1
I/BLASTBufferQueue( 3483): [SurfaceView[com.example.photosapi/com.example.photosapi.MainActivity]#1] destructor()
I/BufferQueueConsumer( 3483): SurfaceView[com.example.photosapi/com.example.photosapi.MainActivity]#1(BLAST Consumer)1 disconnect
I/BufferQueueProducer( 3483): ViewRootImpl[MainActivity]#0(BLAST Consumer)0 disconnect: api 1
E/BLASTBufferQueue( 3483): BLASTBufferItemConsumer::onDisconnect()
I/BLASTBufferQueue( 3483): [ViewRootImpl[MainActivity]#0] destructor()
I/BufferQueueConsumer( 3483): ViewRootImpl[MainActivity]#0(BLAST Consumer)0 disconnect

@saghul
Copy link
Member

saghul commented Nov 15, 2022

This issue is not about the web API but about the SDK.

@zihadul10101
Copy link

2023-01-01 12:31:01.611 13674-13849/com.example.jsontry E/ion: ioctl c0044901 failed with code -1: Invalid argument
2023-01-01 12:31:01.677 13674-13702/com.example.jsontry E/OpenGLRenderer: fbcNotifyFrameComplete error: undefined symbol: fbcNotifyFrameComplete
2023-01-01 12:31:01.677 13674-13702/com.example.jsontry E/OpenGLRenderer: fbcNotifyNoRender error: undefined symbol: fbcNotifyNoRender what can i do;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants