bylee20 / bomi

bomi - a powerful and easy-to-use multimedia player
http://bomi-player.github.io
Other
424 stars 89 forks source link

Unexplained Crash #127

Closed Rabcor closed 9 years ago

Rabcor commented 10 years ago

I've encountered an odd crash with a file, I cannot provide the file but you should be able to find it somewhere if you seek The Legend of Korra - The Complete Season 2 [HDTV - 720p] which was the torrent name where I got it from.

Filename: The.Legend.of.Korra.S02E01-E02.Rebel.Spirit_Southern.Lights.720p.HDTV.x264-W4F.mkv it is the first episode, and the first crash occurs at exactly 08:47

I've tested this file with Mpv and with K-Lite Codecs(Windows) neither had this crash problem.

bylee20 commented 9 years ago

I can't reproduce what you said. Please test with latest source and if you still have problem, please let me know.

Rabcor commented 9 years ago

It still happens to me with the latest source.

I checked for any error message, all I got was:

[Engine] Initialize video OpenGL context for QThread(0x7fc1b0000940) Aborted (core dumped)

There might be a hardware and/or driver difference between us, I'm running Nvidia Proprietary Drivers on a GeForce Kepler architecture card.

bylee20 commented 9 years ago

Can you post the log when luanched CMPlayer with --debug option and crashed?

bylee20 commented 9 years ago

Btw, is the size of that file 894.8MiB?

Rabcor commented 9 years ago

The log with --debug on didn't toss any special error upon crash, just the same as running normally (Aborted (core dumped)) the message before the abort was: [OpenGL/SG] Logger: Buffer detailed info: Buffer object 13 (bound to GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB (3), and GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations. (API/Notification/Other) but it came way before the crash occurred.

Filename: The.Legend.of.Korra.S02E01-E02.Rebel.Spirit_Southern.Lights.720p.HDTV.x264-W4F.mkv Filesize: 938.2 MB (938,232,116 bytes)

(Some torrent sites and clients do not display the same filesize as the physically downloaded file actually becomes, usually it is smaller on the torrent site/client than on your drive. I think you have the right torrent where the file is said to be 894.8 MiB)

bylee20 commented 9 years ago

Please test with latest source again.

Rabcor commented 9 years ago

It still crashes on the latest source at the same point.

bylee20 commented 9 years ago

Can you provide backtrace?

Rabcor commented 9 years ago

If you mean terminal output, then it's providing the same, but with a small difference.

[mpv/cplayer] VO: [null] 1280x720 vdpau
Aborted (core dumped)

Might be worth mentioning that I tried disabling hardware acceleration to see if it had any effect, it didn't.

[mpv/cplayer] VO: [null] 1280x720 yuv420p
Aborted (core dumped)

With debug on (note: The OpenGL entries were constantly being repeated through playback too)

[OpenGL/SG] Logger: Buffer detailed info: Buffer object 18 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations. (API/Notification/Other)
[OpenGL/SG] Logger: Buffer detailed info: Buffer object 11 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations. (API/Notification/Other)
[mpv/ao/alsa] draining...
[mpv/ao/alsa] uninit: pcm closed
Aborted (core dumped)
bylee20 commented 9 years ago

You can get backtrace by following next:

Also, you'd better provide the full log without omitting some parts on your decision. What you omitted was garbage maybe but still it may contain some informations.

Rabcor commented 9 years ago

Here's a full paste. What I'd been printing before was simply any output near the end (preferably appearing at the timing where the player would crash)

Running with gdb, this is what it shows upon crash.

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffd06b0700 (LWP 2111)]
0x00007fffee85f967 in raise () from /usr/lib/libc.so.6
bylee20 commented 9 years ago

Can you test again with latest git source?

Rabcor commented 9 years ago

I would love to but I honestly have no idea how to compile from git, I always used the cmplayer-git aur package, but someone had it removed. I'm gonna have to learn it by myself some-day, but I'm way too busy to be troubling myself with it right now, I found out how to use the git clone command, but failed to understand the make command.

bylee20 commented 9 years ago

Install bomi-git instead.

Rabcor commented 9 years ago

Ah there we go, thanks :+1: why'd you change the name? Does it mean anything special?

I tried it again, it still crashes the same way. (I checked with gdb also)

bylee20 commented 9 years ago

Because CMPlayer is not a unique name. There are two minor programs already at least.

Still same log?

Also, maybe there could be some curruption in your file. Can you share it through for instance, Google Drive or DropBox?

Rabcor commented 9 years ago

Yeah same log. I don't think the file is corrupted (it plays fine in other media players) and even if it was corrupted, it definitely shouldn't crash the whole player. Especially since other media players can play it just fine is all the more reason to investigate further.

As for the file, it's a big file (900mb) I remember there was another episode or two that crashed as well, but I can't remember which ones (nor the timing) I'll see if I can find them. (That would be 350mb or so) (Oh yeah, since it wasn't unique to one file that sort of gives us away that this was not file specific, i.e. not a corrupt file.)

I think you already downloaded the correct files a while back when you looked for them though. Let me just finish updating my system first, I've been off linux for almost a month now which is why you haven't been hearing from me (that's about to change though). But it will be good to confirm whether you can reproduce this on your end or not. Are you using an Nvidia GPU on proprietary drivers as well?

bylee20 commented 9 years ago

Yeah same log. I don't think the file is corrupted (it plays fine in other media players) and even if it was corrupted, it definitely shouldn't crash the whole player. Especially since other media players can play it just fine is all the more reason to investigate further.

That's why asked a sample.

since it wasn't unique to one file that sort of gives us away that this was not file specific, i.e. not a corrupt file

Some released series can be totally broken by stupid encoder or wrong usage.

But it will be good to confirm whether you can reproduce this on your end or not.

No I couldn't. This is why I asked a sample, too.

Are you using an Nvidia GPU on proprietary drivers as well?

Yes.

Rabcor commented 9 years ago

Yes like I said (but not clearly enough, sorry), after I finish updating I will look for a smaller sample to give you. I need to restart to be able to playback files in the player since I updated my graphics drivers. I will upload the sample to mediafire if that is ok?

bylee20 commented 9 years ago

I think that would be fine.

Rabcor commented 9 years ago

Seems you were right, it was a corrupt file, and running it in gdb it did properly detect it this time.

[mpv/mkv] Corrupt file detected. Trying to resync starting from position 20978034...
[mpv/mkv] Cluster found at 21069630.
qml: true true
[Thread 0x7fffb741b700 (LWP 2505) exited]

However as I did say before, since other players (including mpv) can manage to struggle through it even if it has faulty encoding, Bomi should too.

Anyhow, I found a smaller file, it crashes at 17:42. It was an oddly quick upload, but I uploaded it here.

http://www.mediafire.com/download/bfvq11b1oz2mvzb/The.Legend.of.Korra.S02E03.Civil.Wars.Part.1.720p.HDTV.x264-W4F.mkv

bylee20 commented 9 years ago

I can't download your link. I got a 'Permission Denied.'.

Rabcor commented 9 years ago

Here I uploaded it properly http://www.mediafire.com/download/20my7gp962kvc26/e3.rar

The password is xylosper. Oh and don't worry about the subtitle timings being off. They really are off.

bylee20 commented 9 years ago

Finally, I succeeded to reproduce your problem and I think it's fixed now. Please try it with git package.

Rabcor commented 9 years ago

Yup, this time it didn't crash for me either (sorry for late reply btw) it just made some strange buzzing sound for a second, that however is something I think everyone can live with :+1:

bylee20 commented 9 years ago

Thank for feedback.