<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>57848</bug_id>
          
          <creation_ts>2026-02-12 15:36:49 +0300</creation_ts>
          <short_desc>В системных модулях с PyQt6 есть какая-то ошибка по работе с иконками</short_desc>
          <delta_ts>2026-04-02 17:07:45 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>libgtk+3</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Garrett">AlexShevchenko</reporter>
          <assigned_to name="Yuri N. Sedunov">aris</assigned_to>
          <cc>ancieg</cc>
    
    <cc>antohami</cc>
    
    <cc>aris</cc>
    
    <cc>cas</cc>
    
    <cc>grenka</cc>
    
    <cc>lav</cc>
    
    <cc>oddity</cc>
    
    <cc>sem</cc>
    
    <cc>zerg</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>281930</commentid>
    <comment_count>0</comment_count>
    <who name="Garrett">AlexShevchenko</who>
    <bug_when>2026-02-12 15:36:49 +0300</bug_when>
    <thetext>В системных модулях с pyqt6 есть какая-то ошибка по работе с иконками

Как проверить:

1. Склонировать репозиторий retext
    git clone https://github.com/retext-project/retext.git

2. установить нужные пакеты

    sudo apt-get install python3-module-PyQt6 python3-module-PyQt6-sip python3-module-PyQt6-WebEngine
                 python3-module-markups python3-module-markdown python3-module-markdown-math

3. перейти в каталог retext и запустить
    python3 retext.py

4. Нажать любую кнопку с иконкой (н-р, Открыть)

Программа сразу упадёт:

(process:8144): exo-open-WARNING **: 10:53:25.585: exo-open is deprecated, use xfce-open from libxfce4ui &gt;= 4.21.0 instead

(python3:8018): Gtk-WARNING **: 10:53:31.471: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:../gtk/gtkiconhelper.c:495:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Adwaita/scalable/status/image-missing.svg: XML parse error: Error domain 1 code 4 on line 1 column 1 of data: Document is empty
 (rsvg-error-quark, 0)
Bail out! Gtk:ERROR:../gtk/gtkiconhelper.c:495:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Adwaita/scalable/status/image-missing.svg: XML parse error: Error domain 1 code 4 on line 1 column 1 of data: Document is empty  (rsvg-error-quark, 0)
Process Process-1:
Aborted
Traceback (most recent call last):
...
...
EOFError: Received 0 bytes from socket while more bytes were expected. Did the sender process exit unexpectedly?


-------------------------------------------------------------------------

Но программа прекрасно работает с локальными библиотеками. 

1. Склонировать репозиторий retext в новый каталог
    git clone https://github.com/retext-project/retext.git retext_venv

2. перейти в каталог retext_venv

3. создать и активировать виртуальное окружение
    python3 -m venv ./venv
    source ./venv/bin/activate

4. установить нужные пакеты
    pip3 install -U PyQt6 PyQt6-WebEngine Markups Markdown python-markdown-math

5. запустить программу
    python3 retext.py

6. Можно нажимать любые кнопки - всё работает!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>284716</commentid>
    <comment_count>1</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2026-03-27 23:40:51 +0300</bug_when>
    <thetext>Пакет librsvg предоставляет /usr/lib64/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader_svg.so. Это SVG loader для gdk-pixbuf.

PyQt6 не зависит от librsvg, Но Qt6 может использовать xdg-desktop-portal для файловых диалогов. Видимо, стоит установить icon-theme-adwaita librsvg.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>284717</commentid>
    <comment_count>2</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2026-03-27 23:43:57 +0300</bug_when>
    <thetext>
&gt; 1. Склонировать репозиторий retext
&gt;    git clone https://github.com/retext-project/retext.git

А зачем, если есть пакет в репозитории? Если проблема с ним, то и багу на него надо?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>284757</commentid>
    <comment_count>3</comment_count>
    <who name="Sergey V Turchin">zerg</who>
    <bug_when>2026-03-30 09:21:25 +0300</bug_when>
    <thetext>(Ответ для Garrett на комментарий #0)
&gt; (process:8144): exo-open-WARNING **: 10:53:25.585: exo-open is deprecated,
&gt; use xfce-open from libxfce4ui &gt;= 4.21.0 instead</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>284771</commentid>
    <comment_count>4</comment_count>
    <who name="Mikhail Efremov">sem</who>
    <bug_when>2026-03-30 13:55:37 +0300</bug_when>
    <thetext>(Ответ для Sergey V Turchin на комментарий #3)
&gt; (Ответ для Garrett на комментарий #0)
&gt; &gt; (process:8144): exo-open-WARNING **: 10:53:25.585: exo-open is deprecated,
&gt; &gt; use xfce-open from libxfce4ui &gt;= 4.21.0 instead

Этот варнинг на работу никак не влияет. Возвращаю.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>284772</commentid>
    <comment_count>5</comment_count>
    <who name="Sergey V Turchin">zerg</who>
    <bug_when>2026-03-30 14:09:46 +0300</bug_when>
    <thetext>(Ответ для Garrett на комментарий #0)
&gt; Bail out! Gtk:ERROR:../gtk/gtkiconhelper.c:495:ensure_surface_for_gicon:
&gt; assertion failed (error == NULL): Failed to load
Тогда так. Он падает, ему и лечиться.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>284890</commentid>
    <comment_count>6</comment_count>
    <who name="Garrett">AlexShevchenko</who>
    <bug_when>2026-03-31 23:01:49 +0300</bug_when>
    <thetext>После нескольких обновлений системы (Альт Сизиф) ошибка пропала. Так что тикет можно закрыть.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>284891</commentid>
    <comment_count>7</comment_count>
    <who name="Garrett">AlexShevchenko</who>
    <bug_when>2026-03-31 23:10:05 +0300</bug_when>
    <thetext>(In reply to Vitaly Lipatov from comment #2)
&gt; &gt; 1. Склонировать репозиторий retext
&gt; &gt;    git clone https://github.com/retext-project/retext.git
&gt; 
&gt; А зачем, если есть пакет в репозитории? Если проблема с ним, то и багу на
&gt; него надо?

Дмитрий (автор retext) по моим наводкам добавляет новые фичи и правит баги, а я потом тестирую полученный результат.

В данном случае, программа идеально работала в локальном окружении, но стала падать с системным pyqt6. Т.е. дело было не в программе. Сейчас вы что-то пофиксили и всё стало работать как прежде.

PS. Прошу при обновлении python3-module-PyQt6 не забывать про python3-module-PyQt6-WebEngine. Эти модули быть одной версии, у вас сейчас 6.10.2 и 6.6.0 соответственно...

Удачи.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>285004</commentid>
    <comment_count>8</comment_count>
    <who name="Yuri N. Sedunov">aris</who>
    <bug_when>2026-04-02 17:07:45 +0300</bug_when>
    <thetext>SPAM</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>