EMC2 v. 2.5.0 crashing on startup

More
26 Jul 2012 10:58 #22480 by Alakazam
Hey guys,
I just installed the latest package of EMC (2.5.0) via the linuxcnc-install.sh on Ubuntu 10.04 Lucid Lynx.
That worked pretty well, i could even generate a config with the Stepconf Wizard and in the wizard i could run my stepper motors with this little testing program.
But everytime i try to run EMC you see it loading, but before the window is completely visible it crashes with this errormessage, wich does not tell me too much

Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/realtime-2.6.32-122-rtai/modules/linuxcnc
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.5
LINUXCNC - 2.5.0
Machine configuration directory is '/home/robert/linuxcnc/configs/demo_sim_cl'
Machine configuration file is 'demo_sim_cl.ini'
INIFILE=/home/robert/linuxcnc/configs/demo_sim_cl/demo_sim_cl.ini
PARAMETER_FILE=demo_sim_cl.var
TASK=milltask
HALUI=
DISPLAY=axis
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
INFO CLASSICLADDER- No ladder GUI requested-Realtime runs till HAL closes.
Starting TASK program: milltask
Starting DISPLAY program: axis
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=2961
Killing task milltask, PID=3009
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Cleanup done

Debug file information:
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
/usr/bin/linuxcnc: Zeile 687: 3010 Speicherzugriffsfehler $EMCDISPLAY -ini "$INIFILE" $EMCDISPLAYARGS $EXTRA_ARGS
2961
PID TTY STAT TIME COMMAND
3009
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components

Kernel message information:
[ 2139.484770] I-pipe: Domain RTAI registered.
[ 2139.484805] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[ 2139.484813] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[ 2139.484833] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 2139.484841] PIPELINE layers:
[ 2139.484851] d54d1e20 9ac15d93 RTAI 200
[ 2139.484858] c085cb20 0 Linux 100
[ 2139.650283] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 2139.651012] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 2139.651030] RTAI[sched]: hard timer type/freq = APIC/6215331(Hz); default timing: periodic; linear timed lists.
[ 2139.651041] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 895101000 hz.
[ 2139.651049] RTAI[sched]: timer setup = 999 ns, resched latency = 2943 ns.
[ 2139.656844] RTAI[usi]: enabled.
[ 2140.074965] RTAI[math]: loaded.
[ 2140.456110] creating ladder-state
[ 2146.882353] axis[3010]: segfault at 0 ip (null) sp bfda22bc error 4 in _tkinter.so[110000+a000]
[ 2151.746884] RTAI[math]: unloaded.
[ 2152.004356] SCHED releases registered named ALIEN RTGLBH
[ 2152.021079] RTAI[malloc]: unloaded.
[ 2152.120055] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 2152.134544] I-pipe: Domain RTAI unregistered.
[ 2152.134583] RTAI[hal]: unmounted.

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

More
26 Jul 2012 11:04 #22481 by BigJohnT
Is this a configuration you generated with the Stepconf Wizard in 2.5?

If so can you attach the the .stepconf file?

John

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

More
26 Jul 2012 11:23 #22483 by Alakazam
Well, the errormessage i posted before was not the one from my config, but it happens with every config i try.
This is my file (please ignore the z-axis, its not ready yet)

File Attachment:

File Name: prototype.stepconf
File Size:8 KB

I dont know if you need it but here is the error message form my config

Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/realtime-2.6.32-122-rtai/modules/linuxcnc
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.5
LINUXCNC - 2.5.0
Machine configuration directory is '/home/robert/linuxcnc/configs/prototype'
Machine configuration file is 'prototype.ini'
INIFILE=/home/robert/linuxcnc/configs/prototype/prototype.ini
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=
DISPLAY=axis
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting TASK program: milltask
Starting DISPLAY program: axis
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=4297
Killing task milltask, PID=4344
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Cleanup done

Debug file information:
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
/usr/bin/linuxcnc: Zeile 687: 4345 Speicherzugriffsfehler $EMCDISPLAY -ini "$INIFILE" $EMCDISPLAYARGS $EXTRA_ARGS
4297
PID TTY STAT TIME COMMAND
4344
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components

Kernel message information:
[ 6152.283694] I-pipe: Domain RTAI registered.
[ 6152.283737] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[ 6152.283746] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[ 6152.283769] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 6152.283777] PIPELINE layers:
[ 6152.283787] d4e87e20 9ac15d93 RTAI 200
[ 6152.283794] c085cb20 0 Linux 100
[ 6152.451141] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 6152.451832] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 6152.451850] RTAI[sched]: hard timer type/freq = APIC/6215331(Hz); default timing: periodic; linear timed lists.
[ 6152.451861] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 895101000 hz.
[ 6152.451869] RTAI[sched]: timer setup = 999 ns, resched latency = 2943 ns.
[ 6152.458278] RTAI[usi]: enabled.
[ 6152.875773] RTAI[math]: loaded.
[ 6153.233802] config string '0x378 out '
[ 6161.790936] axis[4345]: segfault at 0 ip (null) sp bfc0804c error 4 in _tkinter.so[110000+a000]
[ 6167.545117] RTAI[math]: unloaded.
[ 6167.828673] SCHED releases registered named ALIEN RTGLBH
[ 6167.845048] RTAI[malloc]: unloaded.
[ 6167.944055] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 6167.958691] I-pipe: Domain RTAI unregistered.
[ 6167.958728] RTAI[hal]: unmounted.

Attachments:

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

More
26 Jul 2012 11:33 #22484 by BigJohnT
Ok, the config is ok. What do you get when you type uname -r in a terminal?

John

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

More
26 Jul 2012 11:47 #22485 by Alakazam
I get "2.6.32-122-rtai"

Could it be something with the graphics card drivers? Thats my only idea

btw. thanks for the quick response

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

More
26 Jul 2012 11:58 #22486 by BigJohnT
Well we have eliminated all most everything except that.

Try and run from the CNC menu LinuxCNC and from the sample configs run sim > tklinuxcnc > tklinuxcnc and sim > keystick. It might also be an opengl problem.

John

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

More
26 Jul 2012 12:26 - 26 Jul 2012 12:35 #22487 by Alakazam
That both seems to work
I guess that means it is the graphics card?
My Graphics Chip is an Intel 82815

I ran "glxinfo | grep direct" and it said "direct rendering: No (LIBGL_ALWAYS_INDIRECT set)"
Last edit: 26 Jul 2012 12:35 by Alakazam.

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

More
More
26 Jul 2012 13:44 - 26 Jul 2012 17:48 #22491 by BigJohnT
Hmmm, my reply vanished somewhere between here and the satellite and there... my guess was the same as Andy's for once.

John
Last edit: 26 Jul 2012 17:48 by BigJohnT.

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

More
26 Jul 2012 16:34 #22493 by Alakazam
Thank you very much,
with the documentation i solved the problem, i still don't exactly know what it is,
but installing the software-only OpenGL package helped ( point 5.2 in the documentation if anyone has the same problem)
i can now start the program properly and run my steppers with it

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

Time to create page: 0.116 seconds
Powered by Kunena Forum