albert icon indicating copy to clipboard operation
albert copied to clipboard

Main window not showing up centered on Fedora 34 (GNOME 40)

Open nicl-dev opened this issue 4 years ago • 15 comments

Source

https://albertlauncher.github.io/installing/#using-official-albert-repositories

Additional info

Albert report output \S Kernel \r on an \m (\l)

5.11.15-300.fc34.x86_64 DESKTOP_SESSION=gnome XDG_SESSION_DESKTOP=gnome XDG_SESSION_TYPE=wayland XDG_CURRENT_DESKTOP=GNOME QMake version 3.1 Using Qt version 5.15.2 in /usr/lib64 albert 0.17.2

QtDiag output QSocketNotifier: Can only be used with threads started with QThread WARNING: lavapipe is not a conformant vulkan implementation, testing use only. Qt 5.15.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 11.0.0 20210210 (Red Hat 11.0.0-0)) on "wayland" OS: Fedora 34 (Workstation Edition) [linux version 5.11.15-300.fc34.x86_64]

Architecture: x86_64; features: SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX AVX2

Environment: QT_IM_MODULE="ibus" QT_WAYLAND_DECORATION="gnome"

Features: QT_NO_EXCEPTIONS

Library info: PrefixPath: /usr DocumentationPath: /usr/share/doc/qt5 HeadersPath: /usr/include/qt5 LibrariesPath: /usr/lib64 LibraryExecutablesPath: /usr/lib64/qt5/libexec BinariesPath: /usr/lib64/qt5/bin PluginsPath: /usr/lib64/qt5/plugins ImportsPath: /usr/lib64/qt5/imports Qml2ImportsPath: /usr/lib64/qt5/qml ArchDataPath: /usr/lib64/qt5 DataPath: /usr/share/qt5 TranslationsPath: /usr/share/qt5/translations ExamplesPath: /usr/lib64/qt5/examples TestsPath: /usr/tests SettingsPath: /etc/xdg

Standard paths [... denote writable entry]: DesktopLocation: "Desktop" /home/nicl/Desktop DocumentsLocation: "Documents" /home/nicl/Documents FontsLocation: "Fonts" /home/nicl/.local/share/fonts /home/nicl/.fonts /home/nicl/.local/share/flatpak/exports/share/fonts /var/lib/flatpak/exports/share/fonts /usr/local/share/fonts /usr/share/fonts ApplicationsLocation: "Applications" /home/nicl/.local/share/applications /home/nicl/.local/share/flatpak/exports/share/applications /var/lib/flatpak/exports/share/applications /usr/local/share/applications /usr/share/applications MusicLocation: "Music" /home/nicl/Music MoviesLocation: "Movies" /home/nicl/Videos PicturesLocation: "Pictures" /home/nicl/Pictures TempLocation: "Temporary Directory" /tmp HomeLocation: "Home" /home/nicl AppLocalDataLocation: "Application Data" /home/nicl/.local/share/QtProject/qtdiag /home/nicl/.local/share/flatpak/exports/share/QtProject/qtdiag /var/lib/flatpak/exports/share/QtProject/qtdiag /usr/local/share/QtProject/qtdiag /usr/share/QtProject/qtdiag CacheLocation: "Cache" /home/nicl/.cache/QtProject/qtdiag GenericDataLocation: "Shared Data" /home/nicl/.local/share /home/nicl/.local/share/flatpak/exports/share /var/lib/flatpak/exports/share /usr/local/share /usr/share RuntimeLocation: "Runtime" /run/user/1000 ConfigLocation: "Configuration" /home/nicl/.config /etc/xdg DownloadLocation: "Download" /home/nicl/Downloads GenericCacheLocation: "Shared Cache" /home/nicl/.cache GenericConfigLocation: "Shared Configuration" /home/nicl/.config /etc/xdg AppDataLocation: "Application Data" /home/nicl/.local/share/QtProject/qtdiag /home/nicl/.local/share/flatpak/exports/share/QtProject/qtdiag /var/lib/flatpak/exports/share/QtProject/qtdiag /usr/local/share/QtProject/qtdiag /usr/share/QtProject/qtdiag AppConfigLocation: "Application Configuration" /home/nicl/.config/QtProject/qtdiag /etc/xdg/QtProject/qtdiag

