neeko icon indicating copy to clipboard operation
neeko copied to clipboard

Error after going in fullscreen Mode

Open d0mmi opened this issue 4 years ago • 0 comments

Hi, i used this player in my App and if i try to play a video in fullscreen Mode i get this error:

17:38:00.782 195 info flutter.tools The following assertion was thrown building Overlay-[LabeledGlobalKey<OverlayState>#1db36](state:
17:38:00.782 196 info flutter.tools OverlayState#395d0(entries: [OverlayEntry#13bf0(opaque: true; maintainState: false),
17:38:00.782 197 info flutter.tools OverlayEntry#4c28f(opaque: false; maintainState: true), OverlayEntry#2c8b4(opaque: true;
17:38:00.782 198 info flutter.tools maintainState: false), OverlayEntry#65cfa(opaque: false; maintainState: true),
17:38:00.782 199 info flutter.tools OverlayEntry#18b76(opaque: true; maintainState: false), OverlayEntry#9810f(opaque: false;
17:38:00.782 200 info flutter.tools maintainState: true)])):
17:38:00.782 201 info flutter.tools A VideoPlayerController was used after being disposed.
17:38:00.782 202 info flutter.tools Once you have called dispose() on a VideoPlayerController, it can no longer be used.
17:38:00.782 203 info flutter.tools 
17:38:00.782 204 info flutter.tools The relevant error-causing widget was:
17:38:00.782 205 info flutter.tools   MaterialApp file:///D:/Github/App/lib/main.dart:175:16
17:38:00.782 206 info flutter.tools 
17:38:00.782 207 info flutter.tools When the exception was thrown, this was the stack:
17:38:00.782 208 info flutter.tools #0      ChangeNotifier._debugAssertNotDisposed.<anonymous closure> (package:flutter/src/foundation/change_notifier.dart:106:9)
17:38:00.782 209 info flutter.tools #1      ChangeNotifier._debugAssertNotDisposed (package:flutter/src/foundation/change_notifier.dart:112:6)
17:38:00.782 210 info flutter.tools #2      ChangeNotifier.removeListener (package:flutter/src/foundation/change_notifier.dart:167:12)
17:38:00.782 211 info flutter.tools #3      _VideoPlayerState.deactivate (package:video_player/video_player.dart:545:23)
17:38:00.782 212 info flutter.tools #4      StatefulElement.deactivate (package:flutter/src/widgets/framework.dart:4777:12)
17:38:00.782 213 info flutter.tools #5      _InactiveElements._deactivateRecursively (package:flutter/src/widgets/framework.dart:1953:13)
17:38:00.782 214 info flutter.tools #6      ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4611:14)
17:38:00.782 215 info flutter.tools #7      _InactiveElements._deactivateRecursively (package:flutter/src/widgets/framework.dart:1955:13)
17:38:00.782 216 info flutter.tools #8      MultiChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:5984:16)
17:38:00.782 217 info flutter.tools #9      _InactiveElements._deactivateRecursively (package:flutter/src/widgets/framework.dart:1955:13)
17:38:00.782 218 info flutter.tools #10     SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:5872:14)
17:38:00.782 219 info flutter.tools #11     _InactiveElements._deactivateRecursively (package:flutter/src/widgets/framework.dart:1955:13)
17:38:00.782 220 info flutter.tools #12     SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:5872:14)
17:38:00.782 221 info flutter.tools #13     _InactiveElements._deactivateRecursively (package:flutter/src/widgets/framework.dart:1955:13)
17:38:00.782 222 info flutter.tools #14     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4611:14)
17:38:00.782 223 info flutter.tools #15     _InactiveElements._deactivateRecursively (package:flutter/src/widgets/framework.dart:1955:13)
17:38:00.782 224 info flutter.tools #16     SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:5872:14)
17:38:00.783 225 info flutter.tools #17     _InactiveElements._deactivateRecursively (package:flutter/src/widgets/framework.dart:1955:13)
17:38:00.783 226 info flutter.tools #18     SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:5872:14)
17:38:00.783 227 info flutter.tools #19     _InactiveElements._deactivateRecursively (package:flutter/src/widgets/framework.dart:1955:13)
17:38:00.783 228 info flutter.tools #20     SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:5872:14)
17:38:00.783 229 info flutter.tools #21     _InactiveElements._deactivateRecursively (package:flutter/src/widgets/framework.dart:1955:13)
17:38:00.783 230 info flutter.tools #22     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4611:14)
17:38:00.783 231 info flutter.tools #23     _InactiveElements._deactivateRecursively (package:flutter/src/widgets/framework.dart:1955:13)
17:38:00.783 232 info flutter.tools #24     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4611:14)
17:38:00.783 233 info flutter.tools #25     _InactiveElements._deactivateRecursively (package:flutter/src/widgets/framework.dart:1955:13)
17:38:00.783 234 info flutter.tools #26     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4611:14)
17:38:00.783 235 info flutter.tools #27     _InactiveElements._deactivateRecursively (package:flutter/src/widgets/framework.dart:1955:13)
17:38:00.783 236 info flutter.tools #28     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4611:14)
17:38:00.783 237 info flutter.tools #29     _InactiveElements._deactivateRecursively (package:flutter/src/widgets/framework.dart:1955:13)
17:38:00.783 238 info flutter.tools #30     ComponentElement.visitChildren (package:flutter/src/widgets/framework.dart:4611:14)
17:38:00.783 239 info flutter.tools #31     _InactiveElements._deactivateRecursively (package:flutter/src/widgets/framework.dart:1955:13)
17:38:00.783 240 info flutter.tools #32     _InactiveElements.add (package:flutter/src/widgets/framework.dart:1967:7)
17:38:00.783 241 info flutter.tools #33     Element.deactivateChild (package:flutter/src/widgets/framework.dart:3537:29)
17:38:00.783 242 info flutter.tools #34     RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:5670:11)
17:38:00.783 243 info flutter.tools #35     MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6012:17)
17:38:00.783 244 info flutter.tools #36     Element.updateChild (package:flutter/src/widgets/framework.dart:3247:15)
17:38:00.783 245 info flutter.tools #37     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4582:16)
17:38:00.783 246 info flutter.tools #38     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4730:11)
17:38:00.783 247 info flutter.tools #39     Element.rebuild (package:flutter/src/widgets/framework.dart:4273:5)
17:38:00.783 248 info flutter.tools #40     BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2667:33)
17:38:00.783 249 info flutter.tools #41     WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:880:20)
17:38:00.783 250 info flutter.tools #42     RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:286:5)
17:38:00.783 251 info flutter.tools #43     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1117:15)
17:38:00.783 252 info flutter.tools #44     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1056:9)
17:38:00.783 253 info flutter.tools #45     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:972:5)
17:38:00.783 254 info flutter.tools #49     _invoke (dart:ui/hooks.dart:253:10)
17:38:00.783 255 info flutter.tools #50     _drawFrame (dart:ui/hooks.dart:211:3)
17:38:00.783 256 info flutter.tools (elided 3 frames from dart:async)

The Widget is in a hierarchy like this:

MaterialApp(
 Scaffold(
 StatefulWidget(
  Container(
   FutureBuilder(
    Column(
      Expanded(
       Container(
        ListView(
         StatefulWidget(
          Container(
           NeekoPlayerWidget())))))))))))

and i dont know whats wrong, if i try it like in the example it works

d0mmi avatar Jul 17 '20 15:07 d0mmi