Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 6.0.0-4 beta: search window disappears upon third key press #1308

Open
3 tasks done
LinuxOnTheDesktop opened this issue Nov 18, 2023 · 6 comments
Open
3 tasks done
Labels

Comments

@LinuxOnTheDesktop
Copy link

LinuxOnTheDesktop commented Nov 18, 2023

Environment

Mint Cinnamon 21.2

Bug description

I got up the search box. I pressed 'b' and then 'b' again and at that point a custom launcher (a .desktop file) is selected. If I then press 'c' the search box disappears and nothing further happens. Note that I did not press .

Here is the content of the file, that file being called BBC iPlayer.desktop.

#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name=BBC iPlayer
Exec=/opt/google/chrome/google-chrome --profile-directory=Default --app-id=jahnifecgkhjbcbjfkplnplfkcebgafc
Icon=chrome-jahnifecgkhjbcbjfkplnplfkcebgafc-Default
StartupWMClass=crx_jahnifecgkhjbcbjfkplnplfkcebgafc

Oddly, I reproduced the bug some three times successively and now, suddenly, the crash (/disappearance of the window) does not occur. The log below is from the 'last.log'. EDIT: and now the bug is manifesting itself again!

Log output

2023-11-18 01:45:32,671 | INFO | Ulauncher version 6.0.0-beta4 | main.main():63
2023-11-18 01:45:32,671 | INFO | Extension API version 3.0 | main.main():64
2023-11-18 01:45:32,672 | INFO | GTK+ 3.24.33 | main.main():65
2023-11-18 01:45:32,672 | INFO | PyGObject+ 3.42.1 | main.main():66
2023-11-18 01:45:32,672 | INFO | Desktop: X-CINNAMON (X11) on Linux Mint 21.2 | main.main():68
2023-11-18 01:45:32,672 | WARNING | 

╔═════════════════════════════════════════════════════════════════════════════╗
║                  YOU ARE RUNNING A PRE-RELEASE of ULAUNCHER.                ║
║ Please do not report extension API support warnings to extension developers ║
║ We are still in the process of developing and documenting these features    ║
╚═════════════════════════════════════════════════════════════════════════════╝

 | main.main():70
2023-11-18 01:45:32,672 | INFO | Migrating /home/<redacted>/.config/ulauncher/ext_preferences/com.github.psukys.ulauncher-plugin-windows.json to /home/<redacted>/.config/ulauncher/ext_preferences/com.github.psukys.ulauncher-plugin-windows.json | migrate._migrate_file():44
2023-11-18 01:45:32,672 | INFO | Migrating /home/<redacted>/.config/ulauncher/ext_preferences/com.github.fisadev.ulauncher-better-file-browser.json to /home/<redacted>/.config/ulauncher/ext_preferences/com.github.fisadev.ulauncher-better-file-browser.json | migrate._migrate_file():44
2023-11-18 01:45:32,672 | INFO | Migrating /home/<redacted>/.config/ulauncher/ext_preferences/com.github.mikebarkmin.ulauncher-duckduckgo.json to /home/<redacted>/.config/ulauncher/ext_preferences/com.github.mikebarkmin.ulauncher-duckduckgo.json | migrate._migrate_file():44
2023-11-18 01:45:32,673 | INFO | Migrating /home/<redacted>/.config/ulauncher/ext_preferences/com.github.episode6.ulauncher-system-management-direct.json to /home/<redacted>/.config/ulauncher/ext_preferences/com.github.episode6.ulauncher-system-management-direct.json | migrate._migrate_file():44
2023-11-18 01:45:32,673 | INFO | Migrating /home/<redacted>/.config/ulauncher/ext_preferences/com.github.brpaz.ulauncher-file-search.json to /home/<redacted>/.config/ulauncher/ext_preferences/com.github.brpaz.ulauncher-file-search.json | migrate._migrate_file():44
2023-11-18 01:45:32,673 | INFO | Migrating /home/<redacted>/.config/ulauncher/ext_preferences/com.github.iboyperson.ulauncher-system.json to /home/<redacted>/.config/ulauncher/ext_preferences/com.github.iboyperson.ulauncher-system.json | migrate._migrate_file():44
2023-11-18 01:45:32,673 | INFO | Migrating /home/<redacted>/.config/ulauncher/ext_preferences/com.github.dalanicolai.gnome-tracker-extension.json to /home/<redacted>/.config/ulauncher/ext_preferences/com.github.dalanicolai.gnome-tracker-extension.json | migrate._migrate_file():44
2023-11-18 01:45:32,674 | INFO | Migrating /home/<redacted>/.config/ulauncher/ext_preferences/com.github.dcervenkov.ulauncher-z-search.json to /home/<redacted>/.config/ulauncher/ext_preferences/com.github.dcervenkov.ulauncher-z-search.json | migrate._migrate_file():44
2023-11-18 01:45:32,674 | INFO | Migrating /home/<redacted>/.config/ulauncher/ext_preferences/com.github.dhelmr.ulauncher-duckduckgo-bangs.json to /home/<redacted>/.config/ulauncher/ext_preferences/com.github.dhelmr.ulauncher-duckduckgo-bangs.json | migrate._migrate_file():44
2023-11-18 01:45:32,674 | INFO | Migrating /home/<redacted>/.config/ulauncher/ext_preferences/com.github.leinardi.ulauncher-systemctl.json to /home/<redacted>/.config/ulauncher/ext_preferences/com.github.leinardi.ulauncher-systemctl.json | migrate._migrate_file():44

