Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 24 Oct 2014, 05:54
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Random crashes from gtkdialog
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message
thanius

Joined: 04 Feb 2014
Posts: 8

PostPosted: Mon 10 Mar 2014, 17:02    Post subject:  Random crashes from gtkdialog  

I've started to get these weird crashes from gtkdialog when opening another dialog, dunno why. I'm getting a lot of these:

Quote:
[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:

Quote:
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:
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:
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!
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0491s ][ Queries: 12 (0.0038s) ][ GZIP on ]