Leonardo,

Leonardo Varuzza wrote:
I have the same error executing the demo with SBCL 1.0.13.53 in
Unbuntu 7.10 AMD64.

So it is three of you, and all on AMD64s. This *is* strange. If anyone of you feels adventurous, it'd be great if you could investigate that further and try to pin down where the problem is.

Can you confirm that it is confined to the tree view and menu demo?

As I said before, we are working on a port to cells3 and cffi-darcs, which might solve things *if* it is a cells or cffi issue.

If it is a gtk thing we might need to create a work around. I'd ge most grateful if anyone of you 64bit guys can dig deeper here, since I cannot reproduce the problem on my four year old machine.

I'll be happy to respond to questions or help with the general understanding of gtk/cells/cells-gtk.

Another problem occur when compiling gtk-ffi:

/usr/bin/ld: gtk-adds.o: relocation R_X86_64_32 against `a local
symbol' can not be used when making a shared object; recompile with
-fPIC
gtk-adds.o: could not read symbols: Bad value

I need to use -fPIC option to compile the library.

Thanks for pointing it out. I committed that to CVS yesterday. Somehow my gcc silently does the right thing. Maybe they changed it to be more picky in the current or 64bit version.

Best,
Peter



On Jan 29, 2008 9:45 PM, Leandro Ríos <[EMAIL PROTECTED]> wrote:
Hi,

I'm having problems to run the demo of cells-gtk. I compiled
libcellsgtk.so (I'm running Ubuntu 7.10 AMD64 and SBCL 1.0.6) When I run
(test-gtk:gtk-demo) sbcl halts with this error:

Unhandled memory fault at #x400000004B.
    [Condition of type SB-SYS:MEMORY-FAULT-ERROR]

Restarts:
  0: [ABORT] Return to SLIME's top level.
  1: [TERMINATE-THREAD] Terminate this thread (#<THREAD "repl-thread"
{1002AB65E1}>)

Backtrace:
   0: (SB-SYS:MEMORY-FAULT-ERROR)
   1: (SB-SYS:MEMORY-FAULT-ERROR)
   2: ("foreign function: #x41D7B2")
   3: ("foreign function: #x41D880")

If I enable debug:

-------------------------------------------------------------------
CL-USER> (test-gtk:gtk-demo t)

eval (INIT-GTK)
Calling (gtk-adds-g-thread-supported )
   (gtk-adds-g-thread-supported ) returns 1--> NIL
eval (SHOW-WIN APP-NAME TERMINATE-ON-CLOSE T)
eval (SETF APP
              (APPLY #'MAKE-INSTANCE APP-NAME VISIBLE (C-IN NIL) INITARGS))
Calling (gtk-statusbar-new )
   (gtk-statusbar-new ) returns #.(SB-SYS:INT-SAP #X00AF7330)
Calling (gtk-statusbar-get-context-id #.(SB-SYS:INT-SAP #X00AF7330) MAIN)
   (gtk-statusbar-get-context-id #.(SB-SYS:INT-SAP #X00AF7330) MAIN)
returns 1
Calling (gtk-list-store-newv 2 #.(SB-SYS:INT-SAP #X00ABAF90))

-------------------------------------------------------------------

And the debugger pops up with above error.

If I modify the model test-gtk like:

(defmodel test-gtk (gtk-app)
   ()
   (:default-initargs
       :title "GTK Testing"
     ;;:tooltips nil ;;dkwt
     ;;:tooltips-enable nil ;;dkwt
     :icon (namestring *small-image*)
     :stock-icons (list (list :my-g (namestring *stock-icon-image*)))
     :position :center
     :splash-screen-image (namestring *splash-image*)
     :width 650 :height 550
     :kids (let ((tabs '("Buttons"
                         "Display"
                        "Layout"
                         ;"Menus" <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< HERE
                         "Dialogs"
                        "Addon"
                         "Entry"
                        "Textview"
                         ;"Tree-view" <<<<<<<<<<<<<<<<<<<<<<<<<<<<< HERE
                        ;"Drawing"
                        )))
             (list (mk-notebook
                    :tab-labels tabs
                    :kids  (loop for test-name in tabs
                               collect (make-instance
                                           (intern (string-upcase
                                                    (format nil
"test-~a" test-name))
                                             :test-gtk))))))))

the demo runs, but the treeview and menu demos are missing (of course).

Using Cells 2.0 and CFFI 0.9.2, from asdf-install and cells-gtk from CVS

Any ideas?

Thanks in advance,

Leandro

_______________________________________________
cells-gtk-devel site list
[email protected]
http://common-lisp.net/mailman/listinfo/cells-gtk-devel





------------------------------------------------------------------------

_______________________________________________
cells-gtk-devel site list
[email protected]
http://common-lisp.net/mailman/listinfo/cells-gtk-devel
_______________________________________________
cells-gtk-devel site list
[email protected]
http://common-lisp.net/mailman/listinfo/cells-gtk-devel

Reply via email to