Random crashes from gtkdialog

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
thanius
Posts: 10
Joined: Tue 04 Feb 2014, 17:19

Random crashes from gtkdialog

#1 Post by thanius »

I've started to get these weird crashes from gtkdialog when opening another dialog, dunno why. I'm getting a lot of these:
[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
with a following SIGABRT, but also recently these crashes:
gtkdialog: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
dc: could not write output file: Broken pipe
This is the my code:

Code: Select all

INSTALL_WINDOW='
<window title="'$NICETITLE' Setup" name="MAIN" decorated="true" allow-shrink="false" allow-grow="false" width-request="660" height-request="400" image-name="'$PIXMAPBKG'/icon.png" border-width="10">

     <vbox space-fill="false" height-request="380">

        <vbox space-fill="false" space-exand="false">

          <vbox space-fill="false" space-exand="false" border-width="10">
      <text use-markup="true"><label>"<span size='"'x-large'"'>Installing... please wait.</span>"</label></text>
          </vbox>

     <vbox>
       <vbox width-request="642" height-request="182" space-fill="false" space-expand="false">
         <pixmap><input file>gui_res/ad.png</input><variable export="false">ADVERTISMENT</variable></pixmap>
       </vbox>

       <hbox>
         <hbox space-fill="false" space-expand="false"><text><label>""</label></text></hbox>

         <hbox space-fill="false" space-expand="true" height-request="32">
           <button name="LAUNCH" height-request="32" width-request="106">
             <label>""</label>
             <action>exec $SHELL -c open_ad</action>
           </button>
         </hbox>

         <hbox space-fill="false" space-expand="false" width-request="290"><text><label>""</label></text></hbox>
       </hbox>
     </vbox>

      <timer milliseconds="false" interval="4" visible="false">
        <action>exec $SHELL -c cycle_ad</action> 
        <action>refresh:ADVERTISMENT</action> 
      </timer>

        </vbox>

        <vbox>
          <text><label>""</label></text>
          <hbox space-fill="true" space-expand="true" homogeneous="true" border-width="10">
            <hbox space-expand="false" space-fill="false" homogeneous="true">
              <progressbar name="PROGRESS" width-request="300">

                <input>exec $SHELL -c begininstall & echo $! > '"$TMPDIR"'/PID; P=0; while [ "$P" != "100" ]; do P=`cat '"$TMPDIR"'/PERCENTAGE 2>&1`; echo $P; done</input>
                <action>exit:Exit</action>
              </progressbar>
            </hbox>
          </hbox>
      </vbox>

      </vbox>

</window>'
It's being opened through

Code: Select all

if [ "$EXIT" = "Install" ]; then
    $GTKDIALOG --space-fill="true" --space-expand="true" -c --program=INSTALL_WINDOW
fi
after user has hit "Install" button on main dialog.

Is there something in my code which produces these hiccups? The program runs as it should when gtkdialog doesn't crash.
Please help!

Post Reply