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

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

    <bug>
          <bug_id>13340</bug_id>
          
          <creation_ts>2007-11-06 23:01:02 +0300</creation_ts>
          <short_desc>Падение при попытке импортировать файл</short_desc>
          <delta_ts>2009-01-09 02:46:43 +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>gscan2pdf</component>
          <version>unstable</version>
          <rep_platform>all</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>P2</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Turkov Oleg">turkov</reporter>
          <assigned_to name="Vitaly Lipatov">lav</assigned_to>
          <cc>at</cc>
    
    <cc>avp</cc>
    
    <cc>icesik</cc>
    
    <cc>lav</cc>
    
    <cc>php-coder</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>57547</commentid>
    <comment_count>0</comment_count>
    <who name="Turkov Oleg">turkov</who>
    <bug_when>2007-11-06 23:01:03 +0300</bug_when>
    <thetext>strace gscan2pdf
...
write(2, &quot;The program &apos;gscan2pdf&apos; received&quot;..., 590The program &apos;gscan2pdf&apos; 
received an X Window System error.
This probably reflects a bug in the program.
The error was &apos;BadIDChoice (invalid resource ID chosen for this connection)&apos;.
  (Details: serial 5131 error_code 14 request_code 1 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
) = 590
exit_group(1)                           = ?
Process 5932 detached
perl: xcb_io.c:182: process_responses: Проверочное утверждение `((int) 
(((dpy-&gt;last_request_read)) - ((dpy-&gt;request))) &lt;= 0)&apos; не выполнено.

Steps to Reproduce:
1.Запускаем софтинку - версия 0.9.17-alt1
2.Импортируем любой jpg файл
3.Упали</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57555</commentid>
    <comment_count>1</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2007-11-07 01:17:55 +0300</bug_when>
    <thetext>При запуске через LANG=C работает...
А ошибка в посылке
     send($writer, sprintf(&quot;%f %s %i &quot;, $j/($#filename+1), $filename, 
$resolution)
      .sprintf($d-&gt;get(&quot;Importing %s&quot;), $format), 0);
Похоже добавился перевод, а там что-то с установкой локали, и текст перевода 
не может быть воспринят на вывод.

$ gscan2pdf --sync
*** unhandled exception in callback:
***   Wide character in send at /usr/bin/gscan2pdf line 1501.
***  ignoring at /usr/bin/gscan2pdf line 963.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58418</commentid>
    <comment_count>2</comment_count>
    <who name="Slava Semushin">php-coder</who>
    <bug_when>2007-11-21 12:10:44 +0300</bug_when>
    <thetext>Господа, прощу прощения за беспокойство, вы не поможете нам разобраться, почему
gscan2pdf падает при импорте?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58445</commentid>
    <comment_count>3</comment_count>
    <who name="at@altlinux.org">at</who>
    <bug_when>2007-11-21 17:22:33 +0300</bug_when>
    <thetext>Ждите.  Я пока разбираюсь с rpm-build.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59517</commentid>
    <comment_count>4</comment_count>
    <who name="Slava Semushin">php-coder</who>
    <bug_when>2007-12-14 13:43:29 +0300</bug_when>
    <thetext>(In reply to comment #3)
&gt; Ждите.  Я пока разбираюсь с rpm-build.

Ждём. Мы весьма терпеливые ;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60677</commentid>
    <comment_count>5</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2008-01-09 02:42:06 +0300</bug_when>
    <thetext>Ну в общем там проблемы с локализацией, в ряде мест переводить строки нельзя:
 send($writer, sprintf(&quot;%f %s %i &quot;, $j/($#filename+1), $filename, $resolution)
   .sprintf($d-&gt;get(&quot;Importing %s&quot;), $format), 0);

 send($writer, &apos;0&apos;.$d-&gt;get(&apos;Setting up PDF&apos;), 0);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65354</commentid>
    <comment_count>6</comment_count>
    <who name="Turkov Oleg">turkov</who>
    <bug_when>2008-03-09 15:28:59 +0300</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; Ждите.  Я пока разбираюсь с rpm-build.
&gt; 
&gt; Ждём. Мы весьма терпеливые ;)

Багу, похоже можно закрывать. УМВР:)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84011</commentid>
    <comment_count>7</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2009-01-09 02:46:43 +0300</bug_when>
    <thetext>Закрываю.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>