You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does the code outdated and functions should be gtk-widget-get-allocated-width and gtk-widget-get-allocated-heigh ?
Also, when I run the code, error occurs and the cl-cffi-gtk main thread quits.
PS C:\Users\o> sbcl
This is SBCL 2.0.0, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.
SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
WARNING: the Windows port is fragile, particularly for multithreaded
code. Unfortunately, the development team currently lacks the time
and resources this platform demands.
* (load #P"f:/lisp/gtk_tut.lisp")
To load "cl-cffi-gtk":
Load 1 ASDF system:
cl-cffi-gtk
; Loading "cl-cffi-gtk"
.................
T
* leave event 'configure-event'
(sbcl.exe:11956): Gtk-WARNING **: drawing failure for widget 'GtkFrame': cairo_restore() without matching cairo_save()
(sbcl.exe:11956): Gtk-WARNING **: drawing failure for widget 'GtkWindow': cairo_restore() without matching cairo_save()
debugger invoked on a SB-SYS:MEMORY-FAULT-ERROR in thread
#<THREAD "cl-cffi-gtk main thread" RUNNING {10066DD4B3}>:
Unhandled memory fault at #x20473BE38.
The current thread is not at the foreground,
SB-THREAD:RELEASE-FOREGROUND has to be called in #<SB-THREAD:THREAD "main thread" RUNNING {10010B0523}>
for this thread to enter the debugger.
(sb-thread:release-foreground)
0Resuming thread #<THREAD "cl-cffi-gtk main thread" RUNNING {10066DD4B3}>
Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.
restarts (invokable by number or by possibly-abbreviated name):
0: [ABORT] abort thread
(#<THREAD "cl-cffi-gtk main thread" RUNNING {10066DD4B3}>)
(SB-KERNEL:HANDLE-WIN32-EXCEPTION #.(SB-SYS:INT-SAP #X040CDE60) #.(SB-SYS:INT-SAP #X040CE6F0))
0] 0
Resuming thread #<THREAD "main thread" RUNNING {10010B0523}>
* 3
3
*
Solution is like you say to not use the default remote quicklisp upstream. Instead, clone this repo locally into a place where quicklisp can find it and the correct code that is consistent with the tutorial will be loaded.
Does the code outdated and functions should be
gtk-widget-get-allocated-width
andgtk-widget-get-allocated-heigh
?Also, when I run the code, error occurs and the
cl-cffi-gtk main thread
quits.Below is the system info:
BTW, it's really an excellent tutorial and library,
Thanks for your work!
gtk_tut.lisp.txt
The text was updated successfully, but these errors were encountered: