[Bug] Android video driver crash under specific circumstances - MX Player

Device Manufacturer & Model: LG Nexus 5
Android Version: 5.0.2
Rom Info: CM12 02/28 Nightly, tested also on CM12 02/15 Nightly
Detailed Problem Description:
Hi. I have encountered a very specific issue with MX Player. When I am playing full HD portrait video and next video is full HD landscape, the Android video driver seems to completely crash in the event when videos switch. E.g. when portrait one ends and landscape one starts playing. Sometimes the device freezes with corrupted graphics, sometimes it recovers, but graphics are shifted and reboot is needed to resume normal operation.
I have reset the settings to default when reproducing the issue and only setting I am using is Display / Settings / Screen / Orientation : Auto rotation. I am holding the phone in portrait, so basically the first video should be full screen on my phone and the second should be scaled down a lot to fit in portrait. It happens with both HW and HW+ codecs.
I have recorded two short videos which can be used to reproduce the problem. I have also recorded the behavior on the phone using another camera (this time the phone "kind of recovered").
Steps to reproduce the problem:
1. Install MX player.
2. Set Display / Settings / Screen / Orientation : Auto rotation
3. Play attached videos when holding the phone in portrait, the crash should appear when the first ends and the second starts.
See recorded video for details.
Logs from MX Player
Video 1 - portrait
Video 2 - landscape
Issue recorded using another camera to show what happens on the phone
It works in default video player and does not cause anything similar. I did not have a chance to try it on stock ROM yet. However, I have a lot of videos with different sizes and switching between them does not cause the issue. Just full HD videos.
Let me know if any more details are needed.

It happens on stock 5.1 too. Very annoying if you have mix of portrait and landscape videos recorded.

fenikso said:
It happens on stock 5.1 too. Very annoying if you have mix of portrait and landscape videos recorded.
Click to expand...
Click to collapse
It looks like ROM issue if HW has same issue.
FYI, HW is default media player actually which is provided by the OS.

bleu8888 said:
It looks like ROM issue if HW has same issue.
FYI, HW is default media player actually which is provided by the OS.
Click to expand...
Click to collapse
I did some more testing. It happens on all factory images I had for Nexus 5, 4.4.4, 5.0.1, 5.1. All of them exhibit the same problem. I tried also the SW decoder, but that did not tell me anything, as SW does not follow the tag for portrait orientation, so the portrait video showed up as landscape anyway.
Now the interesting part is that default player does not crash like that, when switching between the videos. But it takes longer to switch. It seems that it deletes the whole drawing surface and starts it again. Contrary, when switching videos in MX Player you can always see last frame of previous video stretch to the following video size before it starts playing.

Related

[bug] Image stretched when using the Background Play feature

Hi,
In the Player Settings, I have Background Play enabled. I watch a video in portrait orientation and turn the screen off, so I can continue listening to the audio. When I turn it back on, the video aspect ratio is set to Stretch (filling the whole screen), making the image very distorted. I have to tap the lower right button until the video is set to Fit To Screen again. Given that I do this routine several times a day, it make it very annoying.
I have a Galaxy S2 with Android Jelly Bean 4.1.2.
Model number: GT-I9100M
In the Decoder section I have:
Use H/W+ decoded: unchecked
H/W+ decoder (local): is grayed out, but checked
Correct Aspect Ratio: checked
H/W audio track selectable: unchecked
Is this a know issue, and if so, is there plans to correct it? Please let me know if you need any additional info.
Best regards,
vincentroy22 said:
Hi,
In the Player Settings, I have Background Play enabled. I watch a video in portrait orientation and turn the screen off, so I can continue listening to the audio. When I turn it back on, the video aspect ratio is set to Stretch (filling the whole screen), making the image very distorted. I have to tap the lower right button until the video is set to Fit To Screen again. Given that I do this routine several times a day, it make it very annoying.
I have a Galaxy S2 with Android Jelly Bean 4.1.2.
Model number: GT-I9100M
In the Decoder section I have:
Use H/W+ decoded: unchecked
H/W+ decoder (local): is grayed out, but checked
Correct Aspect Ratio: checked
H/W audio track selectable: unchecked
Is this a know issue, and if so, is there plans to correct it? Please let me know if you need any additional info.
Click to expand...
Click to collapse
@bleu8888
Can you look at the problem?
I can reproduce the problem.
Sent from my SM-G900H using Tapatalk
Actually I encountered same issue years ago with my first Android device - Galaxy S.
I tried many ways to fix it up but unfortunately cannot.
It looks like issue of early Galaxy devices.
I encountered this issue too with my andriod TV and even worse. MX can not play vedio without Background Play enabled in my andriod TV.So I must enable this option to play video. But the video aspect ratio is Stretched.
I press the right buttom corner button but no one brings proper ratio. When chose Fit To Screen the video play as 4:3 with letterbox surrounded.

Issue with 4k video rotate

Has anyone else seen an issue with 4k video being played back rotated as if it were recorded in portrait (and yes it was recorded properly)? See attached screenshot.
This playback occurs in all players I have tried except VLC. Playing back in VLC isn't always an option so I'd like to get this fixed without having to go to 4k editing software for every clip that has this issue.
I have see this issue on about 20% of the videos I have shot in 4k. The details of the files look like they have the correct width and height, just like the other files that playback fine.
Any ideas?

[Bug Report] HW Force Aspect only works If you Toggle to SW mode first

I think I found a bug with MX Player Pro.
I am using it on my Android TV Q7 device KitCat 4.4.2.
If I open a video with the hardware decoder it does not correct for the Aspect ratio unless I toggle to Software Mode then toggle back to Hardware mode. Then it is OK. I have the circle selected in the Preference to force the HW decoder to correct the ratio. ( If not checked it never corrects it so the circle setting is working)
I use mostly the HW mode since my videos are Dolby encoded AC3 and HW gives a smoother picture. My work around is to do the SW/ HW toggle or for my new videos recode with the WxH the same as the aspect ratio . (IE 640x480 for 4:3 but I should not need to do this.)
[email protected] said:
I think I found a bug with MX Player Pro.
I am using it on my Android TV Q7 device KitCat 4.4.2.
If I open a video with the hardware decoder it does not correct for the Aspect ratio unless I toggle to Software Mode then toggle back to Hardware mode. Then it is OK. I have the circle selected in the Preference to force the HW decoder to correct the ratio. ( If not checked it never corrects it so the circle setting is working)
I use mostly the HW mode since my videos are Dolby encoded AC3 and HW gives a smoother picture. My work around is to do the SW/ HW toggle or for my new videos recode with the WxH the same as the aspect ratio . (IE 640x480 for 4:3 but I should not need to do this.)
Click to expand...
Click to collapse
Can you try H/W+?
ktsamy said:
Can you try H/W+?
Click to expand...
Click to collapse
Same problem if I switch to HW+ then back the HW aspect ratio is ok.
SW and HW+ do not pass through digital audio so the only option for me is the HW mode. (Unless that is another bug, that they don't do pass through. However not an issue that affects my normal mode of operation. I normally don't use SW or HW+ )
[email protected] said:
Same problem if I switch to HW+ then back the HW aspect ratio is ok.
SW and HW+ do not pass through digital audio so the only option for me is the HW mode. (Unless that is another bug, that they don't do pass through. However not an issue that affects my normal mode of operation. I normally don't use SW or HW+ )
Click to expand...
Click to collapse
Can share a download link of the any sample video that has issue.....?
I will check it out.
Sent from my SM-G900H
I did a bit more testing and what I found is that if I open a 4:3 video encoded at 740:480 (3:2) video in HW mode is sets the default screen to 3:2. I can manually set the aspect ratio to 4:3 to watch the video but the default setting is still 3:2. If I toggle to SW mode then back then the default setting becomes 4:3 and the video is ok in the default aspect setting.
Seems like in hardware mode the default aspect ratio from the file is set by the size (740:480) not the actual ratio information (4:3) . In software mode it corrects this by the file information and sets default to the actual aspect ratio. So back to HW mode it is still OK
Now that I understand the problem I can manage it but it would be nice if the default ratio worked automatically in HW mode like it does in SW mode.
Try the file at the following. (2 Scarry n Winter loose.mkv) at
https://onedrive.live.com/redir.asp...3E!105&authkey=!&Bpub=SDX.SkyDrive&Bsrc=Share
Off topic : is there any way I can watch the video in SW or HW+ mode but have the audio (AC3) pass through to my device like HW mode?
Thanks

[BUG] Random crashes, freezing and audio stopping

