Flutter 使用video_player、better_player和Chuie时在颤振中出现意外DMA错误

Flutter 使用video_player、better_player和Chuie时在颤振中出现意外DMA错误,flutter,dart,flutter-video-player,Flutter,Dart,Flutter Video Player,我想播放一段视频。我收到以下错误: E/gralloc_ranchu( 2305): updateHostColorBuffer: Unexpected DMA E/ ( 2305): lockAndWriteDma: ERROR: No DMA context bound! 我只是使用的样本代码,视频播放器只是显示一个绿色的屏幕,没有做任何事情。有什么想法吗 编辑:还有一些可能有帮助的评论吗 I/ExoPlayerImpl(10386): Release 3310ed3 [E

我想播放一段视频。我收到以下错误:

E/gralloc_ranchu( 2305): updateHostColorBuffer: Unexpected DMA
E/        ( 2305): lockAndWriteDma: ERROR: No DMA context bound!

我只是使用的样本代码,视频播放器只是显示一个绿色的屏幕,没有做任何事情。有什么想法吗

编辑:还有一些可能有帮助的评论吗

I/ExoPlayerImpl(10386): Release 3310ed3 [ExoPlayerLib/2.12.1] [generic_x86_arm, AOSP on IA Emulator, Google, 28] [goog.exo.core]
D/SurfaceUtils(10386): disconnecting from surface 0xd36c1008, reason disconnectFromSurface
I/ExoPlayerImpl(10386): Release d52c17 [ExoPlayerLib/2.12.1] [generic_x86_arm, AOSP on IA Emulator, Google, 28] [goog.exo.core]
D/SurfaceUtils(10386): disconnecting from surface 0xd2c83808, reason disconnectFromSurface
I/ExoPlayerImpl(10386): Init d3251ff [ExoPlayerLib/2.12.1] [generic_x86_arm, AOSP on IA Emulator, Google, 28]
I/OMXClient(10386): IOmx service obtained
D/SurfaceUtils(10386): connecting to surface 0xd1be1008, reason connectToSurface
I/MediaCodec(10386): [OMX.google.h264.decoder] setting surface generation to 10635268
D/SurfaceUtils(10386): disconnecting from surface 0xd1be1008, reason connectToSurface(reconnect)
D/SurfaceUtils(10386): connecting to surface 0xd1be1008, reason connectToSurface(reconnect)
E/ACodec  (10386): [OMX.google.h264.decoder] setPortMode on output to DynamicANWBuffer failed w/ err -1010
I/ACodec  (10386): codec does not support config priority (err -1010)
I/OMXClient(10386): IOmx service obtained
I/ACodec  (10386): codec does not support config priority (err -2147483648)
I/ACodec  (10386): codec does not support config operating rate (err -2147483648)
D/MediaCodec(10386): [OMX.google.h264.decoder] setting dataspace on output surface to #104
I/om.example.kli(10386): Background concurrent copying GC freed 11055(2MB) AllocSpace objects, 769(50MB) LOS objects, 50% free, 5MB/10MB, paused 529us total 209.709ms
W/MapperHal(10386): buffer descriptor with invalid usage bits 0x2000

我删除了之前关于将android/app/build.gradle中的
targetSdkVersion
从30降到27的回答,因为它在我这边停止工作了,我不知道为什么。因此,这显然不是一个有效的解决方案,至少不是始终如一的。自从上次它运行以来,我做了一些事情,但我不知道是哪一个再次破坏了它,也不知道为什么。我删除了之前关于在android/app/build.gradle中将
targetSdkVersion
从30降到27的答案,因为它在我这边停止运行,我不知道为什么。因此,这显然不是一个有效的解决方案,至少不是始终如一的。我已经做了一些事情,因为它上次工作,我不知道是谁打破了它再次或为什么。