Discussion:
Mcclim error on SBCL 2.4.8 under 32 bits
(too old to reply)
Bozo User
2024-09-16 17:12:29 UTC
Permalink
Hello. I use SBCL 2.4.8, and everything worked ok,
even quicklisp and fetching mcclim.

But this happens upon loading the demo example
from https://github.com/McCLIM/McCLIM:

* (app:app-main)

debugger invoked on a TYPE-ERROR @37FEDBAF in thread
#<THREAD tid=21824 "main thread" RUNNING {38B2A059}>:
The value
-20
is not of type
(MOD 536870909)
when binding SB-IMPL::REMAINING-REQUEST

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

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

(SB-IMPL::FD-STREAM-READ-N-BYTES #<SB-SYS:FD-STREAM for "socket, peer: /tmp/.X11-unix/X0" {40501F31}> #(1 0 18 0 3 0 0 0 12 0 0 0 ...) #<unused argument> 32 12 T)

What could it be the issue? on theading support:

* *features*
(:QUICKLISP :ASDF3.3 :ASDF3.2 :ASDF3.1 :ASDF3 :ASDF2 :ASDF :OS-UNIX
:NON-BASE-CHARS-EXIST-P :ASDF-UNICODE :X86 :GENCGC :ANSI-CL :COMMON-LISP :ELF
:IEEE-FLOATING-POINT :LINUX :LITTLE-ENDIAN :PACKAGE-LOCAL-NICKNAMES
:SB-CORE-COMPRESSION :SB-LDB :SB-PACKAGE-LOCKS :SB-THREAD :SB-UNICODE :SBCL
:UNIX)
*
Madhu
2024-09-17 17:41:03 UTC
Permalink
Post by Bozo User
Hello. I use SBCL 2.4.8, and everything worked ok,
even quicklisp and fetching mcclim.
But this happens upon loading the demo example
* (app:app-main)
The value
-20
is not of type
(MOD 536870909)
when binding SB-IMPL::REMAINING-REQUEST
Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.
0: [ABORT] Exit debugger, returning to top level.
(SB-IMPL::FD-STREAM-READ-N-BYTES #<SB-SYS:FD-STREAM for "socket, peer: /tmp/.X11-unix/X0" {40501F31}> #(1 0 18 0 3 0 0 0 12 0 0 0 ...) #<unused argument> 32 12 T)
This is in the CLX layer. try running the clx demo to see if it works,
to fix that
Post by Bozo User
* *features*
(:QUICKLISP :ASDF3.3 :ASDF3.2 :ASDF3.1 :ASDF3 :ASDF2 :ASDF :OS-UNIX
:NON-BASE-CHARS-EXIST-P :ASDF-UNICODE :X86 :GENCGC :ANSI-CL :COMMON-LISP :ELF
:IEEE-FLOATING-POINT :LINUX :LITTLE-ENDIAN :PACKAGE-LOCAL-NICKNAMES
:SB-CORE-COMPRESSION :SB-LDB :SB-PACKAGE-LOCKS :SB-THREAD :SB-UNICODE :SBCL
:UNIX)
*
I got the README example working with current sbcl. I'm not using or
quicklisp/asdf and when I do (set-difference *features* *) with your
features, I see these features in my lisp which are not in your lisp,
once mcclim and its dependencies are loaded.

(:64-BIT :X86-64 :ARENA-ALLOCATOR :CLTL2 :MK-DEFSYSTEM :SLYNK
:CLIM-WITHOUT-SWANK :THREAD-SUPPORT ALEXANDRIA::SEQUENCE-EMPTYP
:BORDEAUX-THREADS :CLOSER-MOP :CLIM-MP CLIM-INTERNALS::PACKAGE-LOCKS :CL-PPCRE
:CL-UNICODE :FLEXI-STREAMS :CLX-LITTLE-ENDIAN :CLX :XLIB :CLX-MIT-R4
:CLX-MIT-R5 :CLX-EXT-RENDER :CLX-EXT-RANDR CFFI-SYS::FLAT-NAMESPACE :CFFI
CFFI-FEATURES:UNIX CFFI-FEATURES:X86-64 CFFI-FEATURES:FLAT-NAMESPACE :MMAP
:USE-NO-ZLIB :PDF-BINARY :CL-PDF)


Apparently you are running a 32bit lisp, clx is of course expected to
work with 32bit lisps but the problem is likely there if you are on a
64bit machine, better check try to run the clx demo
usuario
2024-09-25 20:11:15 UTC
Permalink
Post by Madhu
Post by Bozo User
Hello. I use SBCL 2.4.8, and everything worked ok,
even quicklisp and fetching mcclim.
But this happens upon loading the demo example from
* (app:app-main)
The value
-20
is not of type
(MOD 536870909)
when binding SB-IMPL::REMAINING-REQUEST
Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.
0: [ABORT] Exit debugger, returning to top level.
/tmp/.X11-unix/X0" {40501F31}> #(1 0 18 0 3 0 0 0 12 0 0 0 ...)
#<unused argument> 32 12 T)
This is in the CLX layer. try running the clx demo to see if it works,
to fix that
Post by Bozo User
* *features*
(:QUICKLISP :ASDF3.3 :ASDF3.2 :ASDF3.1 :ASDF3 :ASDF2 :ASDF :OS-UNIX
:NON-BASE-CHARS-EXIST-P :ASDF-UNICODE :X86 :GENCGC :ANSI-CL
:COMMON-LISP :ELF :IEEE-FLOATING-POINT :LINUX :LITTLE-ENDIAN
:PACKAGE-LOCAL-NICKNAMES :SB-CORE-COMPRESSION :SB-LDB
:SB-PACKAGE-LOCKS :SB-THREAD :SB-UNICODE :SBCL :UNIX)
*
I got the README example working with current sbcl. I'm not using or
quicklisp/asdf and when I do (set-difference *features* *) with your
features, I see these features in my lisp which are not in your lisp,
once mcclim and its dependencies are loaded.
(:64-BIT :X86-64 :ARENA-ALLOCATOR :CLTL2 :MK-DEFSYSTEM :SLYNK
:CLIM-WITHOUT-SWANK :THREAD-SUPPORT ALEXANDRIA::SEQUENCE-EMPTYP
:BORDEAUX-THREADS :CLOSER-MOP :CLIM-MP CLIM-INTERNALS::PACKAGE-LOCKS
:CL-PPCRE :CL-UNICODE :FLEXI-STREAMS :CLX-LITTLE-ENDIAN :CLX :XLIB
:CLX-MIT-R4 :CLX-MIT-R5 :CLX-EXT-RENDER :CLX-EXT-RANDR
CFFI-SYS::FLAT-NAMESPACE :CFFI CFFI-FEATURES:UNIX CFFI-FEATURES:X86-64
CFFI-FEATURES:FLAT-NAMESPACE :MMAP :USE-NO-ZLIB :PDF-BINARY :CL-PDF)
Apparently you are running a 32bit lisp, clx is of course expected to
work with 32bit lisps but the problem is likely there if you are on a
64bit machine, better check try to run the clx demo
Thanks, I fixed it by downloading both clx and MCClim from GIT.

The last release it's much faster on SBCL and even ECL, making the one
under SBCL almost lagless except for the first run. I tried the MCClim
demo package from Quicklisp.
That under an n270 Atom netbook and a GB of RAM. An astounding change.
Loading...