Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[osu-lazer-bin] File picker can't access any files or home directories #372467

Open
M1N0RM1N3R opened this issue Jan 9, 2025 · 5 comments
Open
Labels
0.kind: bug Something is broken

Comments

@M1N0RM1N3R
Copy link

Describe the bug

The file picker used in the beatmap editor and else starts at /home, and when you try to click into your home directory, the picker widget flashes red. Of the few folders you can get to, all show up empty.

Steps To Reproduce

Steps to reproduce the behavior:

(This seems to occur everywhere there's a file picker, but the beatmap editor is a common example that comes to mind.)

  1. Launch the game, and skip through the initial setup wizard if applicable.
  2. Open the beatmap editor. (osu! "cookie" logo -> edit -> beatmap editor)
  3. The beatmap editor will open to the setup tab. Open the file picker to select a BGM audio or background image file.

Expected behavior

The file picker should show the contents of your home directory, and allow you to navigate to and select a file from the file system.

Screenshots

2025-01-09.12-22-34.mp4

Additional context

I have the game installed from the nixos-unstable branch via home-manager, but just for good measure, I removed it from my home-manager home.packages, added it to my NixOS environment.systemPackages, and did a nh os test -u before trying again and getting the same result.

As I was reviewing and sanity-checking this issue, I tried running osu! from the command line, and this log message got printed:

~ via  v3.12.7 took 12s 
nu ❯ which osu!
╭───┬─────────┬─────────────────────────────────┬──────────╮
│ # │ command │              path               │   type   │
├───┼─────────┼─────────────────────────────────┼──────────┤
│ 0 │ osu!    │ /run/current-system/sw/bin/osu! │ external │
╰───┴─────────┴─────────────────────────────────┴──────────╯

~ via  v3.12.7 
nu ❯ osu!
/usr/bin/xdg-mime: line 863: qtpaths: command not found

Metadata

~ via  v3.12.7 
nu ❯ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.69, NixOS, 24.11 (Vicuna), 24.11.20250106.3f0a8ac`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.11`
 - nixpkgs: `/nix/store/fz4h8yz3qr83p6cfhisgj02knjqg6nxs-source`

Notify maintainers

@gepbird @stepbrobd @Guanran928


Note for maintainers: Please tag this issue in your PR.


Add a 👍 reaction to issues you find important.

@M1N0RM1N3R M1N0RM1N3R added the 0.kind: bug Something is broken label Jan 9, 2025
@M1N0RM1N3R
Copy link
Author

I just tried @fufexan's rendition from his own flake with nix run github:fufexan/nix-gaming#osu-lazer-bin --no-write-lock-file, and after a flurry of admin password prompts, I got in game, and...same story.

@fufexan
Copy link
Contributor

fufexan commented Jan 9, 2025

Sounds like a permission issue to me. I've tested this (with my flake) and it seems to work for mp3s but not flacs.
image

EDIT: The fact that most folders show up empty is because you're selecting folders with no mp3s inside.

@gepbird
Copy link
Contributor

gepbird commented Jan 9, 2025

If you still have this issue unsolved, can you share your log files? They are at ~/.local/share/osu/logs

@M1N0RM1N3R
Copy link
Author

M1N0RM1N3R commented Jan 10, 2025

@fufexan

Sounds like a permission issue to me. I've tested this (with my flake) and it seems to work for mp3s but not flacs. image

EDIT: The fact that most folders show up empty is because you're selecting folders with no mp3s inside.

I tried running as sudo. I could get into my home directory, but even folders that I know have audio files in them stiill show up empty.

Edit to add: Turns out I had some bugged filenames in my ~/Music folder. When mounting my backup from my previous system in Pika Backup / Vorta and just copying the main folders over with Dolphin, it created the folder structure OK, but gave up as soon as it ran into a file it couldn't copy. I tried copying individual subdirectories from backup, and it worked...

@gepbird

If you still have this issue unsolved, can you share your log files? They are at ~/.local/share/osu/logs

From the root run (to render permissions irrelevant, but breaks libbass)

1736488290.auth.log
1736488290.database.log
1736488290.input.log
1736488290.network.log
1736488290.performance.log
1736488290.runtime.log

From a clean install (~/.local/share $ mv osu osu.bak) as myself from home-manager after a reboot (reverting the sudo nixos-rebuild test equivalent)

1736489182.auth.log
1736489182.database.log
1736489182.input.log
1736489182.network.log
1736489182.performance.log
1736489182.runtime.log
Apparently it works now?

I also tried running with my main data folder, and it works too now? Huh. Maybe it just needed a reboot or something? I don't know.

@gepbird
Copy link
Contributor

gepbird commented Jan 10, 2025

Edit to add: Turns out I had some bugged filenames in my ~/Music folder. When mounting my backup from my previous system in Pika Backup / Vorta and just copying the main folders over with Dolphin, it created the folder structure OK, but gave up as soon as it ran into a file it couldn't copy. I tried copying individual subdirectories from backup, and it worked...

So you had a bunch of empty directories If I understand correctly.

From the root run (to render permissions irrelevant, but breaks libbass)

Request to https://api.github.com/repos/ppy/osu/releases/latest timed out after 10 seconds idle

Seems like a lot of requests are timing out, it was probably fixed after you rebooted.

Also running GUI apps with sudo is rarely recommended (you even get a notification in the game about it). Instead try fixing the permissions. (chown $USER /path/to/music and chmod u+rw /path/to/musci)

From a clean install (~/.local/share $ mv osu osu.bak) as myself from home-manager after a reboot (reverting the sudo nixos-rebuild test equivalent)

This looks good, no exceptions.

I also tried running with my main data folder, and it works too now? Huh. Maybe it just needed a reboot or something? I don't know.

Maybe you tinkered with networking and that was causing some issues? The last time I built my config on a clean NixOS system, it switched some low level networking thing to NetworkManager, and my ssh session dropped. Restarting it manually fixed the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

3 participants