chewie icon indicating copy to clipboard operation
chewie copied to clipboard

Uncaught RangeError: Maximum call stack size exceeded while playing m3u8 video in Flutter Web Release

Open ArpanaSwarnkar opened this issue 3 years ago • 2 comments

Hi, I am facing one issue with your video player in Flutter web release only.

Here is the link of web https://sample-f55e4.web.app/#/.

Uncaught RangeError: Maximum call stack size exceeded at Object.b (hls.js@latest:1:3489) at l.trigger (hls.js@latest:1:316427) at l.trigger (hls.js@latest:1:316554) at l.trigger (hls.js@latest:1:316554) at l.trigger (hls.js@latest:1:316554) at l.trigger (hls.js@latest:1:316554) at l.trigger (hls.js@latest:1:316554) at l.trigger (hls.js@latest:1:316554) at l.trigger (hls.js@latest:1:316554) at l.trigger (hls.js@latest:1:316554)

This RangeError exception comes when i play video after few mins spent on that screen. And after that video stuck at one position.

image

And Same occur when i use chewie with video player. You can navigate on chewie screen by clicking on action item chewie. image

So please look into this issue as it is happening randomly. Also these are m3u8 video only.

chewie: ^1.3.4 video_player: ^2.4.5 video_player_web_hls: ^0.1.11+4

flutter doctor Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 2.10.0, on Microsoft Windows [Version 10.0.19044.1766], locale en-IN) [√] Android toolchain - develop for Android devices (Android SDK version 30.0.3) [√] Chrome - develop for the web [!] Visual Studio - develop for Windows (Visual Studio Community 2019 16.10.4) X Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop development with C++" workload, and include these components: MSVC v142 - VS 2019 C++ x64/x86 build tools

  • If there are multiple build tool versions available, install the latest C++ CMake tools for Windows Windows 10 SDK [√] Android Studio (version 2020.3) [√] Connected device (3 available) [√] HTTP Host Availability

! Doctor found issues in 1 category.

ArpanaSwarnkar avatar Jul 05 '22 10:07 ArpanaSwarnkar

@ArpanaSwarnkar can you add the source code? So I can try and fix it.

maherjaafar avatar Jul 15 '22 18:07 maherjaafar

@ArpanaSwarnkar from the looks of it, this issue definitely affects video_player, since chewie is merely a Flutter UI Layer wrapper around video_player. Please file an issue with the Flutter Team, since they are responsible for maintaining video_player.

diegotori avatar Aug 03 '22 17:08 diegotori