xbmc / xbmc

Kodi is an award-winning free and open source home theater/media center software and entertainment hub for digital media. With its beautiful interface and powerful skinning engine, it's available for Android, BSD, Linux, macOS, iOS, tvOS and Windows.
https://kodi.tv/
Other
18.48k stars 6.3k forks source link

Adding http stream url results in crash Android #21490

Open bigretromike opened 2 years ago

bigretromike commented 2 years ago

Bug report

Describe the bug

Here is a clear and concise description of what the problem is:

When putting http servered file to videos Kodi crash on Android instead of behaving like on windows (freeze) then add source to videos.

Expected Behavior

Here is a clear and concise description of what was expected to happen:

Adding link results in link being added

Actual Behavior

Kodi crash, link is not added

Possible Fix

To Reproduce

Steps to reproduce the behavior:

  1. Tv-Show
  2. 'enter files section' > Files
  3. Add videos...
  4. Click on
  5. Type http://10.1.1.100:8111/Stream/23707/1/False/file.mkv
  6. 'OK' > 'Ok'
  7. Kodi freeze for couple of seconds (Windows and Android) and crash (Android)

Debuglog

The debuglog can be found here: kodi.log logcat.log

Screenshots

Here are some links or screenshots to help explain the problem:

Additional context or screenshots (if appropriate)

Here is some additional context or explanation that might help:

While debug logging is enabled the Max Mem is set to 5761064 KB, and while file is being load it drops from around 2400000 to around 0 few times before crash (matrix) or once to around 20000 (nexus) , CPU-KODI goes up around 199%

ffprobe.exe http://10.1.1.100:8111/Stream/23707/1/False/file.mkv
ffprobe version 5.0.1-full_build-www.gyan.dev Copyright (c) 2007-2022 the FFmpeg developers
  built with gcc 11.2.0 (Rev7, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
  libavutil      57. 17.100 / 57. 17.100
  libavcodec     59. 18.100 / 59. 18.100
  libavformat    59. 16.100 / 59. 16.100
  libavdevice    59.  4.100 / 59.  4.100
  libavfilter     8. 24.100 /  8. 24.100
  libswscale      6.  4.100 /  6.  4.100
  libswresample   4.  3.100 /  4.  3.100
  libpostproc    56.  3.100 / 56.  3.100
Input #0, matroska,webm, from 'http://10.1.1.100:8111/Stream/23707/1/False/file.mkv':
  Metadata:
    encoder         : libebml v1.3.6 + libmatroska v1.4.9
    creation_time   : 2018-07-19T07:24:08.000000Z
  Duration: 01:29:04.35, start: 0.000000, bitrate: 5880 kb/s
  Stream #0:0: Video: h264 (High 4:4:4 Predictive), yuv444p10le(progressive), 1280x720, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn (default)
    Metadata:
      BPS-eng         : 4649834
      DURATION-eng    : 01:29:04.339000000
      NUMBER_OF_FRAMES-eng: 128136
      NUMBER_OF_BYTES-eng: 3106286595
      _STATISTICS_WRITING_APP-eng: mkvmerge v24.0.0 ('Beyond The Pale') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-07-19 07:24:08
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:1(jpn): Audio: aac (LC), 48000 Hz, 5.1, fltp (default)
    Metadata:
      BPS-eng         : 747911
      DURATION-eng    : 01:29:04.341000000
      NUMBER_OF_FRAMES-eng: 250516
      NUMBER_OF_BYTES-eng: 499636491
      _STATISTICS_WRITING_APP-eng: mkvmerge v24.0.0 ('Beyond The Pale') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-07-19 07:24:08
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:2(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s
    Metadata:
      BPS-eng         : 448000
      DURATION-eng    : 01:29:04.352000000
      NUMBER_OF_FRAMES-eng: 167011
      NUMBER_OF_BYTES-eng: 299283712
      _STATISTICS_WRITING_APP-eng: mkvmerge v24.0.0 ('Beyond The Pale') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-07-19 07:24:08
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:3(eng): Subtitle: ass (default)
    Metadata:
      BPS-eng         : 66
      DURATION-eng    : 01:22:12.180000000
      NUMBER_OF_FRAMES-eng: 674
      NUMBER_OF_BYTES-eng: 40787
      _STATISTICS_WRITING_APP-eng: mkvmerge v24.0.0 ('Beyond The Pale') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-07-19 07:24:08
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle, 1920x1080
    Metadata:
      title           : Englsih Subtitles
      BPS-eng         : 24553
      DURATION-eng    : 01:29:01.211000000
      NUMBER_OF_FRAMES-eng: 2015
      NUMBER_OF_BYTES-eng: 16393024
      _STATISTICS_WRITING_APP-eng: mkvmerge v24.0.0 ('Beyond The Pale') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-07-19 07:24:08
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:5(zxx): Subtitle: hdmv_pgs_subtitle, 1920x1080
    Metadata:
      title           : Englsih Signs
      BPS-eng         : 2663
      DURATION-eng    : 01:29:01.211000000
      NUMBER_OF_FRAMES-eng: 460
      NUMBER_OF_BYTES-eng: 1778596
      _STATISTICS_WRITING_APP-eng: mkvmerge v24.0.0 ('Beyond The Pale') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-07-19 07:24:08
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:6(spa): Subtitle: hdmv_pgs_subtitle, 1920x1080
    Metadata:
      BPS-eng         : 24022
      DURATION-eng    : 01:29:01.211000000
      NUMBER_OF_FRAMES-eng: 1500
      NUMBER_OF_BYTES-eng: 16038876
      _STATISTICS_WRITING_APP-eng: mkvmerge v24.0.0 ('Beyond The Pale') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-07-19 07:24:08
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:7: Attachment: ttf
    Metadata:
      filename        : Hyouka Regular.ttf
      mimetype        : application/x-truetype-font
  Stream #0:8: Attachment: ttf
    Metadata:
      filename        : Hyouka Italic.ttf
      mimetype        : application/x-truetype-font
  Stream #0:9: Attachment: ttf
    Metadata:
      filename        : AlteHaasGroteskRegular.ttf
      mimetype        : application/x-truetype-font
  Stream #0:10: Attachment: ttf
    Metadata:
      filename        : calibri.ttf
      mimetype        : application/x-truetype-font
  Stream #0:11: Attachment: ttf
    Metadata:
      filename        : comic.ttf
      mimetype        : application/x-truetype-font
Unsupported codec with id 98304 for input stream 7
Unsupported codec with id 98304 for input stream 8
Unsupported codec with id 98304 for input stream 9
Unsupported codec with id 98304 for input stream 10
Unsupported codec with id 98304 for input stream 11

Your Environment

Used Operating system:

note: Once the issue is made we require you to update it with new information or Kodi versions should that be required. Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.

enen92 commented 2 years ago

@bigretromike any chances you can get a logcat after the crash? Just enter the android shell via adb shell and then run logcat (copying the stacktrace)

bigretromike commented 2 years ago

@bigretromike any chances you can get a logcat after the crash? Just enter the android shell via adb shell and then run logcat (copying the stacktrace)

is that not what I included ? Should I run logcat before or after trying to add url to kodi ?

enen92 commented 2 years ago

ups sorry, I missed that you included it in the bug report.

github-actions[bot] commented 3 months ago

This issue is now marked stale because it has been open over a year without activity. Remove the stale label or add a comment to reset the stale state.

bigretromike commented 2 months ago

did my issues created any output or its not relevant as kodi is 3 major version ahead by now?