Media Framework/ Android Camera do not work with Android 14

Hello.

I did implement camera capturing from Android smartphone according to

And it was working perfectly on Android 11/UE 5.3

I’ve migrated my project to Android 14 and UE 5.5 and faced severe error with Media Framework - when I am trying to ‘Open Url’ of camera I get next error (app fails):

LogPlayLevel: UAT: 12-06 18:52:41.469 31060 31211 D UE      : FAndroidCameraPlayer::EnumerateVideoCaptureDevices
LogPlayLevel: UAT: 12-06 18:52:41.491 31060 31211 D UE      : [2024.12.06-16.52.41:491][851]LogBlueprintUserMessages: [Main_UI_WB_C_2147482449] Android back camera
LogPlayLevel: UAT: 12-06 18:52:41.492 31060 31211 D UE      : [2024.12.06-16.52.41:492][851]LogBlueprintUserMessages: [Main_UI_WB_C_2147482449] TRYING TO OPEN URL
LogPlayLevel: UAT: 12-06 18:52:41.493 31060 31211 D UE      : [2024.12.06-16.52.41:493][851]LogBlueprintUserMessages: [Main_UI_WB_C_2147482449] vidcap://rear
LogPlayLevel: UAT: 12-06 18:52:41.493 31060 31211 D UE      : [2024.12.06-16.52.41:493][851]LogBlueprintUserMessages: [Main_UI_WB_C_2147482449] Android front camera
LogPlayLevel: UAT: 12-06 18:52:41.494 31060 31211 D UE      : [2024.12.06-16.52.41:494][851]LogBlueprintUserMessages: [Main_UI_WB_C_2147482449] TRYING TO OPEN URL
LogPlayLevel: UAT: 12-06 18:52:41.495 31060 31211 D UE      : [2024.12.06-16.52.41:495][851]LogBlueprintUserMessages: [Main_UI_WB_C_2147482449] vidcap://rear
LogPlayLevel: UAT: 12-06 18:52:43.064 31060 31211 D UE      : [GameActivity] Camera supported
LogPlayLevel: UAT: 12-06 18:52:43.098 31060 31211 D UE      : [GameActivity] CameraPlayer14: frontId=1, backId=0
LogPlayLevel: UAT: 12-06 18:52:43.101 31060 31211 D UE      : IMediaPlayer SetGuid: EB70D4424BC53E233A59C0A47D6D4DBD
LogPlayLevel: UAT: 12-06 18:52:43.101 31060 31211 D UE      : FAndroidCamera::Open(vidcap://rear) - EB70D4424BC53E233A59C0A47D6D4DBD
LogPlayLevel: UAT: 12-06 18:52:43.101 31060 31211 D UE      : FAndroidCamera::Close() - EB70D4424BC53E233A59C0A47D6D4DBD
LogPlayLevel: UAT: 12-06 18:52:43.350 31060 31211 D UE      : [GameActivity] setDataSource: id=0, width=306, height=408, fps=30, min=30000 max=30000 orientation=90
LogPlayLevel: UAT: 12-06 18:52:43.350 31060 31211 D UE      : [GameActivity] getDataSource: vidcap://rear?width=306?height=408?fps=30
LogPlayLevel: UAT: 12-06 18:52:43.350 31060 31211 D UE      : FAndroidCamera::InitializePlayer EB70D4424BC53E233A59C0A47D6D4DBD
LogPlayLevel: UAT: 12-06 18:52:43.353 31060 31211 D UE      : [2024.12.06-16.52.43:353][874]LogBlueprintUserMessages: [Main_UI_WB_C_2147482449] SUCCESFULLY OPENED URL
LogTcpMessaging: Discovered node 'AF3F87F4CB304008A5A9B08BBE02D641' on connection '127.0.0.1:6666'...
LogPlayLevel: UAT: 12-06 18:52:43.354 31060 31211 D UE      : [2024.12.06-16.52.43:354][874]LogBlueprintUserMessages: [Main_UI_WB_C_2147482449] vidcap://rear
LogPlayLevel: UAT: 12-06 18:52:43.392 31060 31916 D UE      : [2024.12.06-16.52.43:392][876]LogTcpMessaging: Started Connection to '127.0.0.1:43081'
LogPlayLevel: UAT: 12-06 18:52:43.393 31060 31916 D UE      : [2024.12.06-16.52.43:393][876]LogTcpMessaging: Discovered node 'E7BF15744BD5613C17D8BB97E8889743' on connection '127.0.0.1:43081'...
LogPlayLevel: Error: UAT: 12-06 18:52:43.616 31060 31291 D UE      : Fatal error: [File:Runtime\OpenGLDrv\Private/OpenGLResources.h] [Line: 1005]
LogPlayLevel: UAT: 12-06 18:52:43.616 31060 31291 D UE      : Potential use of GL context from incorrect thread. [ValidContext = 0] && [IsInGameThread() = 0, IsInRenderingThread() = 1, IsInRHIThread() = 0, IsRunningRHIInSeparateThread() = 1]
LogPlayLevel: Error: UAT: 12-06 18:52:43.617 31060 31291 D UE      : [2024.12.06-16.52.43:617][876]Fatal error: [File:Runtime\OpenGLDrv\Private/OpenGLResources.h] [Line: 1005]
LogPlayLevel: UAT: 12-06 18:52:43.617 31060 31291 D UE      : Potential use of GL context from incorrect thread. [ValidContext = 0] && [IsInGameThread() = 0, IsInRenderingThread() = 1, IsInRHIThread() = 0, IsRunningRHIInSeparateThread() = 1]
LogPlayLevel: UAT: 12-06 18:52:43.617 31060 31291 D UE      : 0x0000006F9F2D7E4C libUnreal.so(0x0000000011E49E4C)!FOpenGLTexture::GetResourceRef()  []
LogPlayLevel: UAT: 12-06 18:52:43.617 31060 31291 D UE      : 0x0000006F9F3EE628 libUnreal.so(0x0000000011F60628)![Unknown]()  []
LogPlayLevel: UAT: 12-06 18:52:43.617 31060 31291 D UE      : 0x0000006F9F3EF588 libUnreal.so(0x0000000011F61588)![Unknown]()  []
LogPlayLevel: UAT: 12-06 18:52:43.617 31060 31291 D UE      : 0x0000006F97B6BE1C libUnreal.so(0x000000000A6DDE1C)!UE::Tasks::Private::FTaskBase::TryExecuteTask()  []
LogPlayLevel: UAT: 12-06 18:52:43.617 31060 31291 D UE      : 0x0000006F97B761A8 libUnreal.so(0x000000000A6E81A8)!FNamedTaskThread::ProcessTasksNamedThread(int, bool)  []
LogPlayLevel: UAT: 12-06 18:52:43.617 31060 31291 D UE      : 0x0000006F97B7507C libUnreal.so(0x000000000A6E707C)!FNamedTaskThread::ProcessTasksUntilQuit(int)  []
LogPlayLevel: UAT: 12-06 18:52:43.617 31060 31291 D UE      : 0x0000006F99AD6414 libUnreal.so(0x000000000C648414)!RenderingThreadMain(FEvent*)  []
LogPlayLevel: UAT: 12-06 18:52:43.617 31060 31291 D UE      : 0x0000006F99B2A42C libUnreal.so(0x000000000C69C42C)!FRenderingThread::Run()  []
LogPlayLevel: UAT: 12-06 18:52:43.617 31060 31291 D UE      : 0x0000006F97D5D6F0 libUnreal.so(0x000000000A8CF6F0)!FRunnableThreadPThread::Run()  []
LogPlayLevel: UAT: 12-06 18:52:43.617 31060 31291 D UE      : 0x0000006F97B6FFE4 libUnreal.so(0x000000000A6E1FE4)!FRunnableThreadPThread::_ThreadProc(void*)  []
LogPlayLevel: UAT: 12-06 18:52:43.617 31060 31291 D UE      : 0x00000070D432ED44 libc.so(0x0000000000102D44)![Unknown]()  []
LogPlayLevel: UAT: 12-06 18:52:43.617 31060 31291 D UE      : 0x00000070D42C2B54 libc.so(0x0000000000096B54)![Unknown]()  []
LogPlayLevel: UAT: 12-06 18:52:43.617 31060 31291 D UE      :
LogPlayLevel: UAT: 12-06 18:52:43.617 31060 31291 D UE      :
LogPlayLevel: UAT: 12-06 18:52:43.617 31060 31291 D UE      :
LogPlayLevel: Error: UAT: 12-06 18:52:43.617 31060 31291 D UE      : [2024.12.06-16.52.43:617][876]LogAndroid: Error: === Critical error: ===
LogPlayLevel: Error: UAT: 12-06 18:52:43.617 31060 31291 D UE      : [2024.12.06-16.52.43:617][876]LogAndroid: Error:
LogPlayLevel: Error: UAT: 12-06 18:52:43.617 31060 31291 D UE      : [2024.12.06-16.52.43:617][876]LogAndroid: Error: Fatal error: [File:Runtime\OpenGLDrv\Private/OpenGLResources.h] [Line: 1005]
LogPlayLevel: Error: UAT: 12-06 18:52:43.617 31060 31291 D UE      : [2024.12.06-16.52.43:617][876]LogAndroid: Error: Potential use of GL context from incorrect thread. [ValidContext = 0] && [IsInGameThread() = 0, IsInRenderingThread() = 1, IsInRHIThread() = 0, IsRunningRHIInSeparateThread() = 1]
LogPlayLevel: Error: UAT: 12-06 18:52:43.617 31060 31291 D UE      : [2024.12.06-16.52.43:617][876]LogAndroid: Error: [Callstack] 0x0000006F9F2D7E4C libUnreal.so(0x0000000011E49E4C)!FOpenGLTexture::GetResourceRef()  []
LogPlayLevel: Error: UAT: 12-06 18:52:43.617 31060 31291 D UE      : [2024.12.06-16.52.43:617][876]LogAndroid: Error: [Callstack] 0x0000006F9F3EE628 libUnreal.so(0x0000000011F60628)![Unknown]()  []
LogPlayLevel: Error: UAT: 12-06 18:52:43.617 31060 31291 D UE      : [2024.12.06-16.52.43:617][876]LogAndroid: Error: [Callstack] 0x0000006F9F3EF588 libUnreal.so(0x0000000011F61588)![Unknown]()  []
LogPlayLevel: Error: UAT: 12-06 18:52:43.617 31060 31291 D UE      : [2024.12.06-16.52.43:617][876]LogAndroid: Error: [Callstack] 0x0000006F97B6BE1C libUnreal.so(0x000000000A6DDE1C)!UE::Tasks::Private::FTaskBase::TryExecuteTask()  []
LogPlayLevel: Error: UAT: 12-06 18:52:43.617 31060 31291 D UE      : [2024.12.06-16.52.43:617][876]LogAndroid: Error: [Callstack] 0x0000006F97B761A8 libUnreal.so(0x000000000A6E81A8)!FNamedTaskThread::ProcessTasksNamedThread(int, bool)  []
LogPlayLevel: Error: UAT: 12-06 18:52:43.618 31060 31291 D UE      : [2024.12.06-16.52.43:617][876]LogAndroid: Error: [Callstack] 0x0000006F97B7507C libUnreal.so(0x000000000A6E707C)!FNamedTaskThread::ProcessTasksUntilQuit(int)  []
LogPlayLevel: Error: UAT: 12-06 18:52:43.618 31060 31291 D UE      : [2024.12.06-16.52.43:618][876]LogAndroid: Error: [Callstack] 0x0000006F99AD6414 libUnreal.so(0x000000000C648414)!RenderingThreadMain(FEvent*)  []
LogPlayLevel: Error: UAT: 12-06 18:52:43.618 31060 31291 D UE      : [2024.12.06-16.52.43:618][876]LogAndroid: Error: [Callstack] 0x0000006F99B2A42C libUnreal.so(0x000000000C69C42C)!FRenderingThread::Run()  []
LogPlayLevel: Error: UAT: 12-06 18:52:43.618 31060 31291 D UE      : [2024.12.06-16.52.43:618][876]LogAndroid: Error: [Callstack] 0x0000006F97D5D6F0 libUnreal.so(0x000000000A8CF6F0)!FRunnableThreadPThread::Run()  []
LogPlayLevel: Error: UAT: 12-06 18:52:43.618 31060 31291 D UE      : [2024.12.06-16.52.43:618][876]LogAndroid: Error: [Callstack] 0x0000006F97B6FFE4 libUnreal.so(0x000000000A6E1FE4)!FRunnableThreadPThread::_ThreadProc(void*)  []
LogPlayLevel: Error: UAT: 12-06 18:52:43.618 31060 31291 D UE      : [2024.12.06-16.52.43:618][876]LogAndroid: Error: [Callstack] 0x00000070D432ED44 libc.so(0x0000000000102D44)![Unknown]()  []
LogPlayLevel: Error: UAT: 12-06 18:52:43.618 31060 31291 D UE      : [2024.12.06-16.52.43:618][876]LogAndroid: Error: [Callstack] 0x00000070D42C2B54 libc.so(0x0000000000096B54)![Unknown]()  []
LogPlayLevel: Error: UAT: 12-06 18:52:43.618 31060 31291 D UE      : [2024.12.06-16.52.43:618][876]LogAndroid: Error:
LogPlayLevel: Error: UAT: 12-06 18:52:43.618 31060 31291 D UE      : [2024.12.06-16.52.43:618][876]LogAndroid: Error:
LogPlayLevel: Error: UAT: 12-06 18:52:43.618 31060 31291 D UE      : [2024.12.06-16.52.43:618][876]LogAndroid: Error:
LogPlayLevel: Error: UAT: 12-06 18:52:43.618 31060 31291 D UE      : [2024.12.06-16.52.43:618][876]LogAndroid: Error:
LogPlayLevel: UAT: 12-06 18:52:43.625 31060 31291 D UE      : [2024.12.06-16.52.43:625][876]LogExit: Executing StaticShutdownAfterError
LogEOSSDK: LogEOS: Updating Product SDK Config, Time: 1017.088318
LogEOSSDK: LogEOS: SDK Config Product Update Request Completed - No Change
LogEOSSDK: LogEOS: ScheduleNextSDKConfigDataUpdate - Time: 1017.754822, Update Interval: 340.093994
LogSlate: Window 'Output Log' being destroyed

So right after UE is trying to open camera ( Started Connection to ‘127.0.0.1:43081’) it fails with

LogPlayLevel: Error: UAT: 12-06 18:52:43.617 31060 31291 D UE      : [2024.12.06-16.52.43:617][876]LogAndroid: Error: Fatal error: [File:Runtime\OpenGLDrv\Private/OpenGLResources.h] [Line: 1005]
LogPlayLevel: Error: UAT: 12-06 18:52:43.617 31060 31291 D UE      : [2024.12.06-16.52.43:617][876]LogAndroid: Error: **Potential use of GL context from incorrect thread**. [ValidContext = 0] && [IsInGameThread() = 0, IsInRenderingThread() = 1, IsInRHIThread() = 0, IsRunningRHIInSeparateThread() = 1]

Blueprint looks like this

Permissions are requested


No problem with permissions at all - I can see in the phone settings that they were granted.

Anyone face similar problem ?
Please help. I am really stuck with this.

Any feedback ? Does this forum have any active users ? :smiley: How I can fix that ? This is stopper for me, I can’t release my app now. Is there any I can do to fix it ?

Any active users on this forum ? Is UE is used at all ?

Hello, dear forum diary!
It’s been six days since I last posted my question, and the silence here is so profound that I’m starting to wonder if this forum is just an elaborate performance art piece about loneliness.

I keep refreshing the page, hoping to see some sign of life, but all I hear is the faint echo of my own desperation. Is anybody out there? Or have I stumbled into a ghost town for Unreal Engine 5 enthusiasts?

Please, give me a sign. Even a “hi” would suffice. Otherwise, I’ll start naming my posts and considering them my pen pals. "Dear Post #3, today I added more questions to my unanswered pile…”

Yours in solitude,
A lost dev soul.