LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Bodhi (https://www.linuxquestions.org/questions/bodhi-92/)
-   -   Strange window title bars in Audacity (https://www.linuxquestions.org/questions/bodhi-92/strange-window-title-bars-in-audacity-4175647266/)

makarovnik 01-29-2019 11:04 PM

Strange window title bars in Audacity
 
4 Attachment(s)
I surprised my search came up empty on this subject.

Using Audacity with Bodhi 5. When I put my mouse pointer on a slider and click to adjust one of the volume levels, a small window title bar appears and covers the slider so I cant see the slider anymore. As soon as I take the pointer off the slider it goes back to normal.

Makes adjusting volume levels extremely difficult when you can't see what you are doing. Any ideas on how to stop this from happening? I have included some screen prints. The first one is before touching sliders and the others are after touching each of the volume control sliders.

the_waiter 01-30-2019 05:57 AM

This issue could be related to GTK theme. Go to the Application themes settings and try to change the current GTK theme to another if help. We are working hard on themes maintaining these day. I created all GTK themes for each maintained theme. The issue is, GTK themes are in progress and we dont have GTK 3.2x support in BL 5. If you tell me the issue was solved with GTK theme changing, I will ask Ylee to make debs and you can upgrade your current theme to the right one.

I am waiting your feedback

Stefan

bobl01 01-30-2019 10:54 AM

I can confirm this problem. It appears to be independent of GTK theme.

On clicking on a slider toggle, it seems that the system pops up a degenerate dialog window, showing an empty title bar with the Audacity icon on the left and the X close icon on the right. There is no actual content in the window itself. This happens Seven theme with the Windows Vista GTK theme, and the default theme with Adwaita, plus a few other combinations I've tried.

FWIW I've just tried Audacity on Mac OS X. On the mac, when you move the slider a little window pops up and displays: Output Volume 0.x, where the 0.x changes as the slider is moved.

the_waiter 01-30-2019 11:40 AM

Yes, I can confirm the issue. Sth wrong with wxWidgets? I have no idea so far. Hmmm.

Upgrading Audacity to 2.2.2 did not help

bobl01 01-30-2019 12:32 PM

Workaround!
 
There IS a workaround! But it's a little complex to set up...

1. Double click on the volume slider, and a dialog window should appear.
2. Click on the close icon of the dialog. The offending blank window should still be present.

WARNING: Do not attempt to close the blank window as you will crash Audacity. (I know you'll do it anyway, just for the lols)

3. Click on the Audacity icon of the blank window, and select Window > Move.
4. Move the blank window to some harmless screen location of your choice.
5. Click on the Audacity icon of the blank window, and select Window > Remember. A Window Remember dialog opens.
6. Select basic mode in the Window Remember dialog (if you're not there already).
7. Select Size and Position, then Apply, then Close

Now you can move the slider freely. When you release the slider, the blank window disappears. When you click the slider again, the blank window appears at the remembered position, but disappears as soon as you release the slider.

Enjoy!

makarovnik 01-30-2019 01:01 PM

Ya the first thing I tried was upgrading audacity.

Thanks Bobl01. I saw something like that on this old post from 2016:
https://bugzilla.redhat.com/show_bug.cgi?id=1347053

Your thorough explanation was a little easier to follow as I could not quite figure out how to make it work last night. I tried all kinds of weird things like dragging it off the edge of the unmaximized window and then tried dragging it off the screen.

Thanks to you I got it to work in an acceptable way. I might try going one step further and see if I can make that offensive little title bar go to the bottom of all other windows and stay there so I never see it. I guess for now this is solved as far as I'm concerned. Maybe next revision of Bodhi can address this. Audacity is a popular piece of software.

Update: I couldn't get it to stay below all other windows but what I did is follow the bobl01 procedure then I dragged it to the ibar and stuck it there. It's not too distracting that way. Thanks all.

ondoho 01-30-2019 01:10 PM

I can confirm this is happening on Audacity 2.2.2 on ArchLinux+openbox, too.
The only difference is that the offending window does not cover the slider area, but sticks to the top left edge of the screen and seems to be only 1x1px.
other dropdown menus and text labels are also out of whack.

on first glance i cannot see anything relevant on arch forums.

audacity is written with wxwidgets? wxwidgets has caused me harm earlier, so i'd blame it on that, too.

hemlocktree 01-30-2019 02:56 PM

too bad - i always thought it was a good app. i used to use digital performer on macs when i recorded and mixed and mastered.....

rbtylee 01-31-2019 08:53 AM

Quote:

Originally Posted by bobl01 (Post 5955548)
There IS a workaround! But it's a little complex to set up...

Dang Dude :D

I have to admire your ingenuity.

It seems simpler just to move the audacity main window. The little black pop up stays where it is at. At least it does here.

rbtylee 01-31-2019 11:21 AM

ok I took the time to take a close look at this this morning. Here is what I have determined:

Quote:

Originally Posted by bobl01 (Post 5955515)
I can confirm this problem. It appears to be independent of GTK theme.
...

I think bobl01 is right, changing gtk themes did not help me nor did using the default Moksha theme. Seems unrelated to either. BUT since i do know that in subtle ways our default theme in Moksha has issues I am not ruling that out completely as yet. Our other themes are more or less based on this default e17 theme, so issues the default e17 theme has most likely effects on all our themes ...

But anyways moving on.

Updating audacity does not help.

I updated audacity to the latest commit in git. Compiled both audacity and wxWidgets for GTK+ as recommended by audacity/linux/build.txt. I made sure absolutely everything audacity needed was installed and there were no configure warnings at all. Moksha still has the same issue.

The .xsessionerrors file provides a clue:

Code:

(audacity:10108): Gtk-CRITICAL **: 05:03:40.713: IA__gtk_window_resize: assertion 'height > 0' failed
The additional errors:

Code:

04:57:00: Debug: ClientToScreen cannot work when toplevel window is not shown
seem unrelated. I think they relate to the splash screen which also doesn't display correctly on Bodhi 5.0. And maybe that Welcome to Audacity help screen that also displays. The splash screen not displaying makes this TWO issues not one :(

Updating efl does not help. Same error in efl 1.21.1.

Quote:

Originally Posted by ondoho (Post 5955567)
I can confirm this is happening on Audacity 2.2.2 on ArchLinux+openbox, too.
The only difference is that the offending window does not cover the slider area, but sticks to the top left edge of the screen and seems to be only 1x1px
...

This implies Moksha is not the only window manager having problems with this same issue. I can verify that the same issue persist in my Lubuntu 18.04 VM install. This is LXDE and I think is using the Openbox window manager. And as ondoho suggest the window is 1 pixel wide. I am not going to test and see which window Managers have the same difficulty. But it should be noted the splash screen does display correctly in LXDE.

Quote:

Originally Posted by ondoho (Post 5955567)
...

audacity is written with wxwidgets? wxwidgets has caused me harm earlier, so i'd blame it on that, too.

Well I am not going to blame wxwidgets. I like wxwidgets and it was the third GUI toolkit I tried to learn how code with. Never had any issues with the tool kit itself.

But googling around I can find other apps that used to throw the same or similar .xsessionerrors. Most of them patched their code to avoid this 'height > 0' or sometimes 'width > 0' assertion failures. It seems something changed probably in gtk that made it stricter and apps started getting these warnings in stderr.

This suggests if the audacity code was patched one could make that error go away. Maybe and most likely stuff would display right in Bodhi after that.

BUT I am not blaming audacity. Err some window managers get this right. One still has the .xsessionerrors but the popup displays right.

As bobl01 notes:

Quote:

Originally Posted by bobl01 (Post 5955515)
... FWIW I've just tried Audacity on Mac OS X. On the mac, when you move the slider a little window pops up and displays: Output Volume 0.x, where the 0.x changes as the slider is moved.

This is what it should look like: audacity-e22


This is on e22 compiled on the same Lubuntu 18.04 VM install mentioned above with efl 1.21.1. Note audacity fails to display this right in both lubuntu and Moksha compiled also in the same lubuntu VM. Also in e22 the splash Screen does display.

It also fails to display right in e17 in the same Lubuntu VM.

So to conclude I am taking this to mean we have TWO window manager bugs which have been present since before Moksha forked from e17 but has been fixed in latter versions of e.

hemlocktree 01-31-2019 11:25 AM

wow - i wish i knew 1/1000th of what you know.... nice work man.

ondoho 01-31-2019 12:41 PM

Quote:

Originally Posted by hemlocktree (Post 5955596)
too bad - i always thought it was a good app.

this problem doesn't make it unusable.

anyhow, i compiled audacity with wxgtk2 last night, and the issue is exactly the same.

not sure what to make of it; i'd say i was too hasty to blame it on wxwidgets.
it also doesn't seem to have anything to do with the window manager.

i started it from a terminal, and i get more than a screenful of this:
Quote:

Debug: ScreenToClient cannot work when toplevel window is not shown
then, when i actually hover over the slider and that weird window is created and destroyed, nothing. no output.

i don't think this is window manager or gtk theme dependent at all, but i cannot test in VMs right now.

PS:
ubuntu 18.04 offers audacity 2.3.0 as a snap package.
did you try that, rbtylee?

the_waiter 01-31-2019 12:50 PM

I posted a request to Audacity forum. Maybe the developers will answer

hemlocktree 01-31-2019 01:03 PM

i did not mean it was bad stefan just a buggy thing. that was all.

the_waiter 01-31-2019 01:18 PM

hemlocktree: We don't like buggy things

Anyway: I downloaded the GTK 3.30 theme from gnome-look.org and it also did not help :(
https://www.gnome-look.org/browse/cat/135/

EDIT: OK, we have an answer
https://forum.audacityteam.org/viewt...?f=50&t=103517


All times are GMT -5. The time now is 11:05 PM.