I just recently rolled out FC6 into 150 stores and we run a java app to communicate with the cash registers at our restaurants.<br><br>At the end of the java program, I call dosemu to run an executable that prints out a report and allows the store manager to view sales information, etc.
<br><br>when I run the script calling java and then dosemu, on some random number of times running the script, kdeinit crashes and reboots.<br>I have kde set to autologin for the stores to a non-root user. However, upon kde crash, it comes up to the login prompt. the store can hit enter and it bypasses this login prompt. Normally a reboot or fresh boot up never prompts for a login.
<br><br>I guess I have two problems to solve.<br><br>1. Why does kde keep crashing?<br>2. When it does crash, why does kde not autologin?<br><br>Below is the script we are running that causes the crash:<br><br>##################################################################
<br>#!/bin/bash<br>#<br># the USB ~ ttyS number is one less than the -p number!<br>/usr/bin/sudo /bin/ln -sf /dev/ttyUSB2 /dev/ttyS2<br>#<br>cd /u/javacomm/poll700/a570dist<br>export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./librxtxSerial.so
<br>rm STATUS.OK<br>rm *.DAT<br>rm /u/soupsys/terminal.dat<br>rm /u/soupsys/plu.dat<br>rm /u/soupsys/deptment.dat<br>rm /u/soupsys/regdata.prn<br>rm /u/soupsys/regrpt.prn<br>#<br>/usr/bin/java -cp poll700.jar:commons-logging-1.0.4.jar:jargs.jar:log4j-1.2.11.jar:jargs.jar:RXTXcomm.jar
com.gardenfresh.poll700.Poll700 -g A570 -l log4j.properties -c terminal -p 3 -b 9600 $4 $5 $6 $7 $8 $9 > /tmp/xreg<br>if [ -f "STATUS.OK" ]<br>then<br> /usr/bin/java -cp poll700.jar:commons-logging-1.0.4.jar:jargs.jar:log4j-1.2.11.jar:jargs.jar:RXTXcomm.jar
com.gardenfresh.poll700.Poll700 -g A570 -l log4j.properties -c dept -p 3 -b 9600 $4 $5 $6 $7 $8 $9 >> /tmp/xreg<br> /usr/bin/java -cp poll700.jar:commons-logging-1.0.4.jar:jargs.jar:log4j-1.2.11.jar:jargs.jar:RXTXcomm.jar
com.gardenfresh.poll700.Poll700 -g A570 -l log4j.properties -c plu -p 3 -b 9600 $4 $5 $6 $7 $8 $9 >> /tmp/xreg<br> cp -f TERMINAL.DAT /u/soupsys/terminal.dat<br> cp -f PLU.DAT /u/soupsys/plu.dat<br> cp -f DEPTMENT.DAT
/u/soupsys/deptment.dat<br> /usr/bin/sudo /usr/bin/zip `date +%F%T`-x2 *.DAT<br> cd /u/soupsys<br> touch a5x2.cfg<br>###########################################<br># Everything above this point completes successfully every time.
<br># Randomly, it will kill KDE when its gets to : xdosemu soup.exe<br># I tried running dosemu soup.exe without x component and it still crashes randomly. perhaps 1 in 40 or sometimes <br># it crashes every other time we run the program
<br>###########################################<br> xdosemu soup.exe<br> lp regrpt.prn<br>fi<br>################################################################<br><br><br>That being said, I understand it must be dosemu causing this but I can not figure out why. Oftentimes, I will get all the way through what I am doing with the script, it runs xdosemu, then when I go to print the report, it will crash X.
<br><br>xsession error attached from last crash wher it is prompting user to login. Soup.exe is just a dos based program that parses text files and lets user see financial info, user schedule, etc. It is a holdover from the switchover to linux. Previous to last week, all stores used dos based 286 computers so they were used to using the dos program and we continued it. It is not an option at this time to get rid of it so I need to find out why the random crashes of X/KDE.
<br><br>/home/soup/.xsession-errors below:<br><br>X Error: BadWindow (invalid Window parameter) 3<br> Major opcode: 19<br> Minor opcode: 0<br> Resource id: 0x2000007<br>X Error: BadWindow (invalid Window parameter) 3
<br> Major opcode: 19<br> Minor opcode: 0<br> Resource id: 0x2600001<br>ICE default IO error handler doing an exit(), pid = 16265, errno = 0<br>DCOPClient::attachInternal. Attach failed Could not open network socket
<br>DCOPClient::attachInternal. Attach failed Could not open network socket<br>ERROR: Couldn't attach to DCOP server!<br>startkde: Shutting down...<br>Warning: connect() failed: : Connection refused<br>Error: Can't contact kdeinit!
<br>unix_connect: can't connect to server (unix:/tmp/ksocket-soup/store000.gardenfreshcorp.com-3bbd-45b92526)<br>startkde: Running shutdown scripts...<br>startkde: Done.<br><br>The lines:<br>X Error: BadWindow (invalid Window parameter) 3
<br>
Major opcode: 19<br><br>Continue for hundreds of lines in .xsession-errors file.<br><br>Any help appreciated. dosemu camp says it is a KDE issue. I don't really care, just need it fixed. Any more info I can provide, I will gladly provide.
<br><br>I see the following in /var/log/messages at time of crash:<br>Jan 25 16:45:18 store000 kdm_greet[19883]: Can't open default user face<br><br><br><br><br><br>