jimmy brisson | 11 Aug 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
Haris Bogdanovich | 10 Jul 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
Ramarren | 9 Jul 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 14:46
Picon

compiling gtk on windows

Hi.
 
Do I have to compile gtk+ on Windows (msys, mingw)
to use cells gtk ?
 
Thanks
Haris Bogdanovich | 2 Jul 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
 
Haris Bogdanovich | 24 Jun 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
Kevin Raison | 17 Jun 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

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 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 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
Martin Kielhorn | 7 Oct 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

Gmane