jimmy brisson | 11 Aug 2011 21:40
Picon

64bit listbox problem

I have been prodding the memory fault problem on my 64bit machine ans have narrowed it down to one function:

gtk-list-store-newv

when called like (gtk-ffi:gtk-list-store-new '(:string :string)) this function consistently produces unhandled memory fault errors (at #x4000000056 for '(:string :string)) when passed anything that is length 2 or more or contains strings (the '(:string :string) example is what (test-gtk:gtk-demo) calls).
the type signature looks like a match to the header files on my system.
for reference I am using sbcl 1.0.50 on Archlinux x86_64 with gtk and sbcl compiled 64bit and a fresh (as of an hour ago) pull of cells-gtk3 from https://github.com/Ramarren/cells-gtk3.git
I am happy to help in any way I can and can provide more information if needed.
Thanks for the great library,
Jimmy
--
"Open-source software has fewer bugs because it admits the possibility of bugs." Paul Graham
<div>
<p>I have been prodding the memory fault problem on my 64bit machine ans have narrowed it down to one function:</p>
<div>gtk-list-store-newv</div>
<div><br></div>
<div>when called like (gtk-ffi:gtk-list-store-new '(:string :string))&nbsp;this function consistently produces unhandled memory fault errors (at #x4000000056 for '(:string :string)) when passed anything that is length 2 or more or contains strings (the '(:string :string) example is what (test-gtk:gtk-demo) calls).</div>

<div>the type signature looks like a match to the header files on my system.</div>
<div>for reference I am using sbcl 1.0.50 on Archlinux x86_64 with gtk and sbcl compiled 64bit and a fresh (as of an hour ago) pull of cells-gtk3 from&nbsp;<a href="https://github.com/Ramarren/cells-gtk3.git">https://github.com/Ramarren/cells-gtk3.git</a>
</div>

<div>I am happy to help in any way I can and can provide more information if needed.</div>
<div>Thanks for the great library,</div>
<div>Jimmy</div>
<div>-- <br>"Open-source software has fewer bugs because it admits the possibility of bugs." Paul Graham<br>
</div>
</div>
Haris Bogdanovich | 10 Jul 2011 13:18
Picon

installing

Hi.
 
I tried to install cells-gtk by quicklisp.
I firstly added folders with gtk dll files to cffi:*foreign-library-directories*.
Now it doesn't complain something about cairo-win32.
Now it complains about glut:
 
Unable to load foreign library (GLUT).
  Could not register handle for external module GLUT:
 The specified module could not be found..
 
I dowloaded glut binaries and added the folder with dll to cffi:*foreign-library-directories*
But again I get the same error about glut ?
 
Thanks
<div>
<div>Hi.</div>
<div>&nbsp;</div>
<div>I tried to install cells-gtk by 
quicklisp.</div>
<div>I firstly added folders with gtk dll files&nbsp;to 
cffi:*foreign-library-directories*.</div>
<div>Now it doesn't complain something about 
cairo-win32.</div>
<div>Now it complains about 
glut:</div>
<div>&nbsp;</div>
<div>Unable to load foreign library (GLUT).<br>&nbsp; 
Could not register handle for external module GLUT:<br>&nbsp;The specified 
module could not be found..</div>
<div>&nbsp;</div>
<div>I dowloaded glut binaries and added the folder with 
dll&nbsp;to cffi:*foreign-library-directories*</div>
<div>But again I get the same error about glut 
?</div>
<div>&nbsp;</div>
<div>Thanks</div>
</div>
Ramarren | 9 Jul 2011 15:30
Picon
Gravatar

Re: compiling gtk on windows

On Sat, Jul 9, 2011 at 3:22 PM, Haris Bogdanovich <fbogdanovic <at> xnet.hr> wrote:
> How can CFFI find it there or do I change the folder ?

After loading CFFI you can push the location of GTK dll files into
CFFI:*FOREIGN-LIBRARY-DIRECTORIES*, which should be a list of
pathnames.

JH

Haris Bogdanovich | 9 Jul 2011 14:46
Picon

compiling gtk on windows

Hi.
 
Do I have to compile gtk+ on Windows (msys, mingw)
to use cells gtk ?
 
Thanks
<div>
<div>Hi.</div>
<div>&nbsp;</div>
<div>Do I have to compile gtk+ on Windows (msys, 
mingw)</div>
<div>to use cells gtk ?</div>
<div>&nbsp;</div>
<div>Thanks</div>
</div>
Haris Bogdanovich | 2 Jul 2011 18:55
Picon

first steps

Hi.
 
I loaded Cells into Lispworks with
 
(asdf:oos 'asdf:load-op 'cells)
 
I hope that's ok ?

I tried to run hello-world exsmple but I always get:
 
badly formed lambda ?
 
Is there some simple example where just a window opens
(or maybe someone could write it here) ?
 
Thanks
 
<div>
<div>Hi.</div>
<div>&nbsp;</div>
<div>I loaded Cells into Lispworks with</div>
<div>&nbsp;</div>
<div>(asdf:oos 'asdf:load-op 'cells)</div>
<div>&nbsp;</div>
<div>I hope that's ok ?<br><br>I tried to run 
hello-world exsmple but I always get:</div>
<div>&nbsp;</div>
<div>badly formed lambda ?</div>
<div>&nbsp;</div>
<div>Is there some simple example where just 
a&nbsp;window opens</div>
<div>(or maybe someone could write it here) 
?</div>
<div>&nbsp;</div>
<div>Thanks</div>
<div>&nbsp;</div>
</div>
Haris Bogdanovich | 24 Jun 2011 15:05
Picon

installation and Glade

Hi.
 
I tried to load "load.lisp" from Lispworks but I get error:
 
Expected a logical pathname word character at "cells.asd"
:start 5.
 
 
Can I use interfaces made with Glade with Cells-gtk ?
 
Thanks
<div>
<div>Hi.</div>
<div>&nbsp;</div>
<div>I tried to load "load.lisp" from Lispworks but I 
get error:</div>
<div>&nbsp;</div>
<div>Expected a logical pathname word character at 
"cells.asd"<br>:start 5.</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Can I use interfaces made with Glade with Cells-gtk 
?</div>
<div>&nbsp;</div>
<div>Thanks</div>
</div>
Kevin Raison | 17 Jun 2011 20:27
Gravatar

memory fault in sbcl with cells-gtk

I installed cells-gtk (sbcl 1.0.49 on Linux x86_64) via quicklisp today
and when trying to run (gtk-test:gtk-demo), I get memory faults:

0> : c-link> query link :listbox cells-store896 nil
CORRUPTION WARNING in SBCL pid 21968(tid 140737353950976):
Memory fault at 56 (pc=0x7ffff1463953, sp=0x7ffff6d5e500)
The integrity of this image is possibly compromised.
Continuing with fingers crossed.
0> : overwriting item #:listbox1465 listbox1465
debugger invoked on a SB-SYS:MEMORY-FAULT-ERROR in thread
#<THREAD "initial thread" RUNNING {1002960EE1}>: Unhandled memory fault
at #x4000000056.

Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [ABORT] Exit debugger, returning to top level.

(SB-SYS:MEMORY-FAULT-ERROR) 0]

Is this a known issue or possibly something with sbcl 1.0.49?  Should I
perhaps be using the newest code on github?

Thanks for any pointers.

-Kevin

Brandon J. Van Every | 8 Apr 2011 16:08
Picon

quicklisp stack overflow, CCL, Windows

When I try to load the quicklisp cells-gtk package using Clozure CL on 
Windows Vista, I get the following error:

1 > (ql:quickload "cells-gtk")
To load "cells-gtk":
   Load 1 ASDF system:
     cells-gtk
; Loading "cells-gtk"
.................................................
 > Error: Stack overflow on temp stack.
 > While executing: CCL::VALUES-SPECIFIER-TYPE, in process listener(1).
 > Type :POP to abort, :R for a list of available restarts.
 > Type :? for other options.
2 >

Cheers,
Brandon Van Every

Frank | 29 Nov 2010 12:05
Picon

cells-gtk, CCL, Windows

Hi there,

I was going to try out cells-gtk but unfortunately it doesn't seem to be 
that straightforward.  My platform is CCL, Windows XP & MinGW.

What I found is that there seem to be several source code repositories 
around.  Well to be honest I'm not sure where to start.  Can somebody 
point me into the right direction?

Thanks
Frank

Jozef M H Dassen | 20 Feb 2010 21:54
Picon
Picon

test-gtk:gtk-demo does not run on sbcl 1.0.35 64 bit


Hi,

I have just installed cells-gtk,  but I can not even get the demo to work. I get the following message:

Calling (gtk-window-set-title #.(SB-SYS:INT-SAP #X006D0580) GTK-Testing)invalid number of arguments: 3

Installation seemed to go flawless, so I was quite optimistic about cells-gtk until I started the demo.

My system is:
Ubuntu 8.0.4 64 bit
SBCL 1.0.35 64 bit, with multithreading.

Cell-GTK version: Ramarren-cells-gtk3-b9d5f66


I am running under CUSP although I get the same error with SBCL in a command window:

Calling (gtk-window-set-title #.(SB-SYS:IN T-SAP #X0069F390) GTK-Testing)
debugger invoked on a SB-INT:SIMPLE-PROGRAM-ERROR in thread #<THREAD
                                                              "initial thread" RUNNING
                                                              {1002ABBE21}>:
  invalid number of arguments: 3


   
I see only two arguments..... Why is the window-set-title call complaining ??

Thanks,  JD
<div><div>
<div>
<br>Hi,<br><br>I have just installed cells-gtk,&nbsp; but I can not even get the demo to work. I get the following message:<br><br>Calling (gtk-window-set-title #.(SB-SYS:INT-SAP #X006D0580) GTK-Testing)invalid number of arguments: 3<br><br>Installation seemed to go flawless, so I was quite optimistic about cells-gtk until I started the demo.<br><br>My system is:<br>Ubuntu 8.0.4 64 bit<br>SBCL 1.0.35 64 bit, with multithreading.<br><br>Cell-GTK version: Ramarren-cells-gtk3-b9d5f66<br><br><br>I am running under CUSP although I get the same error with SBCL in a command window:<br><br>Calling (gtk-window-set-title #.(SB-SYS:IN
 T-SAP #X0069F390) GTK-Testing)<br>debugger invoked on a SB-INT:SIMPLE-PROGRAM-ERROR in thread #&lt;THREAD<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "initial thread" RUNNING<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {1002ABBE21}&gt;:<br>&nbsp; invalid number of arguments: 3<br><br><br>&nbsp; &nbsp; <br>I see only two arguments..... Why is the window-set-title call complaining ??<br><br>Thanks,&nbsp; JD</div>
</div></div>
Martin Kielhorn | 7 Oct 2009 10:36

Fwd: Editable Table



---------- Forwarded message ----------
From: Martin Kielhorn <kielhorn.martin <at> googlemail.com>
Date: 2009/10/7
Subject: Re: [cells-gtk-devel] Editable Table
To: Peter Hildebrandt <peter.hildebrandt <at> gmail.com>




2009/10/7 Peter Hildebrandt <peter.hildebrandt <at> gmail.com>


Hi Martin,

here's the object inspector I wrote:

Thanks for the fast response.
Your code looks interesting. I'll try to make something out of it later.
I have to get rid of the references to obj and net-editor first.

Yesterday I understood the tree-view example and managed to change it,
so that it will only display a table. If an entry isn't parsed as a single-float I draw it red:


(require :asdf)
(require :cells-gtk)

(defpackage :mk
  (:use :cl :cells :cells-gtk))

(in-package :mk)

(defmodel mk-app (gtk-app)
  ()
  (:default-initargs
      :md-name :mk-app
    :width 300
    :height 200

    :kids (c-in nil)))

(init-gtk)
(start-win 'mk-app)

(defmodel node (family)
  ((thickness :accessor thickness
              :initarg :position
              :initform (c-in (coerce (random 100) 'single-float)))

   (curvature :accessor curvature
              :initarg :curvature
              :initform (c-in (coerce (random 100) 'single-float)))))

(defparameter *root*
  (make-instance 'node
                 :md-name :tree
                 :kids (kids-list?
                        (make-kid 'node)
                        (make-kid 'node)
                        (make-kid 'node))))

(def-cells-tree-view node-tree ()
  (thickness :title "Thickness"
             :type :string
             :writer-fn #'(lambda (val) (format t "writer-fn ~a~%" val) (read-from-string val))
             :reader-fn #'(lambda (val) (format t "reader-fn ~a~%" val) (prin1-to-string val))
             :render-fn #'(lambda (node) (if (eql 'single-float (type-of (thickness node)))
                                             '(:editable t :foreground "black")
                                             '(:editable t :foreground "red"))))
  (curvature :title "Curvature"))

(setf
 (kids (find-widget :mk-app))
 (list
  (mk-vbox
   :fm-parent (find-widget :mk-app)
   :kids
   (kids-list?
    (mk-node-tree *root* :expand t :fill t :md-name :tree-1)))))


Regards, Martin

--
Martin Kielhorn
Randall Division of Cell & Molecular Biophysics
King's College London, New Hunt's House
Guy's Campus, London SE1 1UL, U.K.
tel: +44 (0) 207 848 6519,  fax: +44 (0) 207 848 6435



--
Martin Kielhorn
Randall Division of Cell & Molecular Biophysics
King's College London, New Hunt's House
Guy's Campus, London SE1 1UL, U.K.
tel: +44 (0) 207 848 6519,  fax: +44 (0) 207 848 6435
<div>
<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: Martin Kielhorn <span dir="ltr">&lt;<a href="mailto:kielhorn.martin <at> googlemail.com">kielhorn.martin <at> googlemail.com</a>&gt;</span><br>
Date: 2009/10/7<br>Subject: Re: [cells-gtk-devel] Editable Table<br>To: Peter Hildebrandt &lt;<a href="mailto:peter.hildebrandt <at> gmail.com">peter.hildebrandt <at> gmail.com</a>&gt;<br><br><br><br><br><div class="gmail_quote">2009/10/7 Peter Hildebrandt <span dir="ltr">&lt;<a href="mailto:peter.hildebrandt <at> gmail.com" target="_blank">peter.hildebrandt <at> gmail.com</a>&gt;</span><div class="im">
<br><blockquote class="gmail_quote">
<div><br></div>
<div>Hi Martin,</div>
<div><br></div>
<div>here's the object inspector I wrote:</div>
</blockquote>
</div>
</div>
<br>Thanks for the fast response.<br>Your code looks interesting. I'll try to make something out of it later.<br>

I have to get rid of the references to obj and net-editor first.<br><br>Yesterday I understood the tree-view example and managed to change it,<br>so that it will only display a table. If an entry isn't parsed as a single-float I draw it red:<div class="im">
<br><br>(require :asdf)<br>(require :cells-gtk)<br><br>(defpackage :mk<br>
</div>&nbsp; (:use :cl :cells :cells-gtk))<br><br>(in-package :mk)<br><br>(defmodel mk-app (gtk-app)<br>&nbsp; ()<br>&nbsp; (:default-initargs<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :md-name :mk-app<br>

&nbsp;&nbsp;&nbsp; :width 300<br>&nbsp;&nbsp;&nbsp; :height 200<div class="im">
<br>&nbsp;&nbsp;&nbsp; :kids (c-in nil)))<br><br>(init-gtk)<br>
</div>(start-win 'mk-app)<br><br>(defmodel node (family)<br>&nbsp; ((thickness :accessor thickness <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :initarg :position <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :initform (c-in (coerce (random 100) 'single-float)))<div class="im">
<br>
&nbsp;&nbsp; (curvature :accessor curvature <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :initarg :curvature <br>
</div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :initform (c-in (coerce (random 100) 'single-float)))))<br><br>(defparameter *root*≤br>&nbsp; (make-instance 'node<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :md-name :tree<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :kids (kids-list? <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (make-kid 'node)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (make-kid 'node)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (make-kid 'node))))<br><br>(def-cells-tree-view node-tree ()<br>

&nbsp; (thickness :title "Thickness"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :type :string<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :writer-fn #'(lambda (val) (format t "writer-fn ~a~%" val) (read-from-string val))<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :reader-fn #'(lambda (val) (format t "reader-fn ~a~%" val) (prin1-to-string val))<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :render-fn #'(lambda (node) (if (eql 'single-float (type-of (thickness node)))<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '(:editable t :foreground "black")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '(:editable t :foreground "red"))))<br>

&nbsp; (curvature :title "Curvature"))<br><br>(setf <br>&nbsp;(kids (find-widget :mk-app))<br>&nbsp;(list <br>&nbsp; (mk-vbox <br>&nbsp;&nbsp; :fm-parent (find-widget :mk-app)<br>&nbsp;&nbsp; :kids<br>&nbsp;&nbsp; (kids-list? <br>&nbsp;&nbsp;&nbsp; (mk-node-tree *root* :expand t :fill t :md-name :tree-1)))))<div>
<div></div>
<div class="h5">
<br><br>Regards, Martin<br clear="all"><br>-- <br>Martin Kielhorn<br>Randall Division of Cell &amp; Molecular Biophysics<br>King's College London, New Hunt's House<br>Guy's Campus, London SE1 1UL, U.K.<br>tel: +44 (0) 207 848 6519, &nbsp;fax: +44 (0) 207 848 6435<br>
</div>
</div>
</div>
<br><br clear="all"><br>-- <br>Martin Kielhorn<br>Randall Division of Cell &amp; Molecular Biophysics<br>King's College London, New Hunt's House<br>Guy's Campus, London SE1 1UL, U.K.<br>tel: +44 (0) 207 848 6519, &nbsp;fax: +44 (0) 207 848 6435<br>
</div>

Gmane