Skip to content

HiDPI issues #503

Closed
Closed

Description

@prokoudine

There is a number of UI/UX issues quite visible when using Audacity on a HiDPI display (Linux, wxGTK3):

  • pixelated text in custom widgets
  • low-resolution icons
  • text not fitting respective parts of UI
  • combo boxes get cut off

image

Hopefully, you could address some of that in the future.

Activity

  1. lllucius commented on Apr 25, 2020

    @lllucius
    Contributor

    Absolutely! It drives me crazy as well. It won't be in the upcoming release (out soonish), but this will be one of my main chores for the next one.

  2. Marat-Tanalin commented on Mar 17, 2021

    @Marat-Tanalin

    Under Windows, Audacity is not DPI-aware at all, so GUI (including the latest Audacity 3.0) is entirely blurry (W7) or pixelated (W10 at integer OS-level zooms like 2.0=200%) by default.

    Enabling enhanced DPI scaling (DPI virtualization) via the executable properties (“System (Enhanced)” mode) somewhat helps under Windows 10:

    “Properties” → “Compatibility” → “Settings” → “Change high DPI settings” → “High DPI scaling override” → “Override high DPI scaling behavior. Scaling performed by” → “System (Enhanced)”.

    That, compared with regular (non-enhanced) “System” DPI mode used by default for non-DPI-aware apps, at least makes some GDI-rendered texts rendered in full resolution. Though icons and some non-GDI texts are of course still pixelated.

    Screenshot

    w10-system-enhanced

  3. eszlari commented on Mar 18, 2021

    @eszlari

    Under Linux with:

    GDK_SCALE=2
    GDK_DPI_SCALE=0.5
    

    wxWidgets 3.1:

    audacity_gtk_scale_2x

    wxWidgets 3.0:

    audacity_wx3 0_gtk_scale_2x

    Now with Audacity 3.0 you have forced the use of wxWidgets 3.1 at compile time:

    CMake Error at cmake-proxies/wxWidgets/CMakeLists.txt:242 (message):
      
      ########################################################################
      Audacity version 3.0.0 or higher requires use of a customized version of
      wxWidgets.  For details:
        https://wiki.audacityteam.org/wiki/Building_for_Distros
      ########################################################################
    

    Please fix the HiDPI issues or allow compiling with wxWidgets 3.0 again.

  4. added
    Enhancement Request
    on May 13, 2021
  5. DasJott commented on Jul 14, 2021

    @DasJott

    Audacity currently not usable at all.
    image

    V2.4.1

  6. DasJott commented on Jul 14, 2021

    @DasJott

    In V3.0.2 it is different, but still unusable and far from good looking:
    image

    Installed this by flatpak on Solus OS.

  7. MarkJeronimus commented on Aug 7, 2021

    @MarkJeronimus
  8. rrthomas commented on Aug 9, 2021

    @rrthomas

    @MarkJeronimus I tried this, but unfortunately while almost everything worked, the view of the audio (the waveforms) are only drawn once, and then never redrawn when I zoom/pan etc. I tried passing --opengl=no to run_scaled, but that didn't help.

  9. plumlis commented on Aug 27, 2021

    @plumlis

    Same here.
    Fedora 34 64bit with Wayland 200% scaling.

  10. LunaGNUisance commented on Jan 20, 2022

    @LunaGNUisance

    GNOME, 200% DPI, compiled it via the AUR with conan. But these issues are present on the (broken) AppImages as well.

    GDK_SCALE seems to fail on startup. It looks the same whether it's 100% or 200% scaled on GNOME.

    (process:31817): Gdk-CRITICAL **: 17:03:55.196: IA__gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed
    
    (process:31817): Gdk-CRITICAL **: 17:03:55.197: _gdk_pixmap_new: assertion '(drawable != NULL) || (depth != -1)' failed
    /home/luna/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/130288072304580eba516027ffe9f26f82ad6965/source_subfolder/src/gtk/bitmap.cpp(827): assert ""IsOk()"" failed in ConvertToImage(): invalid bitmap
    /home/luna/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/130288072304580eba516027ffe9f26f82ad6965/source_subfolder/src/common/image.cpp(2172): assert ""IsOk()"" failed in SetMaskColour(): invalid image
    /home/luna/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/130288072304580eba516027ffe9f26f82ad6965/source_subfolder/src/common/image.cpp(2223): assert ""IsOk()"" failed in SetMask(): invalid image
    /home/luna/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/130288072304580eba516027ffe9f26f82ad6965/source_subfolder/src/common/image.cpp(1853): assert ""IsOk()"" failed in GetWidth(): invalid image
    /home/luna/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/130288072304580eba516027ffe9f26f82ad6965/source_subfolder/src/common/image.cpp(1860): assert ""IsOk()"" failed in GetHeight(): invalid image
    /home/luna/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/130288072304580eba516027ffe9f26f82ad6965/source_subfolder/src/common/image.cpp(2112): assert ""IsOk()"" failed in GetAlpha(): invalid image
    /home/luna/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/130288072304580eba516027ffe9f26f82ad6965/source_subfolder/src/common/image.cpp(2232): assert ""IsOk()"" failed in HasMask(): invalid image
    /home/luna/.conan/data/wxwidgets/3.1.3.1-audacity/_/_/build/130288072304580eba516027ffe9f26f82ad6965/source_subfolder/src/common/image.cpp(1986): assert ""IsOk()"" failed in GetData(): invalid image
    
    (process:31817): GdkPixbuf-CRITICAL **: 17:03:55.197: gdk_pixbuf_new_from_data: assertion 'data != NULL' failed
    
    (process:31817): Gdk-CRITICAL **: 17:03:55.197: IA__gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed
    
    (process:31817): Gdk-CRITICAL **: 17:03:55.197: IA__gdk_drawable_get_display: assertion 'GDK_IS_DRAWABLE (drawable)' failed
    
    (process:31817): Gdk-CRITICAL **: 17:03:55.197: IA__gdk_cursor_new_from_pixbuf: assertion 'GDK_IS_DISPLAY (display)' failed
    
    (process:31817): GLib-GObject-CRITICAL **: 17:03:55.197: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
    

    audacity-hidpi-problems

  11. realh commented on Jan 24, 2022

    @realh

    Also, if you try to drag one of the toolbars it jumps to the top left of the window, and a small black triangle gets superimposed and jiggles randomly between pointing down and left when you move the mouse.

    How much of this is unique to Audacity and how much is down to wxWidgets/wxgtk3?

  12. moved this from Undecided to timeline: 4.x in Feature Requestson Mar 3, 2022
  13. moved this from timeline: 4.x to Replaced by alternative in Feature Requestson May 2, 2022
  14. added
    Scheduled for replacement
    on May 2, 2022
  15. Kwadz commented on May 2, 2022

    @Kwadz

    @LWinterberg, it is closed in favour of which issue please? I'd like to subscribe to the good one.

  16. LWinterberg commented on May 2, 2022

    @LWinterberg
    Member

    no issue, but Audacity 4.0 won't be using wxWidgets at all.

  17. realh commented on May 2, 2022

    @realh

    Cool. Are you switching to Qt?

  18. LWinterberg commented on May 2, 2022

    @LWinterberg
    Member

    yep

  19. batteredhedgehog commented on May 26, 2024

    @batteredhedgehog

    I am still experiencing dpi issues on ubuntu 22.04 with audacity-linux-3.5.1-x64.AppImage
    I have tried setting the various QT scaling environment variables with no effect.
    Is there some way to fix this that I am missing?

    edit - just realised that the switch to QT is in v4 , which is in development.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Enhancement RequestScheduled for replacementminor feature

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions