12.04 Pure Simulator no longer starts

More
29 May 2012 16:34 #20485 by Bryan_W
Short version -
Followed the wiki for a pure simulator install yesterday and (much to my surprise) was able to at least get to the axis gui after the "linuxcnc 2.6~pre" image popped up and a "manual tool changer" message popped up. However, each attempt at running any gcode left me with a "Program exceeds machine maximum on Z axis" message.

Today, ater googling, I started "playing" with homing and touching off per some suggestions in the forum.
Unfortunately, my computer crashed (gui disappeared and gave me a screen full of text that ended in - "Panic occurred- switching back to text console" ) while the simulator was running and I ended up having to power down to get out of it.

After restarting the computer the simulator will show startup image and "tool changer" message, but then shuts down.
So, (me) being a wiz at git and compiling after one day, I tried each of the following but the program still shuts down:

ran dpkg-checkbuilddeps (which came back clean)
ran "make clean" in git/linuxcnc/src.terminal
ran make

My question is, can I get the simulator back without a fresh install of 12.04?

Thanks in advance,
Bryan

Please Log in or Create an account to join the conversation.

More
29 May 2012 19:46 #20494 by Bryan_W
Just thought I'd report that I have the simulator running again - I re-cloned the git and recompiled.
Now I'm just back to working on the "Program exceeds machine maximum on z axis" message problem.

Please Log in or Create an account to join the conversation.

More
29 May 2012 20:57 #20495 by BigJohnT
That's not a problem... it's telling you your trying to move outside your configured boundaries.

John

Please Log in or Create an account to join the conversation.

More
31 May 2012 19:39 #20535 by bdugan
I'm having this same issue (at least it sounds the same).

I'm running 12.04 Ubuntu on a 32 bit machine. A few days ago I succumbed to the repeated notifications from the system that "Updates were available" and click "Oh, OK, go ahead and update the darn thing!"

Before I did that I had a working sim version of EMC 2.5. After updating Ubuntu, it no longer works. The toolchanger screen pops up, and the terminal reports a few "waiting for s.axes" before quitting.

Rather than try to get to the bottom of that, I thought I'd go ahead and load new source, build it, and go from there. I followed the directions here and things seemed to go correctly. But I only get the splash screen (2.6.0~pre), the toolchanger screen, and then a crash.

Here's the terminal output:
bdugan@ben-gateway:scripts$ ./linuxcnc
LINUXCNC - 2.6.0~pre
Machine configuration directory is '/home/bdugan/git/linuxcnc/configs/sim/axis'
Machine configuration file is 'axis.ini'
Starting LinuxCNC...
io started
halcmd loadusr io started
task pid=13919
emcTaskInit: using builtin interpreter
X Error of failed request:  BadRequest (invalid request code or no such operation)
  Major opcode of failed request:  138 (ATIFGLEXTENSION)
  Minor opcode of failed request:  66 ()
  Serial number of failed request:  764
  Current serial number in output stream:  764
Shutting down and cleaning up LinuxCNC...
Cleanup done
LinuxCNC terminated with an error.  You can find more information in the log:
    /home/bdugan/linuxcnc_debug.txt
and
    /home/bdugan/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal

And here's what's in linuxcnc_debug.txt:
bdugan@ben-gateway:scripts$ cat ~/linuxcnc_debug.txt 
Can not find -sec MOT -var MOT -num 1 
Can not find -sec IO -var IO -num 1 
Can not find -sec LINUXCNC -var NML_FILE -num 1 
Can not find -sec EMC -var NML_FILE -num 1 
13874
  PID TTY      STAT   TIME COMMAND
13919
  PID TTY      STAT   TIME COMMAND
Stopping realtime threads
Unloading hal components

and, finally, what's in linuxcnc_print.txt:
bdugan@ben-gateway:scripts$ cat ~/linuxcnc_print.txt 
RUN_IN_PLACE=yes
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/home/bdugan/git/linuxcnc/bin
LINUXCNC_TCL_DIR=/home/bdugan/git/linuxcnc/tcl
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/home/bdugan/git/linuxcnc/rtlib
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/home/bdugan/git/linuxcnc/src/objects
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.5
INIFILE=/home/bdugan/git/linuxcnc/configs/sim/axis/axis.ini
PARAMETER_FILE=sim.var
TASK=milltask
HALUI=halui
DISPLAY=axis
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
Starting TASK program: milltask
Starting DISPLAY program: axis
Killing task linuxcncsvr, PID=13874
Killing task milltask, PID=13919
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments


This is my first post here, so please tell me if I'm posting inappropriately in some way! I've been using EMC (now linuxcnc) for 7 years and it has been a huge help. Normally I can get to the bottom of problems with searchng on these forums or on the wiki. I think my problem this time is trying to use the simulator on a new-ish version of Ubuntu.

Thanks in advance for any pointers!

Ben

Please Log in or Create an account to join the conversation.

More
01 Jun 2012 12:11 #20556 by andypugh
bdugan wrote:

X Error of failed request: BadRequest (invalid request code or no such operation)
Major opcode of failed request: 138 (ATIFGLEXTENSION)


This appears to be an OpenGL problem. If it is, then you should find that one of the alternative GUIs works.
Try sim-tklinuxcnc if that works then it is definitely a graphics problem.

Please Log in or Create an account to join the conversation.

More
01 Jun 2012 15:47 #20570 by bdugan
Thanks, Andy Pugh: Its working now.

I wasn't able to run the tklinuxcnc simulator, either. But your tip about it being related to openGL sent me in the right direction. Synaptic showed me updates related to my AMD graphics hardware and, when I installed those, the axis-sim is again working.

I really appreciate your help.

Ben

Please Log in or Create an account to join the conversation.

Time to create page: 0.090 seconds
Powered by Kunena Forum