Leonardo Zide | 21 Feb 10:29 2009
Picon

Re: 0.75 stable crashes with command line params


  I've just checked in a fix for a crash loading a project from the command line but the callstack I was getting was completely different. Anyway, I'm able to load files now.


On Sun, Jan 25, 2009 at 1:31 PM, Stumpy842 <stump842-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
I built a rpm for 0.75 for PCLinuxOS, it installs and runs fine... but whenever I give any command line parameters it crashes. I've included the gdb output from an attempt to run it with a project file, the same project file can be loaded successfully if I start the app and then use File > Load to open it.

(gdb) run
Starting program: /usr/share/leocad/leocad 6340.lcd
Reading symbols from shared object read from target memory...done.
Loaded system supplied DSO at 0xffffe000
/home/stumpy/.gtkrc-2.0:56: Clearlooks configuration option "menuitemstyle" is not supported and will be ignored.
/home/stumpy/.gtkrc-2.0:57: Clearlooks configuration option "listviewitemstyle" is not supported and will be ignored.
/home/stumpy/.gtkrc-2.0:58: Clearlooks configuration option "progressbarstyle" is not supported and will be ignored.
/usr/share/themes/Clearlooks/gtk-2.0/gtkrc:47: Invalid symbolic color 'bg_color'
/usr/share/themes/Clearlooks/gtk-2.0/gtkrc:47: error: invalid identifier `bg_color', expected valid identifier
[Thread debugging using libthread_db enabled]
[New Thread -1222777136 (LWP 16041)]
Error while reading shared library symbols:
Cannot find new threads: generic error

(leocad:16041): Gdk-CRITICAL **: gdk_window_set_cursor: assertion `GDK_IS_WINDOW (window)' failed

(leocad:16041): Gdk-CRITICAL **: gdk_window_set_cursor: assertion `GDK_IS_WINDOW (window)' failed

(leocad:16041): Gdk-CRITICAL **: gdk_window_set_cursor: assertion `GDK_IS_WINDOW (window)' failed

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1222777136 (LWP 16041)]
colorlist_draw_pixmap (widget=0x0) at linux/toolbar.cpp:535
535       GdkGC* gc = gdk_gc_new(widget->window);
(gdb) bt
#0  colorlist_draw_pixmap (widget=0x0) at linux/toolbar.cpp:535
#1  0x08064ca0 in colorlist_set (new_color=3) at linux/toolbar.cpp:697
#2  0x08097bad in Project::FileLoad (this=0x8d310a8, file=0xbfa37318, bUndo=false, bMerge=false) at common/project.cpp:839
#3  0x080a5e07 in Project::OnOpenDocument (this=0x8d310a8, lpszPathName=0xbfa3a71e "6340.lcd") at common/project.cpp:1466
#4  0x080a674c in Project::OpenProject (this=0x8d310a8, FileName=0xbfa3a71e "6340.lcd") at common/project.cpp:1373
#5  0x0807529a in lcApplication::Initialize (this=0x8d11f38, argc=2, argv=0xbfa38a44, SysLibPath=0x80c9e60 "/usr/share/leocad/")
    at common/lc_application.cpp:242
#6  0x080601e4 in main (argc=2, argv=0xb75de4d0) at linux/main.cpp:527
#7  0xb74c975c in __libc_start_main () from /lib/i686/libc.so.6
#8  0x0804ec61 in _start ()


_______________________________________________
Leocad mailing list
Leocad-KBwQgg6FT4s/11+TDStg7g@public.gmane.org
https://list.gerf.org/listinfo/leocad


_______________________________________________
Leocad mailing list
Leocad@...
https://list.gerf.org/listinfo/leocad
Stumpy842 | 24 Feb 06:26 2009
Picon

Compile #error need to define lcint16 and lcuint16

I just checked out revision 742 and this bug is back (or did it ever go away?)

In config.mk it seems the author got a little too happy with those backslashes   ;-)

Here's a patch for config.mk which will fix things up, and get rid of those errors in linux/config.h
for those Linux users out there.

Attachment (config_mk.patch): text/x-patch, 4449 bytes
_______________________________________________
Leocad mailing list
Leocad@...
https://list.gerf.org/listinfo/leocad
Leonardo Zide | 27 Feb 09:19 2009
Picon

Re: Compile #error need to define lcint16 and lcuint16


  That's weird, I can run make config fine without the patch, if I apply it then I can't run the tests anymore. There has to be an easier way to do this, maybe I should use a shell script instead of the make system.


On Mon, Feb 23, 2009 at 9:26 PM, Stumpy842 <stump842 <at> gmail.com> wrote:
I just checked out revision 742 and this bug is back (or did it ever go away?)

In config.mk it seems the author got a little too happy with those backslashes   ;-)

Here's a patch for config.mk which will fix things up, and get rid of those errors in linux/config.h
for those Linux users out there.

_______________________________________________
Leocad mailing list
Leocad-KBwQgg6FT4s/11+TDStg7g@public.gmane.org
https://list.gerf.org/listinfo/leocad


_______________________________________________
Leocad mailing list
Leocad@...
https://list.gerf.org/listinfo/leocad

Gmane