Hello, since one of the latest updates I have been having a lot of issues with mx player acting up.
The problem started when I was listening to a video without the screen on and after around 30 seconds the audio would cut out but the video would continue to run. Either that would happen or it would freeze my device.
I have been unable to get a log of that issue but I just had a video freeze on me and the player crash so I will post it below. I have uninstalled and signed up to the nightly build but still getting the same issues.
Phone - samsung galaxy s7
Rom - stock unrooted
Version - 6.0.1
MX version - nightly Version 1.8.4.nightly.20160125 (ARMv7 NEON)
Log link = h**ps://drive.google.com/file/d/0By4WsG59vc5lNG9lV0psaUVTQnM/view?usp=drivesdk
Just encountered another freeze when the screen was off and managed to get a log.
Log file = h**ps://drive.google.com/file/d/0By4WsG59vc5lVTBVVW5DZ01IRk0/view?usp=drivesdk
@Penthus
The issue seems to be from system.
AudioPolicy Server & AudioFlinger dies while playing.
Does it happens with a particular file or everywhere?
Does it happen when the player is on foreground?
Does it happens when you use HW decoder (Seems that you are using HW+)?
Sent from my SM-G900H using Tapatalk
ktsamy said:
@Penthus
The issue seems to be from system.
AudioPolicy Server & AudioFlinger dies while playing.
Does it happens with a particular file or everywhere?
Does it happen when the player is on foreground?
Does it happens when you use HW decoder (Seems that you are using HW+)?
Sent from my SM-G900H using Tapatalk
Click to expand...
Click to collapse
It happens to a whole range of videos I view using the player and have not been able to reproduce it as it seems to happen at random intervals and not in the same spot. It can happen 5 times in an hour or a couple of times a day.
It happens when running in the foreground but less frequently. I have disabled power saving on my device to see if that was affecting it but does not appear to have made a difference.
I have tried SW, HW and HW+ to see if any were better than the others and they seem to crash with the same frequency.
Penthus said:
It happens to a whole range of videos I view using the player and have not been able to reproduce it as it seems to happen at random intervals and not in the same spot. It can happen 5 times in an hour or a couple of times a day.
It happens when running in the foreground but less frequently. I have disabled power saving on my device to see if that was affecting it but does not appear to have made a difference.
I have tried SW, HW and HW+ to see if any were better than the others and they seem to crash with the same frequency.
Click to expand...
Click to collapse
Does any other apps having this issue..?
It seems to be a bug from the system.
Sent from my SM-G900H using Tapatalk
It happens very rarely with my media player when the audio will stutter for a few seconds and the phone becomes unresponsive. It definitely happens a lot more frequently with mx player and it has only started the last couple of weeks.
Is there anything I can do on my end to see what might be causing the issue?
Just tried changing to HW again and got a freeze. The app recovered from the freeze and the video resumed but the audio didn't. I had to play some audio on my phone and then the video audio started again.
Log h**ps://drive.google.com/file/d/0By4WsG59vc5lX3F2Y281RUo3T1U/view?usp=drivesdk
Penthus said:
Just tried changing to HW again and got a freeze. The app recovered from the freeze and the video resumed but the audio didn't. I had to play some audio on my phone and then the video audio started again.
Log h**ps://drive.google.com/file/d/0By4WsG59vc5lX3F2Y281RUo3T1U/view?usp=drivesdk
Click to expand...
Click to collapse
I have forwarded the issue to the developer.
He may find more information about this issue your logs.
Sent from my SM-G900H using Tapatalk
Thanks for your help so far.
@Penthus
Hi, would you try after turning off `Fade on start` and `Fade on seek` from Settings > Audio?
If audio crash continues, turn off Settings > Audio > `System volume panel` too.
bleu8888 said:
@Penthus
Hi, would you try after turning off `Fade on start` and `Fade on seek` from Settings > Audio?
If audio crash continues, turn off Settings > Audio > `System volume panel` too.
Click to expand...
Click to collapse
Since turning off fade on start and fade on seek I have yet to have a crash or slowdown. I have been switching between sw, hw & hw+. So far so good, I will post back if I experience anything.
Thanks for all your help.
Wasn't sure whether to make a new thread or post in this one again. Seeing as the issue is similar I thought I should add to this one. Since having my last issue fixed things have been going perfectly until a few days ago when my videos started crashing with HW+ decoder. It was happening fairly frequently so I decided to to try out the other decoders and they all had issues.
HW+ as I said would hard crash out to the main menu with the crash report. HW would freeze and then start the video from the start. SW would have the video continue but the audio would freeze and then the video would roll back to sync up with the audio. It also seems to happen more frequently when I have headphones attached to the phone but that might just be statistical bias as I use headphones 99% of the time with my phone.
I have been using SW as it allows me to still watch videos although it can be a bit annoying as this can happen every couple of minutes or as frequently as every 5-10 seconds.
I have got log reports from each of the different decoders.
HW+
https://drive.google.com/open?id=0By4WsG59vc5leEt3bVdfc3NpX1k
HW
https://drive.google.com/open?id=0By4WsG59vc5lVlE2cFAtUFo1WDA
SW
https://drive.google.com/open?id=0By4WsG59vc5lYklqekQtbDNCY3M
If anyone can help me out with this is would be greatly appreciated.
Penthus said:
Wasn't sure whether to make a new thread or post in this one again. Seeing as the issue is similar I thought I should add to this one. Since having my last issue fixed things have been going perfectly until a few days ago when my videos started crashing with HW+ decoder. It was happening fairly frequently so I decided to to try out the other decoders and they all had issues.
HW+ as I said would hard crash out to the main menu with the crash report. HW would freeze and then start the video from the start. SW would have the video continue but the audio would freeze and then the video would roll back to sync up with the audio. It also seems to happen more frequently when I have headphones attached to the phone but that might just be statistical bias as I use headphones 99% of the time with my phone.
I have been using SW as it allows me to still watch videos although it can be a bit annoying as this can happen every couple of minutes or as frequently as every 5-10 seconds.
I have got log reports from each of the different decoders.
HW+
https://drive.google.com/open?id=0By4WsG59vc5leEt3bVdfc3NpX1k
HW
https://drive.google.com/open?id=0By4WsG59vc5lVlE2cFAtUFo1WDA
SW
https://drive.google.com/open?id=0By4WsG59vc5lYklqekQtbDNCY3M
If anyone can help me out with this is would be greatly appreciated.
Click to expand...
Click to collapse
From Logs:
AudioSystem: AudioFlinger server died!
IMediaDeathNotifier: media server died
AudioSystem: AudioPolicyService server died!
The issue happens with HW as well.
HW decoder uses the mediaplayer API provided by android. The is used in the stock video player as well.
From the logs the The AudioFlinger & AudioPolicyService Server both has died for an unknown reason. So, mediaserver is also died. [all are system services.]
In some devices when the volume is changed very aggressively it may lead to the issue. This was the issue with OP. But, in your case you have already disabled audio fading. So, the reason is unknown.
Could give some more details....?
Does this happen with all videos or only in certain videos or certain formats..?
Could you try Stock Player for the same file in which HW decode crashes..? Let me know whether it has the same issue or not.
Can you provide a sample file in which it crashes..? We need to check it with our other samsung & nexus test devices.
Sent from my SM-G900H using Tapatalk

Regarding HDR Playback on VLC

Does OnePlus 6 also support HDR? I know it's not officially stated but YouTube supports HDR on OnePlus 6. I downloaded a few of the demos and tried playing them in VLC. Upon opening, VLC directed me to "allow modifying system settings" to change screen brightness, I'm assuming it was trying to set it to Max. I enabled it and the video is now playing at full brightness in VLC. I was using DCI-P3 color profile. However, after trying to play the video again the brightness is not set to Max. I tried reinstalling VLC and playing the video again, this time I didn't get the prompt to enable system modifications as it was off by default for new apps. So now the video on playing in VLC doesn't set the brightness to Max. Tried giving permission to modify system settings, still not setting brightness to max. I'm assuming upon brightness going all the way, HDR is triggered, as I don't have any other visual indicator in VLC to see if HDR is truly ON.
YouTube HDR works great everytime, high contrast and brightness set to Max automatically.
I don't know if the display of OnePlus 6 is 10bit but that's highly unlikely.
Tried restarting, reinstalling VLC and changing color profiles to DCI-P3. Auto brightness is off, some users reported on other devices it affected HDR auto brightness so I kept it off. Nothing puts brightness to Max upon opening videos in VLC.
I'm on latest OOS 9.0 Stable OTA. I am using 4k HDR demos from 4kmedia.org and I have 4k HDR movie on my device.
Does anyone have working HDR videos on VLC? How did you get it to work and how do you know that it truly is displaying in HDR?
I don't know if any other video player which can display HDR videos as intended on Android. If you know any other video player which works for OnePlus 6 to display HDR then please let me know (and drop a link of possible).
Since I did get the prompt for the first time upon opening HDR video on VLC to allow VLC to set max brightness, I believe that the device just might do it but I'm held back by some software bug.
Sorry for the long post! Just wanted to make sure I covered everything.

Categories

Resources