Communication guidelines

  • I have read and agree with Ulauncher's communication guidelines and checked the troubleshooting page for self-help.

Not an extension issue

  • This issue applies to the Ulauncher application, not a specific extension.

Ulauncher v6

  • I have made sure the bug isn't already fixed in v6.
@LinuxOnTheDesktop
Copy link
Author

I find the following in the syslog. Yet, given that, on my system, anything ulauncher launches ends up logging under the name 'ulauncher', the log entry may be irrelevant to the bug that I reported above.

ulauncher[3305330]: [3305376:3305376:1118/015015.776062:ERROR:gl_utils.cc(402)] [.RendererMainThread-0x274800a26300]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels>

@friday
Copy link
Member

friday commented Nov 18, 2023

I find the following in the syslog. Yet, given that, on my system, anything ulauncher launches ends up logging under the name 'ulauncher', the log entry may be irrelevant to the bug that I reported above.

ulauncher[3305330]: [3305376:3305376:1118/015015.776062:ERROR:gl_utils.cc(402)] [.RendererMainThread-0x274800a26300]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels>

Any C/C++ code are happening outside of our code. Ulauncher's main process is loading Gtk, which is written in C, so some C-errors should actually be in the log output of Ulauncher, although we can't fix them, we can possibly work around them.

However this seems to be an unrelated issue from Chromium (or Chromium-based browser).
Just google "GPU stall due to ReadPixels".

The other ones were likely also Chromium (first one) and seemingly a file manager for the second one (searching the error seemed to suggest Nautilus or a Nautilus fork).

So this error is likely unrelated to the issue (even if the desktop entry is a chromium app).

Also, could you try running systemctl --user stop ulauncher then ulauncher -v in a terminal to run Ulauncher from there and get a fresh session and everything logged to the terminal? Then you can look at the log when you trigger the error so you can see what's really relevant.
After you're done you can press ctr+c to kill ulauncher from the terminal and run systemctl --user start ulauncher again (although it will start on the first time you open it now, so the last part should take care of itself)

@LinuxOnTheDesktop
Copy link
Author

