--no-gui makes all colors black #3

Open
opened 2025-01-21 14:27:37 +01:00 by thibaudk · 6 comments
thibaudk commented 2025-01-21 14:27:37 +01:00 (Migrated from codeberg.org)
No description provided.
jcelerier commented 2025-01-22 02:04:22 +01:00 (Migrated from codeberg.org)

If you're using the score skin colors (score::Skin::instance()) this is normal, the skin isn't loaded in --no-gui mode

https://github.com/ossia/score/blob/master/src/plugins/score-plugin-scenario/Scenario/Settings/ScenarioSettingsModel.cpp#L88

If you're using the score skin colors (score::Skin::instance()) this is normal, the skin isn't loaded in --no-gui mode https://github.com/ossia/score/blob/master/src/plugins/score-plugin-scenario/Scenario/Settings/ScenarioSettingsModel.cpp#L88
jcelerier commented 2025-01-22 02:04:44 +01:00 (Migrated from codeberg.org)

e.g.

  if(!score::AppContext().applicationSettings.gui)
    return;
e.g. ``` if(!score::AppContext().applicationSettings.gui) return; ```
jcelerier commented 2025-01-22 02:05:54 +01:00 (Migrated from codeberg.org)

This is done because loading the skin actually instantiates a ton of QPen & QBrush objects which are ok when we have the gui loading overhead, but are not ok when we try to play a score in headless mode in a raspberry pi zero and want the quickest startup time possible

This is done because loading the skin actually instantiates a ton of QPen & QBrush objects which are ok when we have the gui loading overhead, but are not ok when we try to play a score in headless mode in a raspberry pi zero and want the quickest startup time possible
jcelerier commented 2025-01-22 02:13:34 +01:00 (Migrated from codeberg.org)

btw I really think you should report these issues directly to the main score repo :)

btw I really think you should report these issues directly to the main score repo :)
thibaudk commented 2025-01-22 13:48:29 +01:00 (Migrated from codeberg.org)

@jcelerier wrote in https://codeberg.org/bugui/score-addon-hardware/issues/3#issuecomment-2609000:

This is done because loading the skin actually instantiates a ton of QPen & QBrush objects which are ok when we have the gui loading overhead, but are not ok when we try to play a score in headless mode in a raspberry pi zero and want the quickest startup time possible

Yes, I figured ;)
Thanks for the details, it makes a lot of sense !

@jcelerier wrote in https://codeberg.org/bugui/score-addon-hardware/issues/3#issuecomment-2609000: > This is done because loading the skin actually instantiates a ton of QPen & QBrush objects which are ok when we have the gui loading overhead, but are not ok when we try to play a score in headless mode in a raspberry pi zero and want the quickest startup time possible Yes, I figured ;) Thanks for the details, it makes a lot of sense !
thibaudk commented 2025-01-22 14:53:33 +01:00 (Migrated from codeberg.org)

@jcelerier wrote in https://codeberg.org/bugui/score-addon-hardware/issues/3#issuecomment-2609008:

btw I really think you should report these issues directly to the main score repo :)

I might, but as mentioned in #4, there may be a lot more than the issue of color in --no-gui mode.
These issues are even apparent with the regular UI focused on a different part of the scenario than the hardware is.
So I am looking to get as far as possible with #4, and see if I get a better Idea of what can be done upstream, if anything.

@jcelerier wrote in https://codeberg.org/bugui/score-addon-hardware/issues/3#issuecomment-2609008: > btw I really think you should report these issues directly to the main score repo :) I might, but as mentioned in #4, there may be a lot more than the issue of color in --no-gui mode. These issues are even apparent with the regular UI focused on a different part of the scenario than the hardware is. So I am looking to get as far as possible with #4, and see if I get a better Idea of what can be done upstream, if anything.
thibaud.keller self-assigned this 2025-01-26 13:46:47 +01:00
thibaud.keller added this to the dev project 2025-01-26 13:46:55 +01:00
Sign in to join this conversation.
No description provided.