Open ghost opened 1 year ago
I cannot reproduce the crash. Can you please give more details about the bug? What exactly do you do to trigger this problem? What type of file is it?
Thanks
It is a 300+ mb mp4 video. Whenever i try to open it, it buffers and then the app crashes.
What exactly do you mean by "it buffers"? Do you open it with the internal video player or with an external app?
For my part, I can play movies larger than 2 GB perfectly well. Can you please attach a full logcat record of the crash? The error provided is only the second error, not the actual cause of the crash.
What's your kernel and Android version? How much RAM does your device have?
I am using the internal video player. After I open the video it plays the loading animation and then the app crashes. It plays just fine in vlc/aves.
Kernel: 4.4.153-perf+ Android: 9 PKQ1-180904.001 Ram: 4gb
Thank you, but I was asking for a logcat record, not a system trace. We need crash logs to debug the problem. You should be able to record your logcat with:
adb logcat -C --pid $(adb shell ps -A |grep droidfs|awk '{print $2}')
Which DroidFS version do you have the problem with?
Which DroidFS version do you have the problem with?
Version: 2.1.0
You should be able to record your logcat with: adb logcat -C --pid $(adb shell ps -A |grep droidfs|awk '{print $2}')
Sorry, I don't have a pc rn :(
Here's a screen recording of the crash if that helps:
https://github.com/hardcore-sushi/DroidFS/assets/61670046/86167f03-5712-4c36-9699-d26c7debdfe6
Did this also happen with previous versions? Can you play the video with your native Android video player, inside the gallery?
If you have root access, you don't need a PC. You can use an app like this one to record your logcat. I only need to see the full log of the error you provided in your first message.
Are you able to play other larger videos inside DroidFS?
Did this also happen with previous versions?
Yes
Can you play the video with your native Android video player, inside the gallery?
Mi video, vlc and aves all play the video just fine
If you have root access
I do not have root
Are you able to play other larger videos inside DroidFS?
Yes, the video in question is 356 mb. I am able to play a 410 mb video and others of similar size perfectly.
Also, the app crashes when I close the container while exporting a file
How did you get the error stack strace in your first message?
The issue may be specific to this video file. Could you share it or another video that also triggers the bug?
Also, the app crashes when I close the container while exporting a file
Yes this is not clean but expected. Take a look at #157 for more details.
How did you get the error stack strace in your first message?
MIUI reports it whenever an app crashes 2 times or more
Could you share it or another video that also triggers the bug?
I tested multiple videos and this is the only one that crashes. I will get banned if I share over here, what's your e-mail?
You can send it to me at hardcore.sushi@disroot.org.
``` -----BEGIN PGP PUBLIC KEY BLOCK----- xjMEZLJQGBYJKwYBBAHaRw8BAQdAstu9EVQZ4g+31QmktQpZqqpPvbpTqh2S XxC+xp/z3KrNKWN1dGV0dWxpcEBwcm90b24ubWUgPGN1dGV0dWxpcEBwcm90 b24ubWU+wowEEBYKAD4FgmSyUBgECwkHCAmQyhBzzcJpBxwDFQgKBBYAAgEC GQECmwMCHgEWIQTmfGVZkQLzba/g7x3KEHPNwmkHHAAAzz0BAMnHHZSdWdZf ySvMTLYJdhMwKgwKqClhOpMex/zFKmgBAQDf1z6ICB/UxS832skqpufIZeCb 2uQoHNNtUG+elJGnDc44BGSyUBgSCisGAQQBl1UBBQEBB0BPXllh1ZFbWVax 0Jal105c/OD/LE/xqI8C2Vsgd3VbLAMBCAfCeAQYFggAKgWCZLJQGAmQyhBz zcJpBxwCmwwWIQTmfGVZkQLzba/g7x3KEHPNwmkHHAAAOO4BANz42iBuFTbY cJuCbJO+eEWoNZSWTeKjtQw1YZXAFb4xAP48Q2v7ENhIPhi8Yh3MuxsqMSAU vqlIzAS4uLADHahlDg== =Vz6a -----END PGP PUBLIC KEY BLOCK----- ```
OK here is the full log of the crash:
I also get the same error when I try to play the video with Just (Video) Player, which uses ExoPlayer, just like DroidFS. So I think it's a problem with ExoPlayer, or with the device. Since you said you use MIUI, I assume you have a Xiaomi device. What is the exact model? Personally, I have a Redmi Note 8 (ginkgo). It might be worth testing on other models and another brand.
What is the exact model?
I am using a xiomi redmi 6 pro.
I also get the same error when I try to play the video with Just (Video) Player, which uses ExoPlayer
I have some interestings results. I installed just (video) player and tried to play the video, and then... it crashed. But when I transcoded some seconds of the video to H.264 (mkv) it played perfectly. I also transcoded 3 seconds of the video to H.265 (mkv) and it also played fine.
As you pointed out, this is most likely an issue with ExoPlayer.
I didn't transcode the whole video because it would take hours (3fps).
java.lang.RuntimeException: Unable to start activity ComponentInfo{sushi.hardcore.droidfs/sushi.hardcore.droidfs.explorers.ExplorerActivity}: java.lang.NullPointerException at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2946) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3081) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1831) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:201) at android.app.ActivityThread.main(ActivityThread.java:6810) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873) Caused by: java.lang.NullPointerException at sushi.hardcore.droidfs.explorers.BaseExplorerActivity.onCreate(SourceFile:72) at android.app.Activity.performCreate(Activity.java:7224) at android.app.Activity.performCreate(Activity.java:7213) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1272) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2926) ... 11 more