RetroArch icon indicating copy to clipboard operation
RetroArch copied to clipboard

old playlist format is no longer supported

Open kcin2001 opened this issue 7 years ago • 31 comments

First and foremost consider this:

  • Only RetroArch bugs should be filed here. Not core bugs or game bugs
  • This is not a forum or a help section, this is strictly developer oriented

Description

any playlist that doesnt use the new format shows "no playlist entries available"

Expected behavior

for the playlist to still show up or at least get converted automatically

Actual behavior

"no playlist entries available"

Steps to reproduce the bug

  1. have a non json playlist
  2. navigate to it
  3. "no playlist entries available"

Bisect Results

[Try to bisect and tell us when this started happening]

Version/Commit

You can find this information under Information/System Information

  • RetroArch: 1.7.8 e39f5d7143

Environment information

  • OS: Windows 8.1
  • Compiler: [In case you are running local builds]

kcin2001 avatar Sep 10 '19 04:09 kcin2001

Can you try some recent nightlies and pinpoint when this started happening?

hizzlekizzle avatar Sep 10 '19 15:09 hizzlekizzle

@kcin2001 I can't reproduce this. Could you post a non-working playlist, so I can check it over? (might be an obscure encoding issue, or suchlike)

jdgleaver avatar Sep 10 '19 16:09 jdgleaver

!Metroid.lpl.txt here @jdgleaver

kcin2001 avatar Sep 15 '19 21:09 kcin2001

@kcin2001 Hmm... That file looks fine (no encoding issues, no BOM oddness at the start of the file) - and moreover, it loads just fine under Linux:

Screenshot_2019-09-16_11-12-04

There's nothing in the code that should be different for Windows, so this is a bit of a puzzle. I don't have a Windows machine available for testing. Are you able to compile a Windows build? I could give you a diff with some debugging output, which would at least show how it's reading the lines.

jdgleaver avatar Sep 16 '19 10:09 jdgleaver

1 other weird thing, i have an old format playlist that should be identical in formatting that does work, i just never think of it since i removed its extension to hide it from xmb but i thought of it when i looked in the desktop menu

kcin2001 avatar Sep 16 '19 20:09 kcin2001

I'm on Windows and I also cannot reproduce this (using https://github.com/libretro/RetroArch/commit/e39f5d714317c0a5e85cdc7ed1c326c7d674edee), the playlist loads just fine.

Can you zip the 2 playlists you got, just to be sure the files don't somehow get changed along the way?

LazyBumHorse avatar Sep 17 '19 14:09 LazyBumHorse

playlists.zip the 2 with the lpl extension dont work but the 1 without any extension works (in desktop menu)

kcin2001 avatar Sep 18 '19 19:09 kcin2001

Hm... Nope.

After some thinking I could reproduce it in one way: If the current user doesn't have read permissions for the file, RetroArch will see the file but can't open it and thus shows an empty playlist.

Can you check the file permissions?

LazyBumHorse avatar Sep 18 '19 20:09 LazyBumHorse

All three worked here...

Screenshot at 2019-09-18 16-52-54

Anything in the filename or file system that would cause Windows to bork?

RobLoach avatar Sep 18 '19 20:09 RobLoach

they should have normal perms, retroarch has been able to open them in the past and notepad++ is able to open and edit them fine the middle one does work (but is also new format) image

kcin2001 avatar Sep 19 '19 00:09 kcin2001

That screenshot doesn't show the user permissions, but you are right that if Notepad++ can open it, this shouldn't be the issue. Just to be extra sure you could try running RetroArch as admin.

If that still won't work, let's see where the problem lies. Can you run this debug build (source, if you want to build yourself) and post the [DEBUG] log entries?

It should look like this:

[INFO] [DEBUG] menu_displaylist_set_new_playlist(C:\Users\kcin2001\Downloads\RetroArch\playlists\!Pokemon.lpl)
[INFO] [DEBUG] opened playlist C:\Users\kcin2001\Downloads\RetroArch\playlists\!Pokemon.lpl
[INFO] [DEBUG] old playlist format detected
[INFO] [DEBUG] reading playlist entries...
[INFO] [DEBUG] read playlist with 30 entries
[INFO] [DEBUG] playlist_init_cached(C:\Users\kcin2001\Downloads\RetroArch\playlists\!Pokemon.lpl) succeded
[INFO] [DEBUG] menu_displaylist_parse_playlist list_size = 30

LazyBumHorse avatar Sep 19 '19 10:09 LazyBumHorse

image i get this when i try to run the debug build, newer redist needed or what?

kcin2001 avatar Sep 19 '19 17:09 kcin2001

Oh, hm.. the nightlies use avcodec-57 still, okay, I guess I'll just upload the whole thing. Here you go.

LazyBumHorse avatar Sep 19 '19 19:09 LazyBumHorse

and the issue is gone with that build

kcin2001 avatar Sep 19 '19 23:09 kcin2001

image

kcin2001 avatar Sep 19 '19 23:09 kcin2001

Huh.

Okay, let's think about what has changed.

First of all, you said you were using version https://github.com/libretro/RetroArch/commit/e39f5d714317c0a5e85cdc7ed1c326c7d674edee, but I looked at the releases and there's a nightly just one commit before that, the next nightly is a few commits after that and the stables are also different - so where did you get this version?

The debug build was done from master, so we can try again with a build based on https://github.com/libretro/RetroArch/commit/e39f5d714317c0a5e85cdc7ed1c326c7d674edee (copy that over the last one).

Then the second thing, the redists - those shouldn't affect this at all and no matter what combination of version and redist I tried, I still could not reproduce the issue.

You ran the build from the same directory with the same retroarch.cfg and all, right?

Did you test the newest nightly as well?

LazyBumHorse avatar Sep 20 '19 13:09 LazyBumHorse

The build i was using was a nightly i downloaded when i wanted to try ps1 cheevos and i can check but i downloaded the newest nightly after trying the debug build you sent because how i did it broke my retroarch install slightly

kcin2001 avatar Sep 20 '19 17:09 kcin2001

I should not i get my nightly exes from the update zip

kcin2001 avatar Sep 20 '19 17:09 kcin2001

Ah, so you got the version from RetroArch_update.zip, that only contains the exes without the redist. Generally it's fine to get that, the redist only change rarely and if there's an issue you can download them separately as well. You can just also download the full build which contains both.

Let's first try to repair the dll mess I created. You can delete all the dlls in C:\Users\kcin2001\Downloads\RetroArch including subfolders - except for the cores folder. Download the full build just to be sure and extract it in C:\Users\kcin2001\Downloads\RetroArch. Now everything should be in order again.

Can you then test if the playlist loads like it should?

LazyBumHorse avatar Sep 20 '19 17:09 LazyBumHorse

When i fixed my install to the latest nightly yesterday i just downloaded the update and the redist

kcin2001 avatar Sep 20 '19 18:09 kcin2001