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

Caused a crash when testing auto-theme + Carbon theme #1134

Open
curbia opened this issue Apr 24, 2024 · 3 comments
Open

Caused a crash when testing auto-theme + Carbon theme #1134

curbia opened this issue Apr 24, 2024 · 3 comments

Comments

@curbia
Copy link

curbia commented Apr 24, 2024

Some albums were not generating colours so I closed Tauon, and now it won't reopen. Installed as flatpak, and when I launch from terminal:

Traceback (most recent call last):
  File "/app/bin/tauon.py", line 352, in <module>
    from t_modules import t_main
  File "/app/bin/t_modules/t_main.py", line 43046, in <module>
    load_theme(c, theme[0])
  File "/app/bin/t_modules/t_themeload.py", line 143, in load_theme
    colours.playlist_panel_background = get_colour_from_line(p)
                                        ^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/bin/t_modules/t_themeload.py", line 51, in get_colour_from_line
    r = int(ll[0] + ll[1], 16)
        ^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 16: 'tr'

I have tried removing state.p, state.p.backup, and tauon.conf from my install folder but it still crashes. :(

How to turn off auto-theming without launching? The error seems to be caused by one of the auto-colour functions.

@curbia
Copy link
Author

curbia commented Apr 24, 2024

I managed to get it working again but I had to delete the entire ~/.var/app/com.github.taiko2k.tauonmb/data/TauonMusicBox folder and re-implement my settings from scratch. Leaving this up because this error might be important for fixing an algorithm.

@Taiko2k
Copy link
Owner

Taiko2k commented Apr 25, 2024

Yeah looks like a bug that should be fixed. But it looks like to me the trigger is a malformatted theme file rather than an internal setting. Were you editing any theme files before this crash perchance?

@curbia
Copy link
Author

curbia commented Apr 25, 2024

None of the default ones, and I never activated any custom one because I hadn't done anything more than make a list of all the possible valued by copy-pasting together lines from a few different themes. I had Carbon active when this happened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants