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

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

    <bug>
          <bug_id>41504</bug_id>
          
          <creation_ts>2021-12-04 15:30:52 +0300</creation_ts>
          <short_desc>xxkb: fails a few minutes after start: with X Error:  BadMatch</short_desc>
          <delta_ts>2025-05-18 08:50:59 +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>xxkb</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="viy">viy</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>placeholder</cc>
    
    <cc>slazav</cc>
    
    <cc>vsu</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>205716</commentid>
    <comment_count>0</comment_count>
    <who name="viy">viy</who>
    <bug_when>2021-12-04 15:30:52 +0300</bug_when>
    <thetext>p10: fails (on mouse&apos; X_CopyArea action?)

time xxkb
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  62 (X_CopyArea)
  Serial number of failed request:  489
  Current serial number in output stream:  502
xxkb  0,00s user 0,01s system 0% cpu 39,570 total</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>205717</commentid>
    <comment_count>1</comment_count>
    <who name="viy">viy</who>
    <bug_when>2021-12-04 16:02:10 +0300</bug_when>
    <thetext>1.10.1 пересобранная по свежий p10 также падает.
и заметил триггер падения: достаточно переключиться на окно с firefox
(firefox-esr-91.3.0-alt2.x86_64), чтобы xxkb упал.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>205718</commentid>
    <comment_count>2</comment_count>
    <who name="viy">viy</who>
    <bug_when>2021-12-04 16:10:24 +0300</bug_when>
    <thetext>(Ответ для viy на комментарий #1)
&gt; 1.10.1 пересобранная по свежий p10 также падает.
&gt; и заметил триггер падения: достаточно переключиться на окно с firefox
&gt; чтобы xxkb упал.
[переключаюсь в IceWM на другой рабочий стол с окном с firefox]

Пересобрал xxkb-1.11-alt4 на p10 - та же картина, тоже падает. 
Т.е. это не привнесено обновлением xxkb, а чем-то свежим в X.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>205719</commentid>
    <comment_count>3</comment_count>
    <who name="viy">viy</who>
    <bug_when>2021-12-04 17:15:09 +0300</bug_when>
    <thetext>Нашел коллекцию разных патчей для xxkb
https://github.com/ramok/xxkb
в числе других интересных патчей там есть 

commit b7eb7539f50f30095a0a0055614218419ed5d95f
Author: Maksym Komar &lt;komar@evologics.de&gt;
Date:   Mon Oct 22 10:19:01 2018 +0200

    Ignore BadMatch errors

diff --git a/xxkb.c b/xxkb.c
index 37a3e63..fae91e4 100644
--- a/xxkb.c
+++ b/xxkb.c
@@ -1268,6 +1268,7 @@ ErrHandler(Display *dpy, XErrorEvent *err)
        switch (err-&gt;error_code) {
        case BadWindow:
        case BadDrawable:
+       case BadMatch:
                /* Ignore these errors */
                break;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>205720</commentid>
    <comment_count>4</comment_count>
    <who name="viy">viy</who>
    <bug_when>2021-12-04 17:17:01 +0300</bug_when>
    <thetext>Перевешиваю на Сизиф, так как похоже, что проблему надо лечить и в Сизифе.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>205721</commentid>
    <comment_count>5</comment_count>
    <who name="viy">viy</who>
    <bug_when>2021-12-04 19:44:31 +0300</bug_when>
    <thetext>указанный патч частично помог в том, что xxkb больше не падает, и работает в том числе и с firefox. Но в firefox вместо флага черный квадратик.

В общем, надо прикладывать.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>265010</commentid>
    <comment_count>6</comment_count>
    <who name="Vladislav Zavjalov">slazav</who>
    <bug_when>2025-05-16 23:06:41 +0300</bug_when>
    <thetext>Мне тоже этот патч помог. Хотелось бы приложить. Откуда возникает этот BadMatch - не разобрался, но иногда возникает.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>265011</commentid>
    <comment_count>7</comment_count>
    <who name="Vladislav Zavjalov">slazav</who>
    <bug_when>2025-05-16 23:07:51 +0300</bug_when>
    <thetext>(И похоже, проблемное окно, действительно, firefox. Хотя и не всегда)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>265018</commentid>
    <comment_count>8</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2025-05-17 03:00:55 +0300</bug_when>
    <thetext>Приложите, я не против.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>265044</commentid>
    <comment_count>9</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2025-05-18 08:50:59 +0300</bug_when>
    <thetext>xxkb-1.11.1-alt2 -&gt; sisyphus:

 Sat May 17 2025 Vladislav Zavjalov &lt;slazav@altlinux&gt; 1.11.1-alt2
 - ignore BadMatch (closes: #41504)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>