Here you go. The first time that I followed your instructions, I could not generate a crash. The second time though - and I supply the terminal log for that - I did get a crash. However, I fear the log contains nothing useful. (When I first posted, I did at one point manage to get a log-in-terminal; but seemingly that log showed nothing that the 'last' log did not. Hence in my original report I posted the - identical? - 'last log.) I note that the offending file lives here: ~/.config/menus/applications-merged.

2023-11-19 02:10:45,085 ℹ️  INFO Ulauncher version 6.0.0-beta4 main.main:63
2023-11-19 02:10:45,085 ℹ️  INFO Extension API version 3.0 main.main:64
2023-11-19 02:10:45,085 ℹ️  INFO GTK+ 3.24.33 main.main:65
2023-11-19 02:10:45,085 ℹ️  INFO PyGObject+ 3.42.1 main.main:66
2023-11-19 02:10:45,085 ℹ️  INFO Desktop: X-CINNAMON (X11) on Linux Mint 21.2 main.main:68
2023-11-19 02:10:45,085 ⚠️  WARNING 

╔═════════════════════════════════════════════════════════════════════════════╗
║                  YOU ARE RUNNING A PRE-RELEASE of ULAUNCHER.                ║
║ Please do not report extension API support warnings to extension developers ║
║ We are still in the process of developing and documenting these features    ║
╚═════════════════════════════════════════════════════════════════════════════╝

 main.main:70
2023-11-19 02:10:45,086 ℹ️  INFO Migrating /home/<redacted>/.config/ulauncher/ext_preferences/com.github.psukys.ulauncher-plugin-windows.json to /home/<redacted>/.config/ulauncher/ext_preferences/com.github.psukys.ulauncher-plugin-windows.json migrate._migrate_file:44
2023-11-19 02:10:45,086 ℹ️  INFO Migrating /home/<redacted>/.config/ulauncher/ext_preferences/com.github.fisadev.ulauncher-better-file-browser.json to /home/<redacted>/.config/ulauncher/ext_preferences/com.github.fisadev.ulauncher-better-file-browser.json migrate._migrate_file:44
2023-11-19 02:10:45,086 ℹ️  INFO Migrating /home/<redacted>/.config/ulauncher/ext_preferences/com.github.mikebarkmin.ulauncher-duckduckgo.json to /home/<redacted>/.config/ulauncher/ext_preferences/com.github.mikebarkmin.ulauncher-duckduckgo.json migrate._migrate_file:44
2023-11-19 02:10:45,087 ℹ️  INFO Migrating /home/<redacted>/.config/ulauncher/ext_preferences/com.github.episode6.ulauncher-system-management-direct.json to /home/<redacted>/.config/ulauncher/ext_preferences/com.github.episode6.ulauncher-system-management-direct.json migrate._migrate_file:44
2023-11-19 02:10:45,087 ℹ️  INFO Migrating /home/<redacted>/.config/ulauncher/ext_preferences/com.github.brpaz.ulauncher-file-search.json to /home/<redacted>/.config/ulauncher/ext_preferences/com.github.brpaz.ulauncher-file-search.json migrate._migrate_file:44
2023-11-19 02:10:45,087 ℹ️  INFO Migrating /home/<redacted>/.config/ulauncher/ext_preferences/com.github.iboyperson.ulauncher-system.json to /home/<redacted>/.config/ulauncher/ext_preferences/com.github.iboyperson.ulauncher-system.json migrate._migrate_file:44
2023-11-19 02:10:45,087 ℹ️  INFO Migrating /home/<redacted>/.config/ulauncher/ext_preferences/com.github.dalanicolai.gnome-tracker-extension.json to /home/<redacted>/.config/ulauncher/ext_preferences/com.github.dalanicolai.gnome-tracker-extension.json migrate._migrate_file:44
2023-11-19 02:10:45,087 ℹ️  INFO Migrating /home/<redacted>/.config/ulauncher/ext_preferences/com.github.dcervenkov.ulauncher-z-search.json to /home/<redacted>/.config/ulauncher/ext_preferences/com.github.dcervenkov.ulauncher-z-search.json migrate._migrate_file:44
2023-11-19 02:10:45,088 ℹ️  INFO Migrating /home/<redacted>/.config/ulauncher/ext_preferences/com.github.dhelmr.ulauncher-duckduckgo-bangs.json to /home/<redacted>/.config/ulauncher/ext_preferences/com.github.dhelmr.ulauncher-duckduckgo-bangs.json migrate._migrate_file:44
2023-11-19 02:10:45,088 ℹ️  INFO Migrating /home/<redacted>/.config/ulauncher/ext_preferences/com.github.leinardi.ulauncher-systemctl.json to /home/<redacted>/.config/ulauncher/ext_preferences/com.github.leinardi.ulauncher-systemctl.json migrate._migrate_file:44
2023-11-19 02:10:45,093 ℹ️  DEBUG Removing existing socket path /run/user/1000/ulauncher_control ExtensionServer.start:38
2023-11-19 02:10:45,105 ⚠️  WARNING Extension System has not yet been updated to support API v3.0. Running in compatibility mode, which may not be fully functional. ExtensionManifest.check_compatibility:153
2023-11-19 02:10:45,112 ℹ️  DEBUG Launched com.github.iboyperson.ulauncher-system using Gio.Subprocess ExtensionRunner.run:100
2023-11-19 02:10:45,115 ⚠️  WARNING Extension Duckduckgo bangs has not yet been updated to support API v3.0. Running in compatibility mode, which may not be fully functional. ExtensionManifest.check_compatibility:153
2023-11-19 02:10:45,120 ℹ️  DEBUG Launched com.github.dhelmr.ulauncher-duckduckgo-bangs using Gio.Subprocess ExtensionRunner.run:100
2023-11-19 02:10:45,122 ⚠️  WARNING Extension Better file browser has not yet been updated to support API v3.0. Running in compatibility mode, which may not be fully functional. ExtensionManifest.check_compatibility:153
2023-11-19 02:10:45,126 ℹ️  DEBUG Launched com.github.fisadev.ulauncher-better-file-browser using Gio.Subprocess ExtensionRunner.run:100
2023-11-19 02:10:45,128 ⚠️  WARNING Extension DuckDuckGo has not yet been updated to support API v3.0. Running in compatibility mode, which may not be fully functional. ExtensionManifest.check_compatibility:153
2023-11-19 02:10:45,133 ℹ️  DEBUG Launched com.github.mikebarkmin.ulauncher-duckduckgo using Gio.Subprocess ExtensionRunner.run:100
2023-11-19 02:10:45,196 ℹ️  DEBUG render 0 results UlauncherWindow.show_results:395
2023-11-19 02:10:45,248 ℹ️  DEBUG render 0 results UlauncherWindow.show_results:395
2023-11-19 02:10:45,222 ℹ️  DEBUG Send message with keys "{'ext_id', 'type'}" Client.send:79
2023-11-19 02:10:45,225 ℹ️  DEBUG Send message with keys "{'ext_id', 'type'}" Client.send:79
2023-11-19 02:10:45,251 ℹ️  DEBUG Received data of 100 bytes framer._ingest_data:97
2023-11-19 02:10:45,251 ℹ️  DEBUG Received message with keys "{'type', 'ext_id'}" framer._ingest_data:115
2023-11-19 02:10:45,251 ℹ️  DEBUG Send event dict to "com.github.dhelmr.ulauncher-duckduckgo-bangs" ExtensionController._send_event:52
2023-11-19 02:10:45,252 ℹ️  INFO Extension "com.github.dhelmr.ulauncher-duckduckgo-bangs" connected ExtensionController.__init__:47
2023-11-19 02:10:45,223 ℹ️  DEBUG Sent 100 bytes framer._write_done:146
2023-11-19 02:10:45,226 ℹ️  DEBUG Sent 99 bytes framer._write_done:146
2023-11-19 02:10:45,253 ℹ️  DEBUG Sent 104 bytes framer._write_done:146
2023-11-19 02:10:45,253 ℹ️  DEBUG Received data of 99 bytes framer._ingest_data:97
2023-11-19 02:10:45,253 ℹ️  DEBUG Received message with keys "{'type', 'ext_id'}" framer._ingest_data:115
2023-11-19 02:10:45,253 ℹ️  DEBUG Send event dict to "com.github.mikebarkmin.ulauncher-duckduckgo" ExtensionController._send_event:52
2023-11-19 02:10:45,254 ℹ️  INFO Extension "com.github.mikebarkmin.ulauncher-duckduckgo" connected ExtensionController.__init__:47
2023-11-19 02:10:45,252 ℹ️  DEBUG Received data of 104 bytes framer._ingest_data:97
2023-11-19 02:10:45,255 ℹ️  DEBUG Sent 142 bytes framer._write_done:146
2023-11-19 02:10:45,254 ℹ️  DEBUG Received data of 142 bytes framer._ingest_data:97
2023-11-19 02:10:45,253 ℹ️  DEBUG Received message with keys "{'type', 'args'}" framer._ingest_data:115
2023-11-19 02:10:45,254 ℹ️  DEBUG Received message with keys "{'type', 'args'}" framer._ingest_data:115
2023-11-19 02:10:45,253 ℹ️  DEBUG Incoming event dict Client.on_message:54
2023-11-19 02:10:45,255 ℹ️  DEBUG Incoming event dict Client.on_message:54
2023-11-19 02:10:45,255 ℹ️  DEBUG com.github.mikebarkmin.ulauncher-duckduckgo: No listeners for event PreferencesEvent extension.trigger_event:91
2023-11-19 02:10:45,264 ℹ️  DEBUG Send message with keys "{'type', 'ext_id'}" Client.send:79
2023-11-19 02:10:45,265 ℹ️  DEBUG Received data of 104 bytes framer._ingest_data:97
2023-11-19 02:10:45,266 ℹ️  DEBUG Received message with keys "{'type', 'ext_id'}" framer._ingest_data:115
2023-11-19 02:10:45,266 ℹ️  DEBUG Send event dict to "com.github.fisadev.ulauncher-better-file-browser" ExtensionController._send_event:52
2023-11-19 02:10:45,267 ℹ️  INFO Extension "com.github.fisadev.ulauncher-better-file-browser" connected ExtensionController.__init__:47
2023-11-19 02:10:45,267 ℹ️  DEBUG Sent 104 bytes framer._write_done:146
2023-11-19 02:10:45,267 ℹ️  DEBUG Sent 127 bytes framer._write_done:146
2023-11-19 02:10:45,267 ℹ️  DEBUG Received data of 127 bytes framer._ingest_data:97
2023-11-19 02:10:45,267 ℹ️  DEBUG Received message with keys "{'type', 'args'}" framer._ingest_data:115
2023-11-19 02:10:45,267 ℹ️  DEBUG Incoming event dict Client.on_message:54
2023-11-19 02:10:45,317 ℹ️  DEBUG Send message with keys "{'type', 'ext_id'}" Client.send:79
2023-11-19 02:10:45,318 ℹ️  DEBUG Received data of 94 bytes framer._ingest_data:97
2023-11-19 02:10:45,318 ℹ️  DEBUG Received message with keys "{'type', 'ext_id'}" framer._ingest_data:115
2023-11-19 02:10:45,319 ℹ️  DEBUG Send event dict to "com.github.iboyperson.ulauncher-system" ExtensionController._send_event:52
2023-11-19 02:10:45,319 ℹ️  INFO Extension "com.github.iboyperson.ulauncher-system" connected ExtensionController.__init__:47
2023-11-19 02:10:45,319 ℹ️  DEBUG Sent 94 bytes framer._write_done:146
2023-11-19 02:10:45,319 ℹ️  DEBUG Sent 59 bytes framer._write_done:146
2023-11-19 02:10:45,319 ℹ️  DEBUG Received data of 59 bytes framer._ingest_data:97
2023-11-19 02:10:45,319 ℹ️  DEBUG Received message with keys "{'args', 'type'}" framer._ingest_data:115
2023-11-19 02:10:45,320 ℹ️  DEBUG Incoming event dict Client.on_message:54
2023-11-19 02:10:45,320 ℹ️  DEBUG com.github.iboyperson.ulauncher-system: No listeners for event PreferencesEvent extension.trigger_event:91
2023-11-19 02:10:46,519 ℹ️  DEBUG render 35 results UlauncherWindow.show_results:395
2023-11-19 02:10:46,574 ℹ️  DEBUG render 10 results UlauncherWindow.show_results:395
2023-11-19 02:10:47,313 ℹ️  DEBUG render 2 results UlauncherWindow.show_results:395

@friday
Copy link
Member

friday commented Nov 19, 2023

Thank you. I suspect there's nothing directly "wrong" we're doing that would generate an error. It's just a performance issue in a lower layer code. Will have to look more at this later but one thing that could help is optimizing AppMode.py.
When I rewrote that I just looped through Gio.DesktopAppInfo.get_all() directly (because it's instant for me) for every key press instead of fetching it per app launch.

What type of hard drive do you have? We have probably only tested with SSDs so far, so if you have a HDD (spinning platters) that could be why.

@LinuxOnTheDesktop
Copy link
Author

I have two laptops. One has a SATA III SSD, 8GB RAM, and an Intel 3rd gen. processor. The other has a NVMe drive, 16 GB, and a fairly recent quad-core. Both laptops are in good working order.

Yet, is this really a performance issue? I am fairly sure that, after the third keypress, nothing happens even after a minute or so. More: when I removed the particular .desktop file that I mentioned, I no longer had the problem.

@friday
Copy link
Member

friday commented Nov 19, 2023

I guess not performance related then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants