[racket] Racket 5.1: "bitmap scheme-box.jpg failed to load" error

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Tue Feb 15 21:30:55 EST 2011

At Tue, 15 Feb 2011 20:38:36 -0500, Eric Bélanger wrote:
> $ drracket
> Error invoking tool
> #<path:/usr/lib/racket/collects/stepper>;("stepper+xml-tool.ss")
> 
> xml-box: bitmap scheme-box.jpg failed to load
> 
>  === context ===
> /usr/lib/racket/collects/drracket/private/tools-drs.rkt:96:0: invoke-drs-tool
> /usr/lib/racket/collects/racket/private/map.rkt:50:17: loop
> /usr/lib/racket/collects/drracket/private/tools.rkt:70:0: load/invoke-all-tools
> /usr/lib/racket/collects/drracket/tool-lib.rkt: [running body]
> /usr/lib/racket/collects/drracket/private/drracket-normal.rkt: [running body]
> /usr/lib/racket/collects/drracket/drracket.rkt: [running body]
> 
> In another thread on the dev mailing list[1], it seems that this kind
> of error is caused by jpeg.rkt not supporting the current libjpeg
> version.  My libjpeg version is libjpeg 8.3.0 (i.e. JPEG_LIB_VERSION
> is 80). Could it be the same issue?

JPEG_LIB_VERSION 80 should be supported, but you're right that the
error looks like a version mismatch.

If you run plain `racket' and try

 > (require racket/draw)
 > (read-bitmap (collection-file-path "scheme-box.jpg" "icons"))

do you get a more useful error message?




Posted on the users mailing list.