File selectors (increasing order of precedence): en_US unix linux fedora

Network: Using "OpenSSL 1.1.1k FIPS 25 Mar 2021", version: 0x101010bf

Platform capabilities: ThreadedPixmaps OpenGL ThreadedOpenGL BufferQueueingOpenGL MultipleWindows NonFullScreenWindows NativeWidgets WindowManagement RasterGLSurface

Style hints: mouseDoubleClickInterval: 400 mousePressAndHoldInterval: 500 startDragDistance: 8 startDragTime: 500 startDragVelocity: 0 keyboardInputInterval: 400 keyboardAutoRepeatRate: 30 cursorFlashTime: 1200 showIsFullScreen: 0 showIsMaximized: 0 passwordMaskDelay: 0 passwordMaskCharacter: U+2022 fontSmoothingGamma: 1.7 useRtlExtensions: 0 setFocusOnTouchRelease: 0 tabFocusBehavior: Qt::TabFocusAllControls singleClickActivation: 0

Additional style hints (QPlatformIntegration): ReplayMousePressOutsidePopup: 1

Theme: Platforms requested : gtk3,gnome,generic available : qgnomeplatform,gtk3,gnome,snap,flatpak,xdgdesktopportal Styles requested : Adwaita-dark,adwaita-dark,adwaita,fusion,windows available : Adwaita-Dark,Adwaita,Windows,Fusion Icon theme : WhiteSur-dark, hicolor from /var/lib/flatpak/exports/share/icons,/usr/share/icons System font : "Cantarell" 11 Native file dialog Native color dialog Native font dialog

Fonts: General font : "Cantarell" 11 Fixed font : "Source Code Pro" 10 Title font : "Cantarell" 11 Smallest font: "Cantarell" 11

Palette: QPalette::WindowText: #ffeeeeec QPalette::Button: #ff323232 QPalette::Light: #ff4c4c4c QPalette::Midlight: #ff3f3f3f QPalette::Dark: #ff191919 QPalette::Mid: #ff262626 QPalette::Text: #ffeeeeec QPalette::BrightText: #ffffffff QPalette::ButtonText: #ffeeeeec QPalette::Base: #ff2d2d2d QPalette::Window: #ff353535 QPalette::Shadow: #19000000 QPalette::Highlight: #ff15539e QPalette::HighlightedText: #ffffffff QPalette::Link: #ff3584e4 QPalette::LinkVisited: #ff1b6acb QPalette::AlternateBase: #ff2d2d2d QPalette::NoRole: #ff000000 QPalette::ToolTipBase: #ff000000 QPalette::ToolTipText: #ffffffff QPalette::PlaceholderText: #80eeeeec

Screens: 1, High DPI scaling: inactive

0 "DP-1" Depth: 32 Primary: yes

Manufacturer: GSM Model: LG HDR WQHD+ Serial number: Geometry: 3840x1600+0+0 Available: 3840x1600+0+0 Physical size: 880x370 mm Refresh: 59.993 Hz Power state: 0 Physical DPI: 110.836,109.838 Logical DPI: 96,96 Subpixel_None DevicePixelRatio: 1 Pixel density: 1 Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0

LibGL Vendor: AMD Renderer: AMD HAWAII (DRM 2.50.0, 5.11.15-300.fc34.x86_64, LLVM 12.0.0) Version: 4.5 (Compatibility Profile) Mesa 21.0.3 Shading language: 4.50 Format: Version: 4.5 Profile: 2 Swap behavior: 0 Buffer size (RGBA): 8,8,8,8 Profile: None (QOpenGLFunctions_4_5), Core (QOpenGLFunctions_4_5_Core), Compatibility (QOpenGLFunctions_4_5_Compatibility)

Vulkan instance available Supported instance extensions: VK_KHR_device_group_creation, version 1 VK_KHR_display, version 23 VK_KHR_external_fence_capabilities, version 1 VK_KHR_external_memory_capabilities, version 1 VK_KHR_external_semaphore_capabilities, version 1 VK_KHR_get_display_properties2, version 1 VK_KHR_get_physical_device_properties2, version 1 VK_KHR_get_surface_capabilities2, version 1 VK_KHR_surface, version 25 VK_KHR_surface_protected_capabilities, version 1 VK_KHR_wayland_surface, version 6 VK_KHR_xcb_surface, version 6 VK_KHR_xlib_surface, version 6 VK_EXT_acquire_xlib_display, version 1 VK_EXT_debug_report, version 8 VK_EXT_direct_mode_display, version 1 VK_EXT_display_surface_counter, version 1 VK_EXT_debug_utils, version 2 Supported layers: VK_LAYER_MESA_device_select, version 1, spec version 1.2.73, Linux device selection layer Available physical devices: API version 1.0.2, vendor 0x10005, device 0x0, llvmpipe (LLVM 12.0.0, 256 bits), type 4, driver version 0.0.1

Qt Rendering Hardware Interface supported backends: OpenGL (with default QSurfaceFormat): Min Texture Size: 1 Max Texture Size: 16384 Max Color Attachments: 8 Frames in Flight: 1 Uniform Buffer Alignment: 1 Supported MSAA sample counts: 1,2,4,8 Features: - MultisampleTexture v MultisampleRenderBuffer - DebugMarkers - Timestamps v Instancing - CustomInstanceStepRate v PrimitiveRestart v NonDynamicUniformBuffers v NonFourAlignedEffectiveIndexBufferOffset v NPOTTextureRepeat - RedOrAlpha8IsRed v ElementIndexUint v Compute v WideLines v VertexShaderPointSize v BaseVertex - BaseInstance v TriangleFanTopology v ReadBackNonUniformBuffer v ReadBackNonBaseMipLevel Texture formats: RGBA8 BGRA8 R8 R16 RED_OR_ALPHA8 RGBA16F RGBA32F R16F R32F D16 D32F BC1 BC2 BC3 ETC2_RGB8 ETC2_RGB8A1 ETC2_RGBA8 Vulkan: Min Texture Size: 1 Max Texture Size: 16384 Max Color Attachments: 8 Frames in Flight: 2 Uniform Buffer Alignment: 16 Supported MSAA sample counts: 1,4 Features: v MultisampleTexture v MultisampleRenderBuffer - DebugMarkers v Timestamps v Instancing - CustomInstanceStepRate v PrimitiveRestart v NonDynamicUniformBuffers v NonFourAlignedEffectiveIndexBufferOffset v NPOTTextureRepeat v RedOrAlpha8IsRed v ElementIndexUint v Compute - WideLines v VertexShaderPointSize v BaseVertex v BaseInstance v TriangleFanTopology v ReadBackNonUniformBuffer v ReadBackNonBaseMipLevel Texture formats: RGBA8 BGRA8 R8 R16 RED_OR_ALPHA8 RGBA16F RGBA32F R16F R32F D16 D32F BC1 BC2 BC3 BC4 BC5 BC6H BC7

Terminal output (stdout and stderr) $ albert show core: Application set visible.

Steps to reproduce

albert show or keyboard shortcut

Expected behaviour

Albert main window shows up centered

Actual behaviour

Albert main window shows up top left below the top bar. This is happening on Fedora34 (GNOME 40):

image

nicl-dev avatar Apr 28 '21 19:04 nicl-dev

I have the same problem on Fedora 34

Edit: I am using xorg and, now the hotkeys work, and albert show on center. I didn't noticed any performance difference in xorg and wayland till now.

yashrathi-git avatar May 01 '21 02:05 yashrathi-git

