LMMS / lmms

Cross-platform music production software
https://lmms.io
GNU General Public License v2.0
7.96k stars 993 forks source link

Switching users breaks style of menu bar, side bar #3523

Open ghost opened 7 years ago

ghost commented 7 years ago

So i was just making song when i for a moment switched to a diffrent user. When i came back Lmms has changed color : ggfsdf I only found that i changes only this but it maybe could effect other items in lmms that i dont know about. (sorry if this topic has been already brought up by someone else btw)

tresf commented 7 years ago

@Texxiliator I've never seen this before and I don't believe it can technically happen without something incorrect happening to your profile or configuration... let me explain...

Some troubleshooting measures include

  1. Uninstalling and reinstalling LMMS, purging the %PROGRAMFILES%\LMMS directory.
  2. Moving or deleting %USERPROFILE%\.lmmsrc.xml

But if this does nothing, chkdsk /x as admin and reboot might fix it as corrupt Windows 10 (NTFS) filesystem can cause all sorts of weirdnesses, especially with solid state drives.

ghost commented 7 years ago

@tresf Did you tryed this? Maybe it's just my PC being weird (again).

Spekular commented 7 years ago

I've had weird issues happen in LMMS when windows locks automatically and I have to sign in again, so I don't think it's only you.

I haven't been able to reliably reproduce and it was a while ago, but iirc it caused the same color issues as here.

On May 8, 2017 13:06, "Texxiliator" notifications@github.com wrote:

@tresf https://github.com/tresf Did you tryed this? Maybe it's just my PC being weird (again).

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/LMMS/lmms/issues/3523#issuecomment-299838359, or mute the thread https://github.com/notifications/unsubscribe-auth/AIgVmuyRikGv6VHgpBn-xjurSko5TZO4ks5r3vczgaJpZM4NNQ3I .

tresf commented 7 years ago

@tresf Did you tryed this? Maybe it's just my PC being weird (again).

Confirmed. Thanks for the bug report.

Steps to reproduce from Windows 10:

  1. Log in as your standard desktop user
  2. Open LMMS 1.2.0-RC2 or higher
  3. Open sidebar
  4. Switch users using Windows, User, Switch Account
  5. Sign right back in as the same desktop user

image

This occurs on 1.2.0-RC2 (Qt5) but not 1.2.0-RC1 (Qt4) pointing to a potential upstream Qt bug.

Interestingly enough... we might be able to work-around it partially.

Here's what happens when I explicitly set a background color. Note how the menu bar bug doesn't occur.

I think with some trial and error, we can fix the items that experience this bug and allow fast-user switching.

/* most foreground text items */
QLabel, QTreeWidget, QListWidget, QGroupBox, QMenuBar {
    background-color: red;  /*  <----- ADDED THIS */
    color: #d1d8e4;
}

image

BaraMGB commented 7 years ago

I had a similar experience when I installed lmms the first time on Windows 10. But after restart lmms it looked normal. So I don't give something on it.

Look at the Knobs on the second picture. They looked odd too on my installation. Also the mixer looked odd.

Umcaruje commented 7 years ago

Hmm, back when I worked on the theme, I'd sometimes get a similar effect when the style-sheet wouldn't get fully parsed, due to a syntax error. Though this only happens on a user switch, I'm not certain if there's a correlation.