joel16 / 3DShell

3DShell - (Pronounced 3D Shell) is a multi purpose file manager for the Nintendo 3DS. Heavily inspired by the CyanogenMod/LineageOS file manager.
311 stars 20 forks source link

Shuffle Loop Decrements #35

Closed destinedjagold closed 4 years ago

destinedjagold commented 6 years ago

Something seems weird with the shuffle functionality (while on sleep mode). I noticed this earlier today when the app kept on repeating three songs, and (theorizing) the number of songs to loop seems to be decreasing, until it only loops 1 song, and after that song ended, the variable is now 0 so there's no song to loop, and the app crashed

joel16 commented 6 years ago

Shouldn't happen anymore https://github.com/joel16/3DShell/commit/620b9499bf2f465f2424c75e93f2fd508c78f8c5

destinedjagold commented 6 years ago

I am honestly not sure if it's fixed or not as I tried the newest update twice today, but it still crashes at some point. Perhaps the cause is no longer the loop thing.

joel16 commented 6 years ago

Hm, I'll have to reopen this then. I'll send you a build that logs everything so we get a better idea. I'm busy at the moment so it'll have to wait till the weekend at most.

joel16 commented 6 years ago

Okay here are the builds that logs data from the music player. I want you to try the one you prefer (cia/3dsx) and play around with it till it crashes. Then send me the log located in /3ds/3DShell/log.txt.

3DSX CIA

destinedjagold commented 6 years ago

So far, it has crashed twice.

The first "crash" ... wasn't really a crash. It only distorted the music so loudly and it kept playing. In previous builds, the application would crash once this happens, but it didn't crash when it happened so I simply went back to the home menu to fix the issue.

The second time was an actual crash that happened a few hours ago. I didn't use the app since then, fearing that it may overwrite the log file if I run it again.

Speaking of, where is the error log file located so I could send it?

Good day~

joel16 commented 6 years ago

SD:/3ds/3DShell/log.txt.

destinedjagold commented 6 years ago

log.txt

Here you go.

joel16 commented 6 years ago

Can you upload it to some place else? I can't access it.

destinedjagold commented 6 years ago

Here you go.

https://drive.google.com/open?id=1IXBwVGsmrlobvX0arQntmAomA5M-uC0Z

joel16 commented 6 years ago

Looking at the logs it doesn't look like anything is wrong. The only weird thing I noticed was you had 41 files in your music folder, and now it's 40.

destinedjagold commented 6 years ago

Ah, the 41 to 40 issue was because I deleted a song.

Anyway, I've backed up a lot of log files every time the app crashes. There's quite a number of them, but I'll be uploading the latest one soon.

Anyway, I find the decrement weird to be quite honest. Is it not possible to create an array of the available songs, randomize it, and use a "foreach"?

destinedjagold commented 6 years ago

Picture of the homescreen after the app crashed: https://i.imgur.com/WntfoQL.jpg

Latest log file: https://drive.google.com/open?id=1-M4jzAvVQE-Ga4Hh4mfFEXhrHZoOW1ER

joel16 commented 4 years ago

I've decided to remove the audio decoder functionality within 3DShell due to lack of time, and motivation. You can use the following alternative which seems to be better supported: https://github.com/Oreo639/LimePlayer3DS