Interesting! ty @yashrathi-git seems like wayland is the cause for the recurrent centering problem.

Just for reference: the places where albert gets its data: widgets, qml

Looks like you are using Widgets Box Model. Can you please check if the QML Box Model suffers the same issue?

ManuelSchneid3r avatar May 01 '21 09:05 ManuelSchneid3r

@ManuelSchneid3r

X11: (Widget box model)

X11

Wayland: (Widget box model)

wayland

QML Box Model:

On both wayland and xorg, when I tried this mode, albert crashed. In terminal it shows no error:

$ albert show
core: Application set visible.

I use Nvidia GPU. Probably that could be reason as Nvidia isn't very compatible with wayland.

yashrathi-git avatar May 01 '21 10:05 yashrathi-git

I had a similar issue before switching to Fedora (from Ubuntu) whenever I used fractional scaling / scaling in general.

kevinquillen avatar May 05 '21 12:05 kevinquillen

@kevinquillen which issue? The QML crash problem or the centering?

@yashrathi-git can you please post the terminal output of the crashing app in the QML case?

ManuelSchneid3r avatar May 05 '21 13:05 ManuelSchneid3r

@ManuelSchneid3r

$ albert
19:46:30 [info:core] Initializing application
19:46:30 [info:default] Systems icon theme is: "WhiteSur"
19:46:30 [info:core] Initializing mandatory paths
19:46:30 [info:core] Setup signal handlers
19:46:30 [info:core] Creating running indicator file
19:46:30 [warn:core] Application has not been terminated graciously.
19:46:31 [info:core] Initializing core components
19:46:31 [warn:default] file:///usr/share/albert/org.albert.frontend.qmlboxmodel/styles/BoxModel/MainComponent.qml:3:1: module "QtGraphicalEffects" is not installed 
     import QtGraphicalEffects 1.0 
     ^
19:46:31 [warn:default] file:///usr/share/albert/org.albert.frontend.qmlboxmodel/styles/BoxModel/MainComponent.qml:2:1: module "QtQuick.Controls" is not installed 
     import QtQuick.Controls 1.0 
     ^
19:46:31 [warn:default] file:///usr/share/albert/org.albert.frontend.qmlboxmodel/styles/BoxModel/MainComponent.qml:3:1: module "QtGraphicalEffects" is not installed 
     import QtGraphicalEffects 1.0 
     ^
19:46:31 [warn:default] file:///usr/share/albert/org.albert.frontend.qmlboxmodel/styles/BoxModel/MainComponent.qml:2:1: module "QtQuick.Controls" is not installed 
     import QtQuick.Controls 1.0 
     ^
19:46:31 [info:core] Loading extension org.albert.extension.applications
19:46:31 [info:apps] Start indexing applications.
19:46:31 [info:core] Loading extension org.albert.extension.calculator
19:46:31 [info:core] Loading extension org.albert.extension.hashgenerator
19:46:31 [info:core] Loading extension org.albert.extension.system
19:46:31 [info:core] Loading extension org.albert.extension.terminal
19:46:31 [info:core] Loading extension org.albert.extension.websearch
19:46:31 [info:term] Indexing $PATH.
19:46:32 [warn:default] Could not retrieve settableProperties: There is no root object.
19:46:32 [warn:core] No terminal command set. Using gnome-terminal --
19:46:32 [info:core] Checking last used version
19:46:32 [info:core] Creating IPC server
19:46:32 [info:core] Entering eventloop
19:46:32 [info:apps] Indexed 59 applications.

####### After `albert show` when QML box model is active ##########
19:46:43 [warn:default] Could not retrieve input: There is no root object.
19:46:54 [fatal:default] SQL ERROR: NOT NULL constraint failed: query.input Unable to fetch row  --  [(null)]

and than it exits.

I could see, that it is saying some dependencies were not installed. This is how I installed Albert:

