detachFromContext: invalid current EGLDisplay
When I often create and dispose a VlcPlayer with its Controller this error happens sometimes and the app crashes.
Its hard to recreate this error, but if necessery I can think of a solution.
This is my current code to create a VlcPlayer Widget:
class VideoPlayerWidget extends StatefulWidget {
final VlcPlayerController controller;
const VideoPlayerWidget({required this.controller, Key? key}) : super(key: key);
@override
State<VideoPlayerWidget> createState() => _VideoPlayerWidgetState();
}
class _VideoPlayerWidgetState extends State<VideoPlayerWidget> {
@override
void dispose() async {
super.dispose();
await widget.controller.stopRendererScanning();
await widget.controller.dispose();
}
@override
Widget build(BuildContext context) {
return Container(
constraints: BoxConstraints.expand(),
child: FittedBox(
fit: BoxFit.cover,
child: SizedBox(
width: 100,
height: 100,
child: VlcPlayer(controller: widget.controller, aspectRatio: 1,)),
),
);
}
}
This is shown in the Run Log:
D/mali_winsys(28318): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
D/OpenGLRenderer(28318): eglCreateWindowSurface = 0x74be5b9d00, 0x74a0d11010
I/flutter (28318): --- VIDEO WIDGET DISPOSED
E/BufferQueueProducer(28318): [SurfaceTexture-0-28318-190] queueBuffer: BufferQueue has been abandoned
E/Surface (28318): queueBuffer: error queuing buffer to SurfaceTexture, -19
E/libEGL (28318): eglMakeCurrent:1305 error 300b (EGL_BAD_NATIVE_WINDOW)
I/chatty (28318): uid=10408(com.example.find_your_experience) AWindowHandler identical 1 line
E/libEGL (28318): eglMakeCurrent:1305 error 300b (EGL_BAD_NATIVE_WINDOW)
I/ACodec (28318): [OMX.Exynos.avc.dec] signalFlush
E/NdkMediaCodec(28318): sf error code: -38
I/ACodec (28318): [OMX.Exynos.avc.dec] ExecutingState flushing now (codec owns 5/5 input, 8/13 output).
I/ACodec (28318): [OMX.Exynos.avc.dec] Now Flushing
I/ACodec (28318): [OMX.Exynos.avc.dec] FlushingState onOMXEvent(0,1,0)
I/ACodec (28318): [OMX.Exynos.avc.dec] FlushingState onOMXEvent(0,1,1)
I/ACodec (28318): [OMX.Exynos.avc.dec] Now Executing
E/libEGL (28318): eglMakeCurrent:1305 error 300b (EGL_BAD_NATIVE_WINDOW)
I/ACodec (28318): [OMX.Exynos.avc.dec] Now Executing->Idle
I/ACodec (28318): [OMX.Exynos.avc.dec] Now Idle->Loaded
I/ACodec (28318): [OMX.Exynos.avc.dec] Now Loaded
I/ACodec (28318): [OMX.Exynos.avc.dec] Now kWhatShutdownCompleted event : 8553
D/SurfaceUtils(28318): disconnecting from surface 0x74a2884010, reason disconnectFromSurface
I/SmartFittingClass(28318): ShutDownSmartFitting!!
I/SmartFittingClass(28318): SmartFittingManagerServiceProxy::Deinit
I/SmartFittingClass(28318): Destroy SmartFitting!!
I/SmartFittingClass(28318): Destroy ~SmartFittingManagerServiceProxy::EventHandler
I/SmartFittingClass(28318): Destroy SmartFittingManagerServiceProxy!!
I/SmartFittingClass(28318): Destroy SmartFittingListener
I/ACodec (28318): [OMX.Exynos.avc.dec] Now uninitialized
I/ACodec (28318): [] Now kWhatShutdownCompleted event : 8553
I/MediaCodec(28318): Codec shutdown complete
D/AudioTrack(28318): stop() called with 0 frames delivered
I/AudioTrack(28318): Skip ramp
E/libEGL (28318): eglMakeCurrent:1305 error 300b (EGL_BAD_NATIVE_WINDOW)
E/libEGL (28318): call to OpenGL ES API with no current context (logged once per thread)
E/GLConsumer(28318): [SurfaceTexture-0-28318-192] detachFromContext: invalid current EGLDisplay
F/your_experienc(28318): java_vm_ext.cc:542] JNI DETECTED ERROR IN APPLICATION: JNI GetJavaVM called with pending exception java.lang.RuntimeException: Error during detachFromGLContext (see logcat for details)
F/your_experienc(28318): java_vm_ext.cc:542] at void android.graphics.SurfaceTexture.detachFromGLContext() (SurfaceTexture.java:269)
F/your_experienc(28318): java_vm_ext.cc:542] at void org.videolan.libvlc.AWindow$SurfaceTextureThread.detachFromGLContext() (AWindow.java:672)
F/your_experienc(28318): java_vm_ext.cc:542] at void org.videolan.libvlc.AWindow$SurfaceTextureThread.access$1600(org.videolan.libvlc.AWindow$SurfaceTextureThread) (AWindow.java:580)
F/your_experienc(28318): java_vm_ext.cc:542] at void org.videolan.libvlc.AWindow.SurfaceTexture_detachFromGLContext() (AWindow.java:731)
F/your_experienc(28318): java_vm_ext.cc:542]
F/your_experienc(28318): java_vm_ext.cc:542] in call to GetJavaVM
F/your_experienc(28318): java_vm_ext.cc:542] "AWindowHandler" prio=10 tid=15 Runnable
F/your_experienc(28318): java_vm_ext.cc:542] | group="main" sCount=0 dsCount=0 flags=0 obj=0x17702b68 self=0x74bdd15800
F/your_experienc(28318): java_vm_ext.cc:542] | sysTid=30510 nice=-10 cgrp=default sched=0/0 handle=0x748dfff4f0
F/your_experienc(28318): java_vm_ext.cc:542] | state=R schedstat=( 128565035 29699374 418 ) utm=10 stm=2 core=6 HZ=100
F/your_experienc(28318): java_vm_ext.cc:542] | stack=0x748df04000-0x748df06000 stackSize=1009KB
F/your_experienc(28318): java_vm_ext.cc:542] | held mutexes= "mutator lock"(shared held)
F/your_experienc(28318): java_vm_ext.cc:542] native: #00 pc 00000000003cbdec /system/lib64/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, int, BacktraceMap*, char const*, art::ArtMethod*, void*, bool)+220)
F/your_experienc(28318): java_vm_ext.cc:542] native: #01 pc 000000000049ba30 /system/lib64/libart.so (art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool, BacktraceMap*, bool) const+352)
F/your_experienc(28318): java_vm_ext.cc:542] native: #02 pc 00000000002ec874 /system/lib64/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+972)
F/your_experienc(28318): java_vm_ext.cc:542] native: #03 pc 00000000002ecc94 /system/lib64/libart.so (art::JavaVMExt::JniAbortV(char const*, char const*, std::__va_list)+108)
F/your_experienc(28318): java_vm_ext.cc:542] native: #04 pc 00000000000fdff8 /system/lib64/libart.so (art::(anonymous namespace)::ScopedCheck::AbortF(char const*, ...)+144)
F/your_experienc(28318): java_vm_ext.cc:542] native: #05 pc 00000000000fc9a8 /system/lib64/libart.so (art::(anonymous namespace)::ScopedCheck::CheckPossibleHeapValue(art::ScopedObjectAccess&, char, art::(anonymous namespace)::JniValueType)+1144)
F/your_experienc(28318): java_vm_ext.cc:542] native: #06 pc 00000000000fbd1c /system/lib64/libart.so (art::(anonymous namespace)::ScopedCheck::Check(art::ScopedObjectAccess&, bool, char const*, art::(anonymous namespace)::JniValueType*)+628)
F/your_experienc(28318): java_vm_ext.cc:542] native: #07 pc 00000000000f6e28 /system/lib64/libart.so (art::(anonymous namespace)::CheckJNI::GetJavaVM(_JNIEnv*, _JavaVM**)+688)
F/your_experienc(28318): java_vm_ext.cc:542] native: #08 pc 0000000000519350 /data/app/com.example.find_your_experience-292XefYu7hdVXgOcPQ48hg==/lib/arm64/libvlc.so (???)
F/your_experienc(28318): java_vm_ext.cc:542] native: #09 pc 0000000000085528 /system/lib64/libc.so (pthread_key_clean_all()+120)
F/your_experienc(28318): java_vm_ext.cc:542] native: #10 pc 0000000000084f78 /system/lib64/libc.so (pthread_exit+72)
F/your_experienc(28318): java_vm_ext.cc:542] native: #11 pc 0000000000084e50 /system/lib64/libc.so (__pthread_start(void*)+304)
F/your_experienc(28318): java_vm_ext.cc:542] native: #12 pc 0000000000023a8c /system/lib64/libc.so (__start_thread+68)
F/your_experienc(28318): java_vm_ext.cc:542] (no managed stack frames)
F/your_experienc(28318): java_vm_ext.cc:542]
F/your_experienc(28318): thread.cc:2155] No pending exception expected: java.lang.RuntimeException: Error during detachFromGLContext (see logcat for details)
F/your_experienc(28318): thread.cc:2155] at void android.graphics.SurfaceTexture.detachFromGLContext() (SurfaceTexture.java:269)
F/your_experienc(28318): thread.cc:2155] at void org.videolan.libvlc.AWindow$SurfaceTextureThread.detachFromGLContext() (AWindow.java:672)
F/your_experienc(28318): thread.cc:2155] at void org.videolan.libvlc.AWindow$SurfaceTextureThread.access$1600(org.videolan.libvlc.AWindow$SurfaceTextureThread) (AWindow.java:580)
F/your_experienc(28318): thread.cc:2155] at void org.videolan.libvlc.AWindow.SurfaceTexture_detachFromGLContext() (AWindow.java:731)
F/your_experienc(28318): thread.cc:2155]
F/your_experienc(28318): runtime.cc:574] Runtime aborting --- recursively, so no thread-specific detail!
F/your_experienc(28318): runtime.cc:574] #00 pc 00000000003cbdec /system/lib64/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, int, BacktraceMap*, char const*, art::ArtMethod*, void*, bool)+220)
F/your_experienc(28318): runtime.cc:574] #01 pc 0000000000470070 /system/lib64/libart.so (art::Runtime::Abort(char const*)+312)
F/your_experienc(28318): runtime.cc:574] #02 pc 0000000000008d2c /system/lib64/libbase.so (android::base::LogMessage::~LogMessage()+724)
F/your_experienc(28318): runtime.cc:574] #03 pc 00000000004a0d38 /system/lib64/libart.so (art::Thread::AssertNoPendingException() const+1144)
F/your_experienc(28318): runtime.cc:574] #04 pc 000000000011d058 /system/lib64/libart.so (art::ClassLinker::FindClass(art::Thread*, char const*, art::Handle<art::mirror::ClassLoader>)+64)
F/your_experienc(28318): runtime.cc:574] #05 pc 00000000001377c4 /system/lib64/libart.so (art::ClassLinker::DoResolveType(art::dex::TypeIndex, art::Handle<art::mirror::DexCache>, art::Handle<art::mirror::ClassLoader>)+188)
F/your_experienc(28318): runtime.cc:574] #06 pc 00000000004cb980 /system/lib64/libart.so (art::verifier::MethodVerifier::ScanTryCatchBlocks()+496)
F/your_experienc(28318): runtime.cc:574] #07 pc 00000000004c8b2c /system/lib64/libart.so (art::verifier::MethodVerifier::Verify()+684)
F/your_experienc(28318): runtime.cc:574] #08 pc 00000000004cb444 /system/lib64/libart.so (art::verifier::MethodVerifier::FindLocksAtDexPc()+140)
F/your_experienc(28318): runtime.cc:574] #09 pc 00000000004cb328 /system/lib64/libart.so (art::verifier::MethodVerifier::FindLocksAtDexPc(art::ArtMethod*, unsigned int, std::__1::vector<art::verifier::MethodVerifier::DexLockInfo, std::__1::allocator<art::verifier::MethodVerifier::DexLockInfo>>*, unsigned int)+536)
F/your_experienc(28318): runtime.cc:574] #10 pc 00000000003c967c /system/lib64/libart.so (art::Monitor::VisitLocks(art::StackVisitor*, void (*)(art::mirror::Object*, void*), void*, bool)+828)
F/your_experienc(28318): runtime.cc:574] #11 pc 00000000004aa3dc /system/lib64/libart.so (art::MonitorObjectsStackVisitor::VisitFrame()+164)
F/your_experienc(28318): runtime.cc:574] #12 pc 000000000048a250 /system/lib64/libart.so (_ZN3art12StackVisitor9WalkStackILNS0_16CountTransitionsE0EEEvb+1656)
F/your_experienc(28318): runtime.cc:574] #13 pc 000000000049fb00 /system/lib64/libart.so (art::Thread::DumpJavaStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool, bool) const+320)
F/your_experienc(28318): runtime.cc:574] #14 pc 000000000049ba48 /system/lib64/libart.so (art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool, BacktraceMap*, bool) const+376)
F/your_experienc(28318): runtime.cc:574] #15 pc 00000000004b5b24 /system/lib64/libart.so (art::DumpCheckpoint::Run(art::Thread*)+844)
F/your_experienc(28318): runtime.cc:574] #16 pc 00000000004aec2c /system/lib64/libart.so (art::ThreadList::RunCheckpoint(art::Closure*, art::Closure*)+1444)
F/your_experienc(28318): runtime.cc:574] #17 pc 00000000004adc48 /system/lib64/libart.so (art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool)+1120)
F/your_experienc(28318): runtime.cc:574] #18 pc 00000000004700c0 /system/lib64/libart.so (art::Runtime::Abort(char const*)+392)
F/your_experienc(28318): runtime.cc:574] #19 pc 0000000000008d2c /system/lib64/libbase.so (android::base::LogMessage::~LogMessage()+724)
F/your_experienc(28318): runtime.cc:574] #20 pc 00000000002ecb20 /system/lib64/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+1656)
F/your_experienc(28318): runtime.cc:574] #21 pc 00000000002ecc94 /system/lib64/libart.so (art::JavaVMExt::JniAbortV(char const*, char const*, std::__va_list)+108)
F/your_experienc(28318): runtime.cc:574] #22 pc 00000000000fdff8 /system/lib64/libart.so (art::(anonymous namespace)::ScopedCheck::AbortF(char const*, ...)+144)
F/your_experienc(28318): runtime.cc:574] #23 pc 00000000000fc9a8 /system/lib64/libart.so (art::(anonymous namespace)::ScopedCheck::CheckPossibleHeapValue(art::ScopedObjectAccess&, char, art::(anonymous namespace)::JniValueType)+1144)
F/your_experienc(28318): runtime.cc:574] #24 pc 00000000000fbd1c /system/lib64/libart.so (art::(anonymous namespace)::ScopedCheck::Check(art::ScopedObjectAccess&, bool, char const*, art::(anonymous namespace)::JniValueType*)+628)
F/your_experienc(28318): runtime.cc:574] #25 pc 00000000000f6e28 /system/lib64/libart.so (art::(anonymous namespace)::CheckJNI::GetJavaVM(_JNIEnv*, _JavaVM**)+688)
F/your_experienc(28318): runtime.cc:574] #26 pc 0000000000519350 /data/app/com.example.find_your_experience-292XefYu7hdVXgOcPQ48hg==/lib/arm64/libvlc.so (???)
F/your_experienc(28318): runtime.cc:574] #27 pc 0000000000085528 /system/lib64/libc.so (pthread_key_clean_all()+120)
F/your_experienc(28318): runtime.cc:574] #28 pc 0000000000084f78 /system/lib64/libc.so (pthread_exit+72)
F/your_experienc(28318): runtime.cc:574] #29 pc 0000000000084e50 /system/lib64/libc.so (__pthread_start(void*)+304)
F/your_experienc(28318): runtime.cc:574] #30 pc 0000000000023a8c /system/lib64/libc.so (__start_thread+68)
F/your_experienc(28318): runtime.cc:574]
F/your_experienc(28318): runtime.cc:582] No pending exception expected: java.lang.RuntimeException: Error during detachFromGLContext (see logcat for details)
F/your_experienc(28318): runtime.cc:582] at void android.graphics.SurfaceTexture.detachFromGLContext() (SurfaceTexture.java:269)
F/your_experienc(28318): runtime.cc:582] at void org.videolan.libvlc.AWindow$SurfaceTextureThread.detachFromGLContext() (AWindow.java:672)
F/your_experienc(28318): runtime.cc:582] at void org.videolan.libvlc.AWindow$SurfaceTextureThread.access$1600(org.videolan.libvlc.AWindow$SurfaceTextureThread) (AWindow.java:580)
F/your_experienc(28318): runtime.cc:582] at void org.videolan.libvlc.AWindow.SurfaceTexture_detachFromGLContext() (AWindow.java:731)
F/your_experienc(28318): runtime.cc:582]
F/your_experienc(28318): runtime.cc:582]
W/your_experienc(28318): 0xebadde09 skipped times: 0
F/libc (28318): Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 30510 (AWindowHandler), pid 28318 (your_experience)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'samsung/greatltexx/greatlte:9/PPR1.180610.011/N950FXXSGDUG6:user/release-keys'
Revision: '9'
ABI: 'arm64'
pid: 28318, tid: 30510, name: AWindowHandler >>> com.example.find_your_experience <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: 'java_vm_ext.cc:542] JNI DETECTED ERROR IN APPLICATION: JNI GetJavaVM called with pending exception java.lang.RuntimeException: Error during detachFromGLContext (see logcat for details)'
x0 0000000000000000 x1 000000000000772e x2 0000000000000006 x3 0000000000000008
x4 0000000000000000 x5 0000000000000000 x6 0000000000000000 x7 0000000000000080
x8 0000000000000083 x9 000000756a47c838 x10 fffffff87ffffbdf x11 0000000000000001
x12 0000000000000014 x13 000000756a4bf1c8 x14 00000000ffffffff x15 00002d6a33b0af90
x16 000000756a4b32a0 x17 000000756a3f2920 x18 000000748dffcd6a x19 0000000000006e9e
x20 000000000000772e x21 0000000000000083 x22 00000074e49dec60 x23 00000074690f9b80
x24 000000000000000d x25 000000748dffdb89 x26 00000074e49dec60 x27 000000000000082e
x28 000000748dfff588 x29 000000748dffdaf0
sp 000000748dffdab0 lr 000000756a3e5d68 pc 000000756a3e5d94
backtrace:
#00 pc 0000000000021d94 /system/lib64/libc.so (abort+124)
#01 pc 0000000000470460 /system/lib64/libart.so (art::Runtime::Abort(char const*)+1320)
#02 pc 0000000000008d2c /system/lib64/libbase.so (android::base::LogMessage::~LogMessage()+724)
#03 pc 00000000004a0d38 /system/lib64/libart.so (art::Thread::AssertNoPendingException() const+1144)
#04 pc 000000000011d058 /system/lib64/libart.so (art::ClassLinker::FindClass(art::Thread*, char const*, art::Handle<art::mirror::ClassLoader>)+64)
#05 pc 00000000001377c4 /system/lib64/libart.so (art::ClassLinker::DoResolveType(art::dex::TypeIndex, art::Handle<art::mirror::DexCache>, art::Handle<art::mirror::ClassLoader>)+188)
#06 pc 00000000004cb980 /system/lib64/libart.so (art::verifier::MethodVerifier::ScanTryCatchBlocks()+496)
#07 pc 00000000004c8b2c /system/lib64/libart.so (art::verifier::MethodVerifier::Verify()+684)
#08 pc 00000000004cb444 /system/lib64/libart.so (art::verifier::MethodVerifier::FindLocksAtDexPc()+140)
#09 pc 00000000004cb328 /system/lib64/libart.so (art::verifier::MethodVerifier::FindLocksAtDexPc(art::ArtMethod*, unsigned int, std::__1::vector<art::verifier::MethodVerifier::DexLockInfo, std::__1::allocator<art::verifier::MethodVerifier::DexLockInfo>>*, unsigned int)+536)
#10 pc 00000000003c967c /system/lib64/libart.so (art::Monitor::VisitLocks(art::StackVisitor*, void (*)(art::mirror::Object*, void*), void*, bool)+828)
#11 pc 00000000004aa3dc /system/lib64/libart.so (art::MonitorObjectsStackVisitor::VisitFrame()+164)
#12 pc 000000000048a250 /system/lib64/libart.so (_ZN3art12StackVisitor9WalkStackILNS0_16CountTransitionsE0EEEvb+1656)
#13 pc 000000000049fb00 /system/lib64/libart.so (art::Thread::DumpJavaStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool, bool) const+320)
#14 pc 000000000049ba48 /system/lib64/libart.so (art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool, BacktraceMap*, bool) const+376)
#15 pc 00000000004b5b24 /system/lib64/libart.so (art::DumpCheckpoint::Run(art::Thread*)+844)
#16 pc 00000000004aec2c /system/lib64/libart.so (art::ThreadList::RunCheckpoint(art::Closure*, art::Closure*)+1444)
#17 pc 00000000004adc48 /system/lib64/libart.so (art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool)+1120)
#18 pc 00000000004700c0 /system/lib64/libart.so (art::Runtime::Abort(char const*)+392)
#19 pc 0000000000008d2c /system/lib64/libbase.so (android::base::LogMessage::~LogMessage()+724)
#20 pc 00000000002ecb20 /system/lib64/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+1656)
#21 pc 00000000002ecc94 /system/lib64/libart.so (art::JavaVMExt::JniAbortV(char const*, char const*, std::__va_list)+108)
#22 pc 00000000000fdff8 /system/lib64/libart.so (art::(anonymous namespace)::ScopedCheck::AbortF(char const*, ...)+144)
#23 pc 00000000000fc9a8 /system/lib64/libart.so (art::(anonymous namespace)::ScopedCheck::CheckPossibleHeapValue(art::ScopedObjectAccess&, char, art::(anonymous namespace)::JniValueType)+1144)
#24 pc 00000000000fbd1c /system/lib64/libart.so (art::(anonymous namespace)::ScopedCheck::Check(art::ScopedObjectAccess&, bool, char const*, art::(anonymous namespace)::JniValueType*)+628)
#25 pc 00000000000f6e28 /system/lib64/libart.so (art::(anonymous namespace)::CheckJNI::GetJavaVM(_JNIEnv*, _JavaVM**)+688)
#26 pc 0000000000519350 /data/app/com.example.find_your_experience-292XefYu7hdVXgOcPQ48hg==/lib/arm64/libvlc.so
#27 pc 0000000000085528 /system/lib64/libc.so (pthread_key_clean_all()+120)
#28 pc 0000000000084f78 /system/lib64/libc.so (pthread_exit+72)
#29 pc 0000000000084e50 /system/lib64/libc.so (__pthread_start(void*)+304)
#30 pc 0000000000023a8c /system/lib64/libc.so (__start_thread+68)
Flutter doctor:
[√] Flutter (Channel stable, 3.0.5, on Microsoft Windows [Version 10.0.22000.795], locale de-DE) • Flutter version 3.0.5 at C:\Users\halal\SDKs\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision f1875d570e (2 days ago), 2022-07-13 11:24:16 -0700 • Engine revision e85ea0e79c • Dart version 2.17.6 • DevTools version 2.12.2
[√] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1) • Android SDK at C:\Users\halal\AppData\Local\Android\Sdk • Platform android-32, build-tools 32.1.0-rc1 • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840) • All Android licenses accepted.
[√] Chrome - develop for the web • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[X] Visual Studio - develop for Windows X Visual Studio not installed; this is necessary for Windows development. Download at https://visualstudio.microsoft.com/downloads/. Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2021.2) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)
[√] Connected device (3 available) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22000.795] • Chrome (web) • chrome • web-javascript • Google Chrome 103.0.5060.114 • Edge (web) • edge • web-javascript • Microsoft Edge 103.0.1264.44
[√] HTTP Host Availability • All required HTTP hosts are available
Stop the video before disposing. It helped me get rid of this error
Thank you very much!