Skip to content

Update libcosmic dependency#326

Merged
leviport merged 1 commit intopop-os:masterfrom
kamcnally:dep-update
Jan 28, 2026
Merged

Update libcosmic dependency#326
leviport merged 1 commit intopop-os:masterfrom
kamcnally:dep-update

Conversation

@kamcnally
Copy link
Contributor

Update libcosmic to fix icon rendering crashes

Updates libcosmic dependency to pull in upstream fixes from pop-os/iced that prevent crashes when encountering invalid or malformed icon files.

This was done with cargo update -p libcosmic

Background

Issue pop-os/cosmic-epoch#2452 reported crashes in both cosmic-launcher and cosmic-applibrary when encountering malformed SVG icons. This was fixed upstream in pop-os/iced#249 by wrapping resvg::render in a panic handler.

I encountered a similar crash when Tizen Studio .desktop files reference binary .ico icon files (which violate the freedesktop.org icon spec). The crash manifests as:

thread 'main' panicked at library/core/src/slice/sort/shared/smallsort.rs:860:5:
user-provided comparison function does not correctly implement a total order

The root cause appears to be the same - icon parsing failures corrupting application metadata. Updating libcosmic to include the iced fixes resolves both the SVG and .ico crashes.

Changes

  • Updated libcosmic dependency to version with iced icon rendering fixes

Testing

  • No longer crashes with Tizen Studio .desktop files (binary .ico icons)
  • Launcher remains functional when encountering malformed icons

Fixes

Fixes pop-os/cosmic-epoch#2452 - SVG rendering crashes (mentions applibrary launcher)

Related

Third-party applications may use non-standard icon formats. The launcher should handle these gracefully instead of crashing.

@jackpot51 jackpot51 requested review from a team January 27, 2026 17:35
@leviport leviport self-assigned this Jan 28, 2026
@leviport leviport merged commit f84c4b0 into pop-os:master Jan 28, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Applications launcher and Superkeylauncher crashing when typing / searching for apps

3 participants