sudo rpm --import https://build.opensuse.org/projects/home:manuelschneid3r/public_key
dnf config-manager --add-repo https://download.opensuse.org/repositories/home:manuelschneid3r/Fedora_33/home:manuelschneid3r.repo
dnf install albert

I used fedora 33 instructions, as I was not able to find instructions for Fedora 34 here OS : Fedora 34 (Gnome 40) Windowing system: X11

It also crashes on wayland If any other information is needed for debugging please let me know

yashrathi-git avatar May 05 '21 14:05 yashrathi-git

@yashrathi-git you are lacking qt-qml jfyi if you want ot give th QML_BM a try

ManuelSchneid3r avatar May 05 '21 14:05 ManuelSchneid3r

I'm seeing the same centering issues on KDE Plasma under Wayland.

Screenshot

ilsteiner avatar Oct 12 '21 05:10 ilsteiner

Just to evaluate the urgency is unchecking the Auto-Center a workaround?

ManuelSchneid3r avatar Oct 12 '21 11:10 ManuelSchneid3r

It does what I'd expect if I use KDE Plasma to set all windows to be centered under "Window Behavior". The default "Minimal Overlapping" setting results in the Albert UI showing in the upper or lower left (seems to vary).

You mentioning that got me to take a look for a workaround and it seems that setting a window rule does what I would want here too.[image: Screenshot_20211015_162036.png] So it's an easy workaround, but probably not ideal. Thanks for reaching out!

Isaac


On Tue, Oct 12, 2021 at 4:15 AM Manuel Schneider ***@***.***>
wrote:

> Just to evaluate the urgency is unchecking the Auto-Center a workaround?
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <https://github.com/albertlauncher/albert/issues/1018#issuecomment-940911218>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AB2APWFZNSDUIHE72JFBHXTUGQKDLANCNFSM43XWLGXQ>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android
> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
>
>

ilsteiner avatar Oct 15 '21 23:10 ilsteiner

Does this issue appear for both frontend types?

ManuelSchneid3r avatar Nov 07 '21 16:11 ManuelSchneid3r

@yashrathi-git so it works on widgets but not qml?

On both wayland and xorg, when I tried this mode, albert crashed. In terminal it shows no error:

$ albert show
core: Application set visible.

this means there is an instance running. otherwise you would start an innstance with this command.

SQL ERROR: NOT NULL constraint failed: query.input Unable to fetch row  

this is another issue #1033. will fix that in 0.18. please remove the core database. rm ~/.config/albert/core.db and try again.

ManuelSchneid3r avatar Nov 07 '21 16:11 ManuelSchneid3r

The isse also appears on my system running Fedora 35 with Wayland. When I'm calling albert show or albert toggle, the window is not centered on the screen. Instead, it's displayed at the same positon that @behren posted in his initial post.

Any update on this?

faeb5 avatar Nov 08 '21 07:11 faeb5

As said above. I can't fix this. This is a Qt bug. Or maybe wayland

ManuelSchneid3r avatar Nov 08 '21 08:11 ManuelSchneid3r

Hi everyone, a little late here, but i had the same issue and worked around it by enabling 'Center New Windows' in Gnome Tweaks. Hope this helps people with the same issue in the future.

I'm reporting this from Fedora 35, with the gnome session running on wayland.

Nakamerica avatar May 03 '22 23:05 Nakamerica

As Johan pointed out this is subject to #958. We have to find some workaround.

ManuelSchneid3r avatar Oct 08 '22 13:10 ManuelSchneid3r

Same issue with the latest version: 0.18.7 My OS: Manjaro (Gnome)

The solution of @Nakamerica is only partial, because it centers albert, but I cannot have it centered at the top.

EDIT: the last version installed from the aur is working well (with the search box centered at the top).

ghost avatar Jan 07 '23 12:01 ghost

This is technically not an issue with albert. Wayland is just far away from being production ready. I simply recommend not to use it.

ManuelSchneid3r avatar Jan 07 '23 13:01 ManuelSchneid3r