-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
video_player 0.11.1+3 java.lang.OutOfMemoryError #70568
Comments
using flutter 1.2.4 |
Hi @kw2019ltd Can you please provide your Thank you |
below is from logs using 0.11.1+3 you will see error Waiting for a blocking GC Alloc and exception as mentioned below Logs
|
flutter doctor -v Microsoft Windows [Version 10.0.18363.1198] C:\Users\kotai\AndroidStudioProjects\facebook_app>flutter doctor -v [!] Android toolchain - develop for Android devices (Android SDK version 29.0.3) [!] Android Studio (version 4.1.0) [!] IntelliJ IDEA Ultimate Edition (version 2019.3) [√] Connected device (1 available) ! Doctor found issues in 3 categories. C:\Users\kotai\AndroidStudioProjects\facebook_app>^A^A |
Hi @kw2019ltd Can you please provide us the video link that is causing this issue . Thank you |
attached project, right now its using video_player 0.11.1+3 which cause the issue, what you need to do:
|
hi its not related to any video, you just put 7 to 10 videos under download
directory in android/simulator and you will get the issue,
…On Mon, Nov 16, 2020 at 11:17 AM Hamdi Kahloun ***@***.***> wrote:
Hi @kw2019ltd <https://github.com/kw2019ltd>
Can you please provide us the video link that is causing this issue .
Thank you
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#70568 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALJEI6UXO63UQEKSK6YJFFTSQDUZXANCNFSM4TWHNIUA>
.
|
I'm not able to reproduce the issue, Video Info
Video Info
flutter doctor -v
|
Hi, pls make sure you have 7 to 10 video, launch the app and scroll down
and up.
You should see errors in logs/ide
…On Mon, Nov 16, 2020, 13:06 Hamdi Kahloun ***@***.***> wrote:
I'm not able to reproduce the issue,
Video Info
General
Complete name : C:\Users\hamdi\Downloads\big_buck_bunny_720p_10mb.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/iso2/avc1/mp41)
File size : 10.0 MiB
Duration : 1 min 2 s
Overall bit rate mode : Variable
Overall bit rate : 1 348 kb/s
Encoded date : UTC 1970-01-01 00:00:00
Tagged date : UTC 2014-07-19 17:25:23
Writing application : Lavf53.24.2
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : ***@***.***
Format settings : CABAC / 1 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference : 1 frame
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 1 min 2 s
Bit rate : 960 kb/s
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 25.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.042
Stream size : 7.13 MiB (71%)
Encoded date : UTC 1970-01-01 00:00:00
Tagged date : UTC 1970-01-01 00:00:00
Codec configuration box : avcC
Audio
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 1 min 2 s
Bit rate mode : Variable
Bit rate : 384 kb/s
Maximum bit rate : 449 kb/s
Channel(s) : 6 channels
Channel layout : C L R Ls Rs LFE
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 2.85 MiB (28%)
Default : Yes
Alternate group : 1
Encoded date : UTC 1970-01-01 00:00:00
Tagged date : UTC 1970-01-01 00:00:00
Video Info
General
Complete name : C:\Users\hamdi\Downloads\file_example_MP4_1920_18MG.mp4
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42 (mp42/mp41/isom/avc1)
File size : 17.0 MiB
Duration : 30 s 527 ms
Overall bit rate : 4 675 kb/s
Encoded date : UTC 2015-08-07 09:13:36
Tagged date : UTC 2015-08-07 09:13:36
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : ***@***.***
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference : 4 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 30 s 33 ms
Bit rate : 4 500 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 30.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.072
Stream size : 16.1 MiB (94%)
Writing library : x264 core 146 r11M 121396c
Encoding settings : cabac=1 / ref=4 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=8 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=48 / lookahead_threads=8 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / stitchable=1 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=infinite / keyint_min=30 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=2pass / mbtree=1 / bitrate=4500 / ratetol=1.0 / qcomp=0.60 / qpmin=5 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=4950 / vbv_bufsize=13500 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Encoded date : UTC 2015-08-07 09:13:36
Tagged date : UTC 2015-08-07 09:13:36
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Codec configuration box : avcC
Audio
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 30 s 527 ms
Bit rate mode : Constant
Bit rate : 256 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 954 KiB (5%)
Encoded date : UTC 2015-08-07 09:13:36
Tagged date : UTC 2015-08-07 09:13:36
flutter doctor -v
[√] Flutter (Channel dev, 1.23.0-18.0.pre, on Microsoft Windows [version 10.0.19041.630], locale fr-FR)
• Flutter version 1.23.0-18.0.pre at D:\fork\flutter
• Framework revision 37ebe3d (5 weeks ago), 2020-10-13 10:52:23 -0700
• Engine revision 6634406
• Dart version 2.11.0 (build 2.11.0-213.0.dev)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at C:\Users\hamdi\AppData\Local\Android\Sdk
• Platform android-30, build-tools 30.0.2
• ANDROID_HOME = C:\Users\hamdi\AppData\Local\Android\Sdk
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.6.3)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
• Visual Studio Community 2019 version 16.6.30225.117
• Windows 10 SDK version 10.0.18362.0
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
[√] VS Code (version 1.50.1)
• VS Code at C:\Users\hamdi\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.16.0
[√] Connected device (2 available)
• STK L21 (mobile) • XMJ4C19B09007407 • android-arm64 • Android 10 (API 29)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [version 10.0.19041.630]
! Doctor found issues in 1 category.
[image: ezgif com-gif-maker]
<https://user-images.githubusercontent.com/32666446/99244930-14911f00-2803-11eb-981a-f5cac0e25865.gif>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#70568 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALJEI6TSGNPHXZ6CVQ4LUYTSQEBUXANCNFSM4TWHNIUA>
.
|
Hi @kw2019ltd If you provide the video link causing this problem it will be helpful . Thank you logs
|
Hi @kw2019ltd |
@pedromassango hi its only for andriod. |
@hamdikahloun ok the issue if the video are small with 0.11.1+3 it works fine, but if the videos are large 100 MB and above it will cauases memory leak but un 0.11.1+2 it works fine. so pls put 3 or 4 more vidoes with 100MB and use 0.11.1+3 you should see the issue, and then use 0.11.1+2 it works fine |
Hi @kw2019ltd |
i made it simple facebook_app.zip home_widget.dart ->(get the files from donwload directory ) ->add video widget for each file. the use of the plugin in video_widget.dart file |
Hi @kw2019ltd |
attached updated project. |
Logs (part 1)
|
Logs (part 2)
|
Hey @kw2019ltd, I'm happy to debug, but do you mind updating your reproducible example so it doesn't rely on existing files in the android download's directory? I'm not seeing the bug in my logs because I don't have any videos in my download's directory. |
I am experiencing this also... In my case I have a video player which has an expand button (which will push a new scaffold with a video player on using the navigator). I have basically been spamming the expand/pop so it opens and closes a video a bunch of times. After around 10 opens and closes on all versions after 0.11.1+2 the app just shuts and prints similar logs to
e.g. it ends in this.
Like @kw2019ltd I do not experience this on the 0.11.1+2 so will downgrade for now. Thanks @kw2019ltd I was thinking this was something I was doing and losing my mind in the dart dev memory tools. |
Has there been any progress with fixing this memory leak caused on the newer versions of video player that use exo player 2.12.1? |
Any updates? This is a big problem that needs addressing |
@pedromassango @kf6gpe This is a big problem for people that need to display multiple videos. Its also been an issue for over 6 months and I am unable to update the library past 0.11.1+2. Are there any updates? |
Hi @kw2019ltd @febg11, error logs
|
Without additional information, we are unfortunately not sure how to resolve this issue. Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
hi
since video_player 0.11.1+3 moved to Android: Upgrade ExoPlayer to 2.12.1
my app have prerformance issue, before i was using 0.11.1+2 and it was fine.
with video_player 0.11.1+3 getting below
Logs
The text was updated successfully, but these errors were encountered: