Skip to content
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

Selecting Arabic subtitles causes the player to stop functioning #24874

Closed
1 of 7 tasks
atabakselahi opened this issue Mar 22, 2024 · 11 comments · Fixed by #25128
Closed
1 of 7 tasks

Selecting Arabic subtitles causes the player to stop functioning #24874

atabakselahi opened this issue Mar 22, 2024 · 11 comments · Fixed by #25128
Labels
Ignored rules issue that does not follow the rules (no template, missing debug log, ...) Platform: Android Resolution: Fixed issue was resolved by a code change v21 Omega

Comments

@atabakselahi
Copy link

atabakselahi commented Mar 22, 2024

Bug report

Describe the bug

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

The movie plays smoothly with English subtitles; however, switching to Arabic subtitles causes the player to halt and exit after a few seconds.

Expected Behavior

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

Actual Behavior

Possible Fix

Selecting Arabic subtitles causes the player to halt and exit after a few seconds.

To Reproduce

Steps to reproduce the behavior:

Debuglog

The debuglog can be found here:

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:

Your Environment

Used Operating system:

  • Android

  • iOS

  • tvOS

  • Linux

  • macOS

  • Windows

  • Windows UWP

  • Operating system version/name:

  • Kodi version:

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.

@xbmc-gh-bot xbmc-gh-bot bot added Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it Ignored rules issue that does not follow the rules (no template, missing debug log, ...) labels Mar 22, 2024
@xbmc-gh-bot
Copy link

xbmc-gh-bot bot commented Mar 22, 2024

Thank you for using Kodi and our issue tracker. This is your friendly Kodi GitHub bot 😉

It seems that you have not followed the template we provide and require for all bug reports (or have opened a roadmap item by accident). Please understand that following the template is mandatory and required for the team to be able handle the volume of open issues efficiently.

Please edit your issue message to follow our template and make sure to fill in all fields appropriately. The issue will be closed after one week has passed without satisfactory follow-up from your side.

This is an automatically generated message. If you believe it was sent in error, please say so and a team member will remove the "Ignored rules" label.

@CastagnaIT
Copy link
Collaborator

please fullfill all template parts,
as it is it is not enough to investigate since to me arabic subtitle works
most important also provide a way to reproduce the problem, so a sample video or another way

@atabakselahi
Copy link
Author

This error occurs on Kodi 21.0 “Omega” RC1 running on a Sony TV (Android TV). I’ve attached a sample video and subtitles . When you choose any external subtitle, initially I thought it was happening only with Arabic/Farsi subtitles. However, I noticed that it occurs even when I choose English subtitles. Interestingly, when I embedded the SRT file using mkvtoolnix into the MKV file, Kodi plays the file correctly. The link to file is:

https://drive.google.com/file/d/10c8CYsu7m9ij6M0DAeLHRKRGOrvlGGWR/view?usp=drive_link

@neo1973
Copy link
Member

neo1973 commented Mar 30, 2024

Also no issues here on regular Linux with the provided example:
grafik

@CastagnaIT
Copy link
Collaborator

i also tried on Android 64 and Windows and works as expected
since you havent provide the debug log there is nothing more to do

@CastagnaIT CastagnaIT added Triage: Tested and not reproduced Effort has been placed into testing the issue but no one has been able to reproduce it yet and removed Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it labels Apr 1, 2024
@atabakselahi
Copy link
Author

atabakselahi commented Apr 28, 2024

Here is the log file for your reference.
kodi_subtitile_exit_palyer_error.log

@atabakselahi
Copy link
Author

Here is the log file for your reference.

Here is the log file for your reference.
kodi_subtitile_exit_palyer_error.log

@CastagnaIT
Copy link
Collaborator

at least from here the problem seem not related to subtitles

2024-04-27 23:34:48.171 T:7893    error <general>: Read - Error( -1, 32, Broken pipe )
2024-04-27 23:34:48.171 T:7893  warning <general>: underflow: Error reading file - assuming eof
2024-04-27 23:34:48.171 T:7893  warning <general>: CFileCache::Process - <smb://RT-AX86S-6878/My_Passport/Movies/Tar 2022/tar.2022.2160p.uhd.bluray.x265-b0mbardiers.mkv> source read returned 0! Will retry
2024-04-27 23:34:48.172 T:23679    info <general>: CAESinkAUDIOTRACK::Initializing with: m_sampleRate: 192000 format: AE_FMT_S16LE (AE) method: IEC (PT) stream-type: STREAM_TYPE_TRUEHD min_buffer_size: 393472 m_frames: 6148 m_frameSize: 16 channels: 8
2024-04-27 23:34:50.172 T:7893    error <general>: Read - Error( -1, 32, Broken pipe )
2024-04-27 23:34:50.172 T:7893  warning <general>: underflow: Error reading file - assuming eof
2024-04-27 23:34:50.172 T:7893  warning <general>: CFileCache::Process - <smb://RT-AX86S-6878/My_Passport/Movies/Tar 2022/tar.2022.2160p.uhd.bluray.x265-b0mbardiers.mkv> source read returned 0! Will retry
2024-04-27 23:34:52.173 T:7893    error <general>: Read - Error( -1, 32, Broken pipe )
2024-04-27 23:34:52.173 T:7893  warning <general>: underflow: Error reading file - assuming eof
2024-04-27 23:34:52.173 T:7893  warning <general>: CFileCache::Process - <smb://RT-AX86S-6878/My_Passport/Movies/Tar 2022/tar.2022.2160p.uhd.bluray.x265-b0mbardiers.mkv> source read returned 0! Will retry
2024-04-27 23:34:54.174 T:7893    error <general>: Read - Error( -1, 32, Broken pipe )
2024-04-27 23:34:54.174 T:7893  warning <general>: underflow: Error reading file - assuming eof
2024-04-27 23:34:54.174 T:7893    error <general>: CFileCache::Process - <smb://RT-AX86S-6878/My_Passport/Movies/Tar 2022/tar.2022.2160p.uhd.bluray.x265-b0mbardiers.mkv> source read didn't return any data before eof!
2024-04-27 23:34:54.220 T:7890    error <general>: ffmpeg[0xd09c7c30]: [matroska,webm] File ended prematurely
2024-04-27 23:35:00.187 T:7899     info <general>: CVideoPlayerAudio::Process - stream stalled
2024-04-27 23:35:00.231 T:7890     info <general>: Process - eof reading from demuxer

if it is not a corrupted video file,
imo could be related to samba cache but im not expert on this
on kodi 21 Settings->Services->SMB
try change the Chunk size to some higher number

@scott967
Copy link
Contributor

scott967 commented May 2, 2024

Have seen reports like this and seems SMB related in that client is using SMBv1 with chunk size 128 when v1 only supports up to 64. Best fix is to migrate to SMBv3 but changing chunk size to 64 kb in settings has been reported to work.

@atabakselahi
Copy link
Author

Thank you for your response and the information provided. However, these errors do not cause the player to exit. Instead, Kodi exits when I select the .srt file. I am able to play the video from the SMB without any issues when not using external subtitles. The error related to this issue is below, and it seems to be associated with ‘CMediaCodec’.”:

2024-04-27 17:32:31.080 T:23652 error : CMediaCodecVideoBuffer::ReleaseOutputBuffer error in render(false)
2024-04-27 17:32:36.402 T:23737 info : Skipped 2 duplicate messages..
2024-04-27 17:32:36.401 T:23737 warning : OutputPicture - timeout waiting for buffer
2024-04-27 17:32:36.445 T:23737 error : CMediaCodecVideoBuffer::ReleaseOutputBuffer error in render(false)
2024-04-27 17:32:36.546 T:23738 info : Skipped 3 duplicate messages..
2024-04-27 17:32:36.546 T:23738 info : CAEStreamParser::SyncDTS - dtsHD MA stream detected (8 channels, 48000Hz, 16bit BE, period: 8192, syncword: 0x41a29547, target rate: 0x18, framesize 5292))
2024-04-27 17:32:40.347 T:23737 error : CMediaCodecVideoBuffer::ReleaseOutputBuffer error in render(false)
2024-04-27 17:32:40.358 T:23738 info : Skipped 3 duplicate messages..
2024-04-27 17:32:40.358 T:23738 info : CAEStreamParser::SyncDTS - dtsHD MA stream detected (8 channels, 48000Hz, 16bit BE, period: 8192, syncword: 0x41a29547, target rate: 0x18, framesize 7184))
2024-04-27 17:33:03.600 T:23737 warning : OutputPicture - timeout waiting for buffer
2024-04-27 17:33:03.604 T:23652 error : CMediaCodecVideoBuffer::ReleaseOutputBuffer error in render(true)
2024-04-27 17:33:03.640 T:23737 error : CMediaCodecVideoBuffer::ReleaseOutputBuffer error in render(false)
2024-04-27 17:33:03.702 T:23728 info : Skipped 1 duplicate messages..
2024-04-27 17:33:03.702 T:23728 info : Creating InputStream
2024-04-27 17:33:03.821 T:23728 info : Creating Demuxer
2024-04-27 17:33:03.983 T:23784 info : CDVDVideoCodecFFmpeg::Open() Using codec: MJPEG (Motion JPEG)
2024-04-27 17:33:04.415 T:23728 info : Opening stream: 0 source: 256
2024-04-27 17:33:04.415 T:23728 info : Creating video codec with codec id: 173
2024-04-27 17:33:04.416 T:23728 error : CDVDVideoCodecAndroidMediaCodec::Open - InstanceGuard locke

@neo1973 neo1973 linked a pull request May 8, 2024 that will close this issue
14 tasks
@neo1973
Copy link
Member

neo1973 commented May 8, 2024

This has been fixed by #25128.

@neo1973 neo1973 closed this as completed May 8, 2024
@neo1973 neo1973 added Resolution: Fixed issue was resolved by a code change and removed Triage: Tested and not reproduced Effort has been placed into testing the issue but no one has been able to reproduce it yet labels May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ignored rules issue that does not follow the rules (no template, missing debug log, ...) Platform: Android Resolution: Fixed issue was resolved by a code change v21 Omega
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants