GithubHelp home page GithubHelp logo

r-cade's Introduction

Racket Cade (R-cade)

The R-cade package is a very simple game engine for the Racket programming language with a few, specific goals in mind:

  • Designed for kids; doing simple things is simple
  • No external assets; all rendering, sound, and music is code
  • Retro; it's intended to teach some low-level fundamentals

If you're interested, head over to the R-cade website to learn more!


Breakout! Flappy

r-cade's People

Contributors

grazhero avatar massung avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

r-cade's Issues

enum:int->_sfEventType exception

Thrown occasionally when SFML returns a random event type constant not in the enumeration (e.g. 1892068352 / #x70c6ac00). Need to update the event handling to catch this case and skip the event.

No display output after pre-setup.

I've run into an issue on a RockPi 4b board.
After flashing the latest release onto a 16GB EMMC and booting the RockPi with it it's taking a while until the screen turns on for a few seconds.
It states there that some setup has been done and the device will be restarted.
On second boot i don't get any screen at all. Display stays off and i've waited some 10 minutes. The red LED indicating drive activity long stopped blinking.

Then i connected serial console to CoolTerm and inspected the output. It ends at system login prompt where i can't find passwords for.

`R-CADE 4K RETRO GAMING MEDIA CENTER SOLUTION

RCADE login:`

I'll share the output if this helps:
rcade-init.txt

How to create a standalone executable for r-cade?

Hello!

I was wondering how I could create a distribution with raco and r-cade. I tried something like

raco exe --gui main.rkt
then
raco distribute maindist main.app

it produced a directory called maindist with main.app inside, but when I tried to give it to a friend, they ran it and nothing happened. Just using the tetris music tutorial program as an example. I'm wondering if there are any special instructions for creating a distribution for r-cade that I'm missing? I usually just went into DrRacket to make these but I'm using the cli more for this library.

example games don't all run

I spotted the programs in the examples/ directory and wanted to try them out. This works:

cd examples
racket columns.rkt

This doesn't:

racket defender.rkt

It simply outputs:

AL lib: (EE) alc_cleanup: 1 device not closed

...And halts. Googling, I gather that message is harmless, but why doesn't anything happen?

This is the case for most of the examples. Only columns and invaders work...

Possibly I missed something in the documentation, but so far I can't see anything which mentions anything special about how these examples should be run.

Inspecting the code, the answer is apparently trivial - those games which work, invoke run, and those which don't, wrap it in a function play (which doesn't get invoked).

This seems surprisingly obvious, so I'd like to check I'm not missing something before trying to patch this?

p.s. Thanks for writing this, it seems exactly what I was looking for as a platform to (maybe) get my children interested in programming.

DrRacket crash on Mac OS X

  • OS: Mac OS X 10.13.6
  • Version: DrRacket 7.5
  • csfml: stable 2.5 (bottled), HEAD
  • sfml: stable 2.5.1 (bottled), HEAD
  • r-cade: 75dff7a

When executing this program, drracket crashes:

#lang racket

(require r-cade)

(define (game-loop)
  (cls)
  (text 2 2 (mouse-x))
  (if (btn-mouse)
      (text 2 20 "CLICK")
      #f))

(run game-loop 128 128)

Broken Visuals With Racket 8.1 cs

Description: Since the 8.1 cs version, running any example gives broken visuals.

Screenshots:
Screenshot from 2021-05-23 19-31-39
Screenshot from 2021-05-23 19-40-16

|| || ||\ || || \ // CPU: Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz
|| || ||\|| || )X( DESKTOP: GNOME
\_// || || || // \ DEVICE: HP Notebook
DISTRO: Fedora 34 (Workstation Edition)
EDITOR: N/A (Could Not Read $Editor, Make Sure It Is Set)
KERNEL: 5.11.20-300.fc34.x86_64
PKGS: DNF
MEMORY: 3816MB
SHELL: NU
UPTIME: 4d 0h 9m

CSFML 2.6.0 doesn't export sfTexture_setSrgb

TLDR; Removing

(define-sfml sfTexture_setSrgb
  (_fun _sfTexture* _bool -> _void))

from graphics.rkt helps

I was trying to run the Hello world from the tutorials page on Windows and faced this error.

ffi-obj: could not find export from foreign library
  name: sfTexture_setSrgb
  library: csfml-graphics-2.dll
  system error: The specified procedure could not be found.; win_err=127
  context...:
   C:\Program Files\Racket\collects\ffi\unsafe.rkt:258:20
   C:\Program Files\Racket\collects\ffi\unsafe.rkt:252:2: get-ffi-obj*
   body of "C:\Users\lv\AppData\Roaming\Racket\8.12\pkgs\csfml\graphics.rkt"

I was trying random different versions of CSFML but couldn't find the one that is fully compatible with the Racket implementation. Just removing sfTexture_setSrgb from the graphics.rkt was enough to run the application with the latest availabel CSFML. Not sure if anyone is up to sort this stuff out.

Full list of CSFML 2.6.0 exports on my machine
        1    0 00132000 sfBlack
        2    1 000E86F8 sfBlendAdd
        3    2 000E86E0 sfBlendAlpha
        4    3 000E8740 sfBlendMax
        5    4 000E8728 sfBlendMin
        6    5 000E8710 sfBlendMultiply
        7    6 000E8758 sfBlendNone
        8    7 00132010 sfBlue
        9    8 00001970 sfCircleShape_copy
       10    9 00001B70 sfCircleShape_create
       11    A 00001BC0 sfCircleShape_destroy
       12    B 00001BF0 sfCircleShape_getFillColor
       13    C 00001C30 sfCircleShape_getGlobalBounds
       14    D 00001C70 sfCircleShape_getInverseTransform
       15    E 00001D50 sfCircleShape_getLocalBounds
       16    F 00001D90 sfCircleShape_getOrigin
       17   10 00001DC0 sfCircleShape_getOutlineColor
       18   11 00001E00 sfCircleShape_getOutlineThickness
       19   12 00001E10 sfCircleShape_getPoint
       20   13 00001E40 sfCircleShape_getPointCount
       21   14 00001E50 sfCircleShape_getPosition
       22   15 00001E80 sfCircleShape_getRadius
       23   16 00001E90 sfCircleShape_getRotation
       24   17 00001EA0 sfCircleShape_getScale
       25   18 00001ED0 sfCircleShape_getTexture
       26   19 00001EE0 sfCircleShape_getTextureRect
       27   1A 00001F30 sfCircleShape_getTransform
       28   1B 00002010 sfCircleShape_move
       29   1C 00002040 sfCircleShape_rotate
       30   1D 00002050 sfCircleShape_scale
       31   1E 00002080 sfCircleShape_setFillColor
       32   1F 000020C0 sfCircleShape_setOrigin
       33   20 000020F0 sfCircleShape_setOutlineColor
       34   21 00002130 sfCircleShape_setOutlineThickness
       35   22 00002140 sfCircleShape_setPointCount
       36   23 00002150 sfCircleShape_setPosition
       37   24 00002180 sfCircleShape_setRadius
       38   25 00002190 sfCircleShape_setRotation
       39   26 000021A0 sfCircleShape_setScale
       40   27 000021D0 sfCircleShape_setTexture
       41   28 00002210 sfCircleShape_setTextureRect
       42   29 00002240 sfColor_add
       43   2A 000022D0 sfColor_fromInteger
       44   2B 00002300 sfColor_fromRGB
       45   2C 00002320 sfColor_fromRGBA
       46   2D 00002340 sfColor_modulate
       47   2E 000023E0 sfColor_subtract
       48   2F 000022D0 sfColor_toInteger
       49   30 000027D0 sfConvexShape_copy
       50   31 00002880 sfConvexShape_create
       51   32 000028C0 sfConvexShape_destroy
       52   33 00001BF0 sfConvexShape_getFillColor
       53   34 00001C30 sfConvexShape_getGlobalBounds
       54   35 000028F0 sfConvexShape_getInverseTransform
       55   36 00001D50 sfConvexShape_getLocalBounds
       56   37 00001D90 sfConvexShape_getOrigin
       57   38 00001DC0 sfConvexShape_getOutlineColor
       58   39 00001E00 sfConvexShape_getOutlineThickness
       59   3A 00001E10 sfConvexShape_getPoint
       60   3B 00001E40 sfConvexShape_getPointCount
       61   3C 00001E50 sfConvexShape_getPosition
       62   3D 00001E90 sfConvexShape_getRotation
       63   3E 00001EA0 sfConvexShape_getScale
       64   3F 000029D0 sfConvexShape_getTexture
       65   40 00001EE0 sfConvexShape_getTextureRect
       66   41 000029E0 sfConvexShape_getTransform
       67   42 00002010 sfConvexShape_move
       68   43 00002040 sfConvexShape_rotate
       69   44 00002050 sfConvexShape_scale
       70   45 00002080 sfConvexShape_setFillColor
       71   46 000020C0 sfConvexShape_setOrigin
       72   47 000020F0 sfConvexShape_setOutlineColor
       73   48 00002130 sfConvexShape_setOutlineThickness
       74   49 00002AC0 sfConvexShape_setPoint
       75   4A 00002AF0 sfConvexShape_setPointCount
       76   4B 00002150 sfConvexShape_setPosition
       77   4C 00002190 sfConvexShape_setRotation
       78   4D 000021A0 sfConvexShape_setScale
       79   4E 00002B00 sfConvexShape_setTexture
       80   4F 00002210 sfConvexShape_setTextureRect
       81   50 0013201C sfCyan
       82   51 00004190 sfFloatRect_contains
       83   52 000041E0 sfFloatRect_getPosition
       84   53 00004200 sfFloatRect_getSize
       85   54 00004220 sfFloatRect_intersects
       86   55 00003330 sfFont_copy
       87   56 00003490 sfFont_createFromFile
       88   57 000035C0 sfFont_createFromMemory
       89   58 00003680 sfFont_createFromStream
       90   59 00003750 sfFont_destroy
       91   5A 000037C0 sfFont_getBoldKerning
       92   5B 000037E0 sfFont_getGlyph
       93   5C 000038A0 sfFont_getInfo
       94   5D 000038C0 sfFont_getKerning
       95   5E 000038E0 sfFont_getLineSpacing
       96   5F 000038F0 sfFont_getTexture
       97   60 00003950 sfFont_getUnderlinePosition
       98   61 00003960 sfFont_getUnderlineThickness
       99   62 00003970 sfFont_isSmooth
      100   63 00003990 sfFont_setSmooth
      101   64 0013200C sfGreen
      102   65 000039A0 sfImage_copy
      103   66 00003AB0 sfImage_copyImage
      104   67 00003B00 sfImage_create
      105   68 00003B70 sfImage_createFromColor
      106   69 00003BF0 sfImage_createFromFile
      107   6A 00003CF0 sfImage_createFromMemory
      108   6B 00003D80 sfImage_createFromPixels
      109   6C 00003DF0 sfImage_createFromStream
      110   6D 00003E90 sfImage_createMaskFromColor
      111   6E 00003EE0 sfImage_destroy
      112   6F 00003F10 sfImage_flipHorizontally
      113   70 00003F20 sfImage_flipVertically
      114   71 00003F30 sfImage_getPixel
      115   72 00003F70 sfImage_getPixelsPtr
      116   73 00003F80 sfImage_getSize
      117   74 00003FB0 sfImage_saveToFile
      118   75 00004060 sfImage_saveToMemory
      119   76 00004130 sfImage_setPixel
      120   77 000043F0 sfIntRect_contains
      121   78 00004450 sfIntRect_getPosition
      122   79 00004460 sfIntRect_getSize
      123   7A 00004480 sfIntRect_intersects
      124   7B 00132018 sfMagenta
      125   7C 00005810 sfMouse_getPositionRenderWindow
      126   7D 00005850 sfMouse_setPositionRenderWindow
      127   7E 00004620 sfRectangleShape_copy
      128   7F 00004820 sfRectangleShape_create
      129   80 00004860 sfRectangleShape_destroy
      130   81 00001BF0 sfRectangleShape_getFillColor
      131   82 00001C30 sfRectangleShape_getGlobalBounds
      132   83 00004890 sfRectangleShape_getInverseTransform
      133   84 00001D50 sfRectangleShape_getLocalBounds
      134   85 00001D90 sfRectangleShape_getOrigin
      135   86 00001DC0 sfRectangleShape_getOutlineColor
      136   87 00001E00 sfRectangleShape_getOutlineThickness
      137   88 00001E10 sfRectangleShape_getPoint
      138   89 00001E40 sfRectangleShape_getPointCount
      139   8A 00001E50 sfRectangleShape_getPosition
      140   8B 00001E90 sfRectangleShape_getRotation
      141   8C 00001EA0 sfRectangleShape_getScale
      142   8D 00004970 sfRectangleShape_getSize
      143   8E 00004990 sfRectangleShape_getTexture
      144   8F 00001EE0 sfRectangleShape_getTextureRect
      145   90 000049A0 sfRectangleShape_getTransform
      146   91 00002010 sfRectangleShape_move
      147   92 00002040 sfRectangleShape_rotate
      148   93 00002050 sfRectangleShape_scale
      149   94 00002080 sfRectangleShape_setFillColor
      150   95 000020C0 sfRectangleShape_setOrigin
      151   96 000020F0 sfRectangleShape_setOutlineColor
      152   97 00002130 sfRectangleShape_setOutlineThickness
      153   98 00002150 sfRectangleShape_setPosition
      154   99 00002190 sfRectangleShape_setRotation
      155   9A 000021A0 sfRectangleShape_setScale
      156   9B 00004A80 sfRectangleShape_setSize
      157   9C 00004AB0 sfRectangleShape_setTexture
      158   9D 00002210 sfRectangleShape_setTextureRect
      159   9E 00132008 sfRed
      160   9F 00004AF0 sfRenderStates_default
      161   A0 00004C60 sfRenderTexture_clear
      162   A1 00004CA0 sfRenderTexture_create
      163   A2 00004E40 sfRenderTexture_createWithSettings
      164   A3 00005030 sfRenderTexture_destroy
      165   A4 000050B0 sfRenderTexture_display
      166   A5 000050C0 sfRenderTexture_drawCircleShape
      167   A6 000050C0 sfRenderTexture_drawConvexShape
      168   A7 00005130 sfRenderTexture_drawPrimitives
      169   A8 000050C0 sfRenderTexture_drawRectangleShape
      170   A9 000050C0 sfRenderTexture_drawShape
      171   AA 000050C0 sfRenderTexture_drawSprite
      172   AB 000050C0 sfRenderTexture_drawText
      173   AC 000050C0 sfRenderTexture_drawVertexArray
      174   AD 000051A0 sfRenderTexture_drawVertexBuffer
      175   AE 00005210 sfRenderTexture_drawVertexBufferRange
      176   AF 00005280 sfRenderTexture_generateMipmap
      177   B0 000052A0 sfRenderTexture_getDefaultView
      178   B1 000052B0 sfRenderTexture_getMaximumAntialiasingLevel
      179   B2 000052C0 sfRenderTexture_getSize
      180   B3 000052F0 sfRenderTexture_getTexture
      181   B4 00005300 sfRenderTexture_getView
      182   B5 00005310 sfRenderTexture_getViewport
      183   B6 00005360 sfRenderTexture_isRepeated
      184   B7 00005380 sfRenderTexture_isSmooth
      185   B8 000053A0 sfRenderTexture_isSrgb
      186   B9 000053C0 sfRenderTexture_mapCoordsToPixel
      187   BA 00005420 sfRenderTexture_mapPixelToCoords
      188   BB 00005480 sfRenderTexture_popGLStates
      189   BC 00005490 sfRenderTexture_pushGLStates
      190   BD 000054A0 sfRenderTexture_resetGLStates
      191   BE 000054B0 sfRenderTexture_setActive
      192   BF 000054D0 sfRenderTexture_setRepeated
      193   C0 000054E0 sfRenderTexture_setSmooth
      194   C1 000054F0 sfRenderTexture_setView
      195   C2 00005890 sfRenderWindow_capture
      196   C3 00005910 sfRenderWindow_clear
      197   C4 00005950 sfRenderWindow_close
      198   C5 00005960 sfRenderWindow_create
      199   C6 00005C00 sfRenderWindow_createFromHandle
      200   C7 00005DC0 sfRenderWindow_createUnicode
      201   C8 00006020 sfRenderWindow_destroy
      202   C9 00006050 sfRenderWindow_display
      203   CA 00006060 sfRenderWindow_drawCircleShape
      204   CB 00006060 sfRenderWindow_drawConvexShape
      205   CC 000060D0 sfRenderWindow_drawPrimitives
      206   CD 00006060 sfRenderWindow_drawRectangleShape
      207   CE 00006060 sfRenderWindow_drawShape
      208   CF 00006060 sfRenderWindow_drawSprite
      209   D0 00006060 sfRenderWindow_drawText
      210   D1 00006060 sfRenderWindow_drawVertexArray
      211   D2 00006140 sfRenderWindow_drawVertexBuffer
      212   D3 000061B0 sfRenderWindow_drawVertexBufferRange
      213   D4 000052A0 sfRenderWindow_getDefaultView
      214   D5 00006220 sfRenderWindow_getPosition
      215   D6 00006250 sfRenderWindow_getSettings
      216   D7 000062B0 sfRenderWindow_getSize
      217   D8 000062E0 sfRenderWindow_getSystemHandle
      218   D9 00005300 sfRenderWindow_getView
      219   DA 000062F0 sfRenderWindow_getViewport
      220   DB 00006340 sfRenderWindow_hasFocus
      221   DC 00006360 sfRenderWindow_isOpen
      222   DD 00006380 sfRenderWindow_isSrgb
      223   DE 000063A0 sfRenderWindow_mapCoordsToPixel
      224   DF 00006410 sfRenderWindow_mapPixelToCoords
      225   E0 00006470 sfRenderWindow_pollEvent
      226   E1 000064B0 sfRenderWindow_popGLStates
      227   E2 000064C0 sfRenderWindow_pushGLStates
      228   E3 000064D0 sfRenderWindow_requestFocus
      229   E4 000064E0 sfRenderWindow_resetGLStates
      230   E5 000064F0 sfRenderWindow_setActive
      231   E6 00006510 sfRenderWindow_setFramerateLimit
      232   E7 00006520 sfRenderWindow_setIcon
      233   E8 00006530 sfRenderWindow_setJoystickThreshold
      234   E9 00006540 sfRenderWindow_setKeyRepeatEnabled
      235   EA 00006550 sfRenderWindow_setMouseCursor
      236   EB 00006560 sfRenderWindow_setMouseCursorGrabbed
      237   EC 00006570 sfRenderWindow_setMouseCursorVisible
      238   ED 00006580 sfRenderWindow_setPosition
      239   EE 000065A0 sfRenderWindow_setSize
      240   EF 000065C0 sfRenderWindow_setTitle
      241   F0 000066B0 sfRenderWindow_setUnicodeTitle
      242   F1 00006740 sfRenderWindow_setVerticalSyncEnabled
      243   F2 00006750 sfRenderWindow_setView
      244   F3 000067F0 sfRenderWindow_setVisible
      245   F4 00006800 sfRenderWindow_waitEvent
      246   F5 00006890 sfShader_bind
      247   F6 000068A0 sfShader_createFromFile
      248   F7 00006D70 sfShader_createFromMemory
      249   F8 00007240 sfShader_createFromStream
      250   F9 00007430 sfShader_destroy
      251   FA 00007460 sfShader_getNativeHandle
      252   FB 00007470 sfShader_isAvailable
      253   FC 00007490 sfShader_isGeometryAvailable
      254   FD 000074B0 sfShader_setBoolUniform
      255   FE 00007570 sfShader_setBvec2Uniform
      256   FF 00007640 sfShader_setBvec3Uniform
      257  100 00007720 sfShader_setBvec4Uniform
      258  101 00007800 sfShader_setColorParameter
      259  102 000078E0 sfShader_setColorUniform
      260  103 00007960 sfShader_setCurrentTextureParameter
      261  104 00007960 sfShader_setCurrentTextureUniform
      262  105 00007A10 sfShader_setFloat2Parameter
      263  106 00007AE0 sfShader_setFloat3Parameter
      264  107 00007BC0 sfShader_setFloat4Parameter
      265  108 00007CB0 sfShader_setFloatParameter
      266  109 00007CB0 sfShader_setFloatUniform
      267  10A 00007D70 sfShader_setFloatUniformArray
      268  10B 00007E30 sfShader_setIntColorUniform
      269  10C 00007E70 sfShader_setIntUniform
      270  10D 00007F30 sfShader_setIvec2Uniform
      271  10E 00008000 sfShader_setIvec3Uniform
      272  10F 000080E0 sfShader_setIvec4Uniform
      273  110 000081C0 sfShader_setMat3Uniform
      274  111 000082A0 sfShader_setMat3UniformArray
      275  112 00008360 sfShader_setMat4Uniform
      276  113 00008440 sfShader_setMat4UniformArray
      277  114 00008500 sfShader_setTextureParameter
      278  115 000085C0 sfShader_setTextureUniform
      279  116 00008680 sfShader_setTransformParameter
      280  117 000087A0 sfShader_setVec2Uniform
      281  118 00008880 sfShader_setVec2UniformArray
      282  119 00008940 sfShader_setVec3Uniform
      283  11A 00008A20 sfShader_setVec3UniformArray
      284  11B 00008AE0 sfShader_setVec4Uniform
      285  11C 00008BB0 sfShader_setVec4UniformArray
      286  11D 00008C70 sfShader_setVector2Parameter
      287  11E 00008D50 sfShader_setVector3Parameter
      288  11F 00008EE0 sfShape_create
      289  120 00008F60 sfShape_destroy
      290  121 00001BF0 sfShape_getFillColor
      291  122 00001C30 sfShape_getGlobalBounds
      292  123 000028F0 sfShape_getInverseTransform
      293  124 00001D50 sfShape_getLocalBounds
      294  125 00001D90 sfShape_getOrigin
      295  126 00001DC0 sfShape_getOutlineColor
      296  127 00001E00 sfShape_getOutlineThickness
      297  128 00001E10 sfShape_getPoint
      298  129 00001E40 sfShape_getPointCount
      299  12A 00001E50 sfShape_getPosition
      300  12B 00001E90 sfShape_getRotation
      301  12C 00001EA0 sfShape_getScale
      302  12D 000029D0 sfShape_getTexture
      303  12E 00001EE0 sfShape_getTextureRect
      304  12F 000029E0 sfShape_getTransform
      305  130 00002010 sfShape_move
      306  131 00002040 sfShape_rotate
      307  132 00002050 sfShape_scale
      308  133 00002080 sfShape_setFillColor
      309  134 000020C0 sfShape_setOrigin
      310  135 000020F0 sfShape_setOutlineColor
      311  136 00002130 sfShape_setOutlineThickness
      312  137 00002150 sfShape_setPosition
      313  138 00002190 sfShape_setRotation
      314  139 000021A0 sfShape_setScale
      315  13A 00002B00 sfShape_setTexture
      316  13B 00002210 sfShape_setTextureRect
      317  13C 00008F90 sfShape_update
      318  13D 00009000 sfSprite_copy
      319  13E 000091B0 sfSprite_create
      320  13F 000091F0 sfSprite_destroy
      321  140 00009230 sfSprite_getColor
      322  141 00009270 sfSprite_getGlobalBounds
      323  142 000092B0 sfSprite_getInverseTransform
      324  143 00009390 sfSprite_getLocalBounds
      325  144 00001D90 sfSprite_getOrigin
      326  145 00001E50 sfSprite_getPosition
      327  146 00001E90 sfSprite_getRotation
      328  147 00001EA0 sfSprite_getScale
      329  148 000093D0 sfSprite_getTexture
      330  149 000093E0 sfSprite_getTextureRect
      331  14A 00009430 sfSprite_getTransform
      332  14B 00002010 sfSprite_move
      333  14C 00002040 sfSprite_rotate
      334  14D 00002050 sfSprite_scale
      335  14E 00009510 sfSprite_setColor
      336  14F 000020C0 sfSprite_setOrigin
      337  150 00002150 sfSprite_setPosition
      338  151 00002190 sfSprite_setRotation
      339  152 000021A0 sfSprite_setScale
      340  153 00009550 sfSprite_setTexture
      341  154 00009590 sfSprite_setTextureRect
      342  155 000097D0 sfText_copy
      343  156 00009A00 sfText_create
      344  157 00009A70 sfText_destroy
      345  158 00009B50 sfText_findCharacterPos
      346  159 00009B80 sfText_getCharacterSize
      347  15A 00009B90 sfText_getColor
      348  15B 00009B90 sfText_getFillColor
      349  15C 00009BD0 sfText_getFont
      350  15D 00009BE0 sfText_getGlobalBounds
      351  15E 00009C20 sfText_getInverseTransform
      352  15F 00009D00 sfText_getLetterSpacing
      353  160 00009D10 sfText_getLineSpacing
      354  161 00009D20 sfText_getLocalBounds
      355  162 00001D90 sfText_getOrigin
      356  163 00009D60 sfText_getOutlineColor
      357  164 00009DA0 sfText_getOutlineThickness
      358  165 00001E50 sfText_getPosition
      359  166 00001E90 sfText_getRotation
      360  167 00001EA0 sfText_getScale
      361  168 00009DB0 sfText_getString
      362  169 00009F10 sfText_getStyle
      363  16A 00009F20 sfText_getTransform
      364  16B 0000A000 sfText_getUnicodeString
      365  16C 00002010 sfText_move
      366  16D 00002040 sfText_rotate
      367  16E 00002050 sfText_scale
      368  16F 0000A020 sfText_setCharacterSize
      369  170 0000A030 sfText_setColor
      370  171 0000A030 sfText_setFillColor
      371  172 0000A070 sfText_setFont
      372  173 0000A0A0 sfText_setLetterSpacing
      373  174 0000A0B0 sfText_setLineSpacing
      374  175 000020C0 sfText_setOrigin
      375  176 0000A0C0 sfText_setOutlineColor
      376  177 0000A100 sfText_setOutlineThickness
      377  178 00002150 sfText_setPosition
      378  179 00002190 sfText_setRotation
      379  17A 000021A0 sfText_setScale
      380  17B 0000A110 sfText_setString
      381  17C 0000A200 sfText_setStyle
      382  17D 0000A210 sfText_setUnicodeString
      383  17E 0000A2A0 sfTexture_bind
      384  17F 0000A2C0 sfTexture_copy
      385  180 0000A340 sfTexture_copyToImage
      386  181 0000A3C0 sfTexture_create
      387  182 0000A480 sfTexture_createFromFile
      388  183 0000A5F0 sfTexture_createFromImage
      389  184 0000A6E0 sfTexture_createFromMemory
      390  185 0000A7D0 sfTexture_createFromStream
      391  186 0000A8E0 sfTexture_createSrgbFromFile
      392  187 0000AA60 sfTexture_createSrgbFromImage
      393  188 0000AB50 sfTexture_createSrgbFromMemory
      394  189 0000AC40 sfTexture_createSrgbFromStream
      395  18A 0000AD60 sfTexture_destroy
      396  18B 0000ADB0 sfTexture_generateMipmap
      397  18C 0000ADD0 sfTexture_getMaximumSize
      398  18D 0000ADE0 sfTexture_getNativeHandle
      399  18E 0000ADF0 sfTexture_getSize
      400  18F 0000AE20 sfTexture_isRepeated
      401  190 0000AE40 sfTexture_isSmooth
      402  191 0000AE60 sfTexture_isSrgb
      403  192 0000AE80 sfTexture_setRepeated
      404  193 0000AE90 sfTexture_setSmooth
      405  194 0000AEA0 sfTexture_swap
      406  195 0000AEB0 sfTexture_updateFromImage
      407  196 0000AEC0 sfTexture_updateFromPixels
      408  197 0000AED0 sfTexture_updateFromRenderWindow
      409  198 0000AEE0 sfTexture_updateFromTexture
      410  199 0000AED0 sfTexture_updateFromWindow
      411  19A 00006840 sfTouch_getPositionRenderWindow
      412  19B 000E8AB0 sfTransform_Identity
      413  19C 0000AEF0 sfTransform_combine
      414  19D 0000B070 sfTransform_equal
      415  19E 0000B0A0 sfTransform_fromMatrix
      416  19F 0000B100 sfTransform_getInverse
      417  1A0 0000B1F0 sfTransform_getMatrix
      418  1A1 0000B2B0 sfTransform_rotate
      419  1A2 0000B3D0 sfTransform_rotateWithCenter
      420  1A3 0000B500 sfTransform_scale
      421  1A4 0000B620 sfTransform_scaleWithCenter
      422  1A5 0000B770 sfTransform_transformPoint
      423  1A6 0000B850 sfTransform_transformRect
      424  1A7 0000B920 sfTransform_translate
      425  1A8 0000BA40 sfTransformable_copy
      426  1A9 0000BB60 sfTransformable_create
      427  1AA 0000BB90 sfTransformable_destroy
      428  1AB 0000BBC0 sfTransformable_getInverseTransform
      429  1AC 0000BC90 sfTransformable_getOrigin
      430  1AD 0000BCB0 sfTransformable_getPosition
      431  1AE 0000BCD0 sfTransformable_getRotation
      432  1AF 0000BCE0 sfTransformable_getScale
      433  1B0 0000BD00 sfTransformable_getTransform
      434  1B1 0000BDD0 sfTransformable_move
      435  1B2 0000BDF0 sfTransformable_rotate
      436  1B3 0000BE00 sfTransformable_scale
      437  1B4 0000BE20 sfTransformable_setOrigin
      438  1B5 0000BE40 sfTransformable_setPosition
      439  1B6 0000BE60 sfTransformable_setRotation
      440  1B7 0000BE70 sfTransformable_setScale
      441  1B8 001342E0 sfTransparent
      442  1B9 0000BE90 sfVertexArray_append
      443  1BA 0000BED0 sfVertexArray_clear
      444  1BB 0000BEE0 sfVertexArray_copy
      445  1BC 0000C040 sfVertexArray_create
      446  1BD 0000C070 sfVertexArray_destroy
      447  1BE 0000C0B0 sfVertexArray_getBounds
      448  1BF 0000C0F0 sfVertexArray_getPrimitiveType
      449  1C0 0000C100 sfVertexArray_getVertex
      450  1C1 0000C110 sfVertexArray_getVertexCount
      451  1C2 0000C120 sfVertexArray_resize
      452  1C3 0000C130 sfVertexArray_setPrimitiveType
      453  1C4 0000C140 sfVertexBuffer_bind
      454  1C5 0000C150 sfVertexBuffer_copy
      455  1C6 0000C1B0 sfVertexBuffer_create
      456  1C7 0000C250 sfVertexBuffer_destroy
      457  1C8 0000C280 sfVertexBuffer_getNativeHandle
      458  1C9 0000C290 sfVertexBuffer_getPrimitiveType
      459  1CA 0000C2A0 sfVertexBuffer_getUsage
      460  1CB 0000C2B0 sfVertexBuffer_getVertexCount
      461  1CC 0000C2C0 sfVertexBuffer_isAvailable
      462  1CD 0000C2E0 sfVertexBuffer_setPrimitiveType
      463  1CE 0000C2F0 sfVertexBuffer_setUsage
      464  1CF 0000C300 sfVertexBuffer_swap
      465  1D0 0000C310 sfVertexBuffer_update
      466  1D1 0000C330 sfVertexBuffer_updateFromVertexBuffer
      467  1D2 0000C350 sfView_copy
      468  1D3 0000C3F0 sfView_create
      469  1D4 0000C420 sfView_createFromRect
      470  1D5 0000C4A0 sfView_destroy
      471  1D6 0000C4B0 sfView_getCenter
      472  1D7 0000C4D0 sfView_getRotation
      473  1D8 0000BC90 sfView_getSize
      474  1D9 0000C4E0 sfView_getViewport
      475  1DA 0000C530 sfView_move
      476  1DB 0000C550 sfView_reset
      477  1DC 0000C570 sfView_rotate
      478  1DD 0000C580 sfView_setCenter
      479  1DE 0000C5A0 sfView_setRotation
      480  1DF 0000C5B0 sfView_setSize
      481  1E0 0000C5D0 sfView_setViewport
      482  1E1 0000C5F0 sfView_zoom
      483  1E2 00132004 sfWhite
      484  1E3 00132014 sfYellow

Couldn't get "sfText_getLineSpacing" from "libcsfml-graphics.so"

Hey there. I'm having trouble getting things working on Arch Linux. I'm running the latest version of Racket from the Arch repositories (7.5). I've followed the setup instructions from the r-cade site.
raco pkg install r-cade
as well as double checking that the racket csfml bindings are installed
raco pkg install csfml
as well as the other dependencies
pacman -Sy csfml openal libsndfile

However, attempting to run the program

#lang racket 
(require r-cade)

restults in the following error

../../usr/share/racket/collects/racket/private/more-scheme.rkt:261:28: ffi-obj: couldn't get "sfText_getLineSpacing" from "libcsfml-graphics.so" (/usr/lib/libcsfml-graphics.so: undefined symbol: sfText_getLineSpacing)

Any idea what might be causing this?
csfml is version 2.5
libsndfile is version 1.0.28
openal is version 1.20.1

Shader errors on mac, but program still runs?

Hello!

REALLY LOVE THIS PROJECT PLEASE DON'T QUIT ON IT!!! 👍 🥇

I wanted to mention this issue I ran across and it keeps popping up on different tutorial programs I've ran. Here's the error:

$ racket main.rkt
Failed to compile fragment shader:
ERROR: 0:1: '*' does not operate on 'vec4' and 'vec2'
ERROR: 0:1: Use of undeclared identifier 'texCoordInPixels'
ERROR: 0:1: Use of undeclared identifier 'centerCoord'
ERROR: 0:1: Use of undeclared identifier 'texCoordInPixels'
ERROR: 0:1: Use of undeclared identifier 'distFromCenter'
ERROR: 0:1: Use of undeclared identifier 'distFromCenter'
ERROR: 0:1: Use of undeclared identifier 'Y'
ERROR: 0:1: Use of undeclared identifier 'Y'
ERROR: 0:1: Use of undeclared identifier 'Y'
ERROR: 0:1: Use of undeclared identifier 'YY'
ERROR: 0:1: Use of undeclared identifier 'YY'
ERROR: 0:1: Use of undeclared identifier 'YY'
ERROR: 0:1: Use of undeclared identifier 'Y'
ERROR: 0:1: Use of undeclared identifier 'centerCoord'
ERROR: 0:1: Use of undeclared identifier 'distFromCenter'
ERROR: 0:1: Use of undeclared identifier 'centerCoord'
ERROR: 0:1: Use of undeclared identifier 'distFromCenter'
ERROR: 0:1: Use of undeclared identifier 'tx'
ERROR: 0:1: Use of undeclared identifier 'ty'
ERROR: 0:1: Use of undeclared identifier '

and that's for the tetris music program

#lang racket

(require r-cade)

;; create a song
(define theme
  (music "E4-B3C4D-CB3A-AC4E-DCB3-C4D-E-C-A3-A-.D4-FA-GFE-CE-DCB3-BC4D-E-C-A3-A-."
         #:tempo 280))

(define (game-loop)
  (text 2 2 "Playing the Tetris theme song.")
  (wait)
  (quit))

(define (start-music)
  (play-music theme))

(run game-loop 128 128 #:init start-music)

I can run the program just fine using the cli racket main.rkt but I still see all that shader nonsense printed to stdout. Just wanted to report it. Running on Mac 10.14.6 with csfml 2.5, openal-soft 1.20.1, and libsndfile 1.0.28 successfully installed via homebrew.

$ racket --version
Welcome to Racket v7.3.

Joystick support

First, thanks for developing this. It seems to match perfectly what I want to do for an (art) project. I wonder though, wouldn't it be nice to expose joystick controls similar to (mouse-x/y)? Maybe something like (joystick-axis axis), (joystick-btn btn)?

Edit: or shorter names, with the ability to select active joystick: (joyaxis [joystick 0] axis) / (joybtn [joystick 0] btn).

Repository lacks documentation

The documentation does live in the repository, which makes offline development difficult. Also having scribble documentation be part of the package allows raco to link it into the main racket documentation which, among other things, makes it searchable alongside the rest of the racket docs.

Windows 10 - 'quotient: contract violation' upon running shortest game

I'm getting an error running the shortest game:

. . ....\Program Files\Racket-7.6.0.18\collects\racket\private\kw.rkt:1393:47: quotient: contract violation
expected: integer?
given: 614.4
argument position: 1st
other arguments...:

I tried with 7.6 and the latest snapshot (7.6.0.18), same error. Same lib version as my other bug reports, different computer. Strangely, bigger games such as Horse Derby run well!

Cheers,

Dexter

sfTexture error after pulling in latest version

Howdy!

r-cade was working great a couple weeks ago and just pulled in the latest version today and am now getting this error when trying to initialize a game, i.e. (play)

; sfTexture*->C: argument is not non-null `sfTexture*' pointer
;   argument: #f
; Context:
;  /Users/ME/Library/Racket/7.5/pkgs/r-cade/game.rkt:114:0 run17
;  /Applications/Racket v7.5/collects/racket/repl.rkt:11:26

this happens on...

  • my own "games" I've made with r-cade
  • your examples/* games
  • even the simplest "hello world" example in the tutorial...
(define (game-loop)
  (cls)
  (text 2 2 (frame)))

(run game-loop 128 128)

This happens both in emacs and in the terminal.

Sorry, I'm an absolute Racket beginner and unfamiliar with the C Libs so thought I'd post this first before digging in more.

My system:

  • 2019 MacBook Pro running 10.14.6
  • OpenGL 4.1
  • csfml 2.5
  • openal-soft 1.20.1
  • libsndfile 1.0.28

Let me know if I can provide any more info

Thanks again for r-cade!!!

Installing R-Cade on Linux (KDE Manjaro and Ubuntu)

So, I've been attempting to install R-Cade on multiple Linux machines, but have found that my attempts have failed up until this point, so I am reaching out for help here. I have successfully installed OpenAL and libsndfile, but I am struggling on CSFML.

Computer Specs
CPU: 8-core AMD Ryzen 7 4800H
GPU: NVIDIA TU116 (GeForce GTX 1660 Ti Mobile)
Ram: 16GB at up to 3200 MT/s
OS: 64-bit system, two attempts on both the latest KDE Ubuntu build and KDE Manjaro 6.5.9-1

Attempts at a solution

  1. I first made use of the instructions on the setup site, including the details found here. After 2 tries on each of Manjaro and Ubuntu, I gave up on that. Note: The results on this site don't seem to load anymore, hiding all of the coding blocks (tested on Firefox only), so I had to get the most recent internet archive version from July.
  2. I then attempted to install the Arch and Ubuntu CSFML packages, including both CSFML Git and CSFML main on arch, and the Ubuntu equivalents.

Summary
Overall, I am now quite stuck. I want to get R-Cade working to build a bit of an educational exercise, but I am struggling to progress.

Can't launch snake game

Hello,

I have install r-cade and wanted to test the example games. I tried to launch snake, but without success, I get:

.../ffi/unsafe.rkt:131:0: ffi-lib: could not load foreign library path: libcsfml-audio.so system error: libcsfml-audio.so: cannot open shared object file: No such file or directory Interactions disabled: racket does not support a REPL (no #%top-interaction)

I have installed r-cade with the needed libraries, using the instructions here https://r-cade.io/setup and here https://pryp.in/blog/12/build-sfml-and-csfml-on-linux.html to install on ubuntu.

Thank you for your help, in advance!

Segfault when closing window

On OS X, racket segfaults when closing the game using the window decoration.
r-cade: c70be09
racket: 7.5

Process:               racket [4015]
Path:                  /Applications/Racket v7.5/*/racket
Identifier:            racket
Version:               0
Code Type:             X86-64 (Native)
Parent Process:        bash [580]
Responsible:           racket [4015]
User ID:               502

Date/Time:             2020-02-08 12:08:26.635 +0100
OS Version:            Mac OS X 10.13.6 (17G9016)
Report Version:        12
Anonymous UUID:        386E78FB-A015-EC1B-6691-D0B43506443B

Sleep/Wake UUID:       D56800F9-B2D0-4826-B851-C8A82C6AFB04

Time Awake Since Boot: 5800 seconds
Time Since Wake:       660 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000072
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Segmentation fault: 11
Termination Reason:    Namespace SIGNAL, Code 0xb
Terminating Process:   exc handler [0]

VM Regions Near 0x72:
--> 
    __TEXT                 000000010a711000-000000010a71a000 [   36K] r-x/rwx SM=COW  /Applications/Racket v7.5/*

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsfml-window.2.5.dylib      	0x0000000111a1ec3e sf::Window::close() + 18
1   Racket                        	0x000000010a9f685c ffi_call_unix64 + 76
2   Racket                        	0x000000010a9f708b ffi_call + 859
3   Racket                        	0x000000010a9f1f4d ffi_do_call + 2221
4   Racket                        	0x000000010a9f1609 ffi_do_call_after_stack_check + 137
5   Racket                        	0x000000010a75b6ae scheme_do_eval + 5518
6   Racket                        	0x000000010a9cec72 call_registered_callback + 146
7   Racket                        	0x000000010a9be55f scheme_run_atexit_closers + 271
8   Racket                        	0x000000010a9bc7d8 scheme_do_close_managed + 1096
9   Racket                        	0x000000010a9bef01 scheme_run_atexit_closers_on_all + 2417
10  libsystem_c.dylib             	0x00007fff5a1b0ef4 __cxa_finalize_ranges + 358
11  libsystem_c.dylib             	0x00007fff5a1b11fe exit + 55
12  Racket                        	0x000000010a7520f9 scheme_immediate_exit + 9
13  racket                        	0x000000010a715010 0x10a711000 + 16400
14  Racket                        	0x000000010a723d08 scheme_main_stack_setup + 344
15  racket                        	0x000000010a712fc4 0x10a711000 + 8132
16  libdyld.dylib                 	0x00007fff5a104015 start + 1

Thread 1:
0   libsystem_kernel.dylib        	0x00007fff5a24b20a mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fff5a24a724 mach_msg + 60
2   Racket                        	0x000000010a9f7fb5 exception_thread + 101
3   libsystem_pthread.dylib       	0x00007fff5a41c661 _pthread_body + 340
4   libsystem_pthread.dylib       	0x00007fff5a41c50d _pthread_start + 377
5   libsystem_pthread.dylib       	0x00007fff5a41bbf9 thread_start + 13

Thread 2:
0   libsystem_kernel.dylib        	0x00007fff5a254d82 __semwait_signal + 10
1   libsystem_c.dylib             	0x00007fff5a1cf724 nanosleep + 199
2   libsystem_c.dylib             	0x00007fff5a1cf618 usleep + 53
3   Racket                        	0x000000010a91d22b green_thread_timer + 43
4   Racket                        	0x000000010a8954a2 mzrt_thread_stub + 82
5   libsystem_pthread.dylib       	0x00007fff5a41c661 _pthread_body + 340
6   libsystem_pthread.dylib       	0x00007fff5a41c50d _pthread_start + 377
7   libsystem_pthread.dylib       	0x00007fff5a41bbf9 thread_start + 13

Thread 3:
0   libsystem_kernel.dylib        	0x00007fff5a25528a __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff5a41c009 _pthread_wqthread + 1035
2   libsystem_pthread.dylib       	0x00007fff5a41bbe9 start_wqthread + 13

Thread 4:
0   libsystem_kernel.dylib        	0x00007fff5a25528a __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff5a41c20e _pthread_wqthread + 1552
2   libsystem_pthread.dylib       	0x00007fff5a41bbe9 start_wqthread + 13

Thread 5:: com.apple.audio.IOThread.client
0   libsystem_kernel.dylib        	0x00007fff5a24b20a mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fff5a24a724 mach_msg + 60
2   com.apple.audio.CoreAudio     	0x00007fff31b7787a HALB_MachPort::SendMessageWithReply(unsigned int, unsigned int, unsigned int, unsigned int, mach_msg_header_t*, bool, unsigned int) + 124
3   com.apple.audio.CoreAudio     	0x00007fff31b777ed HALB_MachPort::SendSimpleMessageWithSimpleReply(unsigned int, unsigned int, int, int&, bool, unsigned int) + 45
4   com.apple.audio.CoreAudio     	0x00007fff31b74859 HALC_ProxyIOContext::IOWorkLoop() + 977
5   com.apple.audio.CoreAudio     	0x00007fff31b742bc HALC_ProxyIOContext::IOThreadEntry(void*) + 128
6   com.apple.audio.CoreAudio     	0x00007fff31b73ffe HALB_IOThread::Entry(void*) + 72
7   libsystem_pthread.dylib       	0x00007fff5a41c661 _pthread_body + 340
8   libsystem_pthread.dylib       	0x00007fff5a41c50d _pthread_start + 377
9   libsystem_pthread.dylib       	0x00007fff5a41bbf9 thread_start + 13

Thread 6:: com.apple.NSEventThread
0   libsystem_kernel.dylib        	0x00007fff5a24b20a mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fff5a24a724 mach_msg + 60
2   com.apple.CoreFoundation      	0x00007fff32129f65 __CFRunLoopServiceMachPort + 341
3   com.apple.CoreFoundation      	0x00007fff321292b7 __CFRunLoopRun + 1783
4   com.apple.CoreFoundation      	0x00007fff32128927 CFRunLoopRunSpecific + 487
5   com.apple.AppKit              	0x00007fff2f7f4fc4 _NSEventThread + 184
6   libsystem_pthread.dylib       	0x00007fff5a41c661 _pthread_body + 340
7   libsystem_pthread.dylib       	0x00007fff5a41c50d _pthread_start + 377
8   libsystem_pthread.dylib       	0x00007fff5a41bbf9 thread_start + 13

Thread 7:
0   libsystem_kernel.dylib        	0x00007fff5a25528a __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff5a41c009 _pthread_wqthread + 1035
2   libsystem_pthread.dylib       	0x00007fff5a41bbe9 start_wqthread + 13

Thread 8:

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x00007ff518d397c0  rcx: 0x0000000000000001  rdx: 0x00007ffee54edb80
  rdi: 0x0000000000000072  rsi: 0x000000011087fbe8  rbp: 0x00007ffee54edb50  rsp: 0x00007ffee54edb40
   r8: 0x00007ffee54edab8   r9: 0x00007ffee54eda98  r10: 0x00007ffee54edab0  r11: 0x000000011199a4da
  r12: 0x0000000000000000  r13: 0x0000000000000001  r14: 0x0000000000000001  r15: 0x000000011199a4da
  rip: 0x0000000111a1ec3e  rfl: 0x0000000000010206  cr2: 0x0000000000000072
  
Logical CPU:     0
Error Code:      0x00000004
Trap Number:     14


Binary Images:
       0x10a711000 -        0x10a719ffb +racket (0) <5BC067FE-21B7-3E74-A97C-176C420ADDC1> /Applications/Racket v7.5/*/racket
       0x10a723000 -        0x10aa4bfff +Racket (0) <C957C00D-5856-3EFF-B60A-5976E546225D> /Applications/Racket v7.5/*/Racket.framework/Versions/7.5_3m/Racket
       0x111833000 -        0x111837ffb +libcsfml-audio.dylib (0) <91236821-4F2E-3E10-A898-2C0274ED145D> /usr/local/lib/libcsfml-audio.dylib
       0x11183f000 -        0x111850fff +libsfml-audio.2.5.dylib (0) <66FD967F-21D8-3167-8D60-D3FA525D5018> /usr/local/opt/sfml/lib/libsfml-audio.2.5.dylib
       0x111860000 -        0x111865fff +libsfml-system.2.5.dylib (0) <903F1475-787A-3325-A793-D1301E8ADB99> /usr/local/opt/sfml/lib/libsfml-system.2.5.dylib
       0x11186e000 -        0x1118e5fff +libvorbisenc.2.dylib (0) <346B6C8D-D8FF-3D3E-8C47-AEA47C0BE159> /usr/local/opt/libvorbis/lib/libvorbisenc.2.dylib
       0x111916000 -        0x11191bffb +libvorbisfile.3.dylib (0) <870D342A-68F8-320A-A219-6237F344A7B9> /usr/local/opt/libvorbis/lib/libvorbisfile.3.dylib
       0x11191f000 -        0x111941fff +libvorbis.0.dylib (0) <17074AE1-B95D-3BBE-A50A-739F32F95413> /usr/local/opt/libvorbis/lib/libvorbis.0.dylib
       0x111946000 -        0x11194affb +libogg.0.dylib (0) <777D0875-A543-3AF9-9368-729EB038160C> /usr/local/opt/libogg/lib/libogg.0.dylib
       0x11194e000 -        0x111977ffb +libFLAC.8.dylib (0) <7E58D5AE-1E9F-38CE-8A65-21DF9B42899E> /usr/local/opt/flac/lib/libFLAC.8.dylib
       0x111994000 -        0x1119a3fff +libcsfml-graphics.dylib (0) <E4465EA4-5F29-3505-BFA3-05C6CCF6E5F7> /usr/local/lib/libcsfml-graphics.dylib
       0x1119b8000 -        0x1119f8ff3 +libsfml-graphics.2.5.dylib (0) <42496BA5-4482-39D4-9ED0-984D995C0A59> /usr/local/opt/sfml/lib/libsfml-graphics.2.5.dylib
       0x111a16000 -        0x111a32ff7 +libsfml-window.2.5.dylib (0) <AB2547EF-E63B-3876-AADA-63FD43D9A750> /usr/local/opt/sfml/lib/libsfml-window.2.5.dylib
       0x111a4a000 -        0x111ac6ffb +libfreetype.6.dylib (0) <36C84A2F-9F4B-3626-986D-55146AD52E48> /usr/local/opt/freetype/lib/libfreetype.6.dylib
       0x111adf000 -        0x111b01fff +libpng16.16.dylib (0) <211A7B4C-219C-3929-A2CF-D796E3A5F40A> /usr/local/opt/libpng/lib/libpng16.16.dylib
       0x111b0b000 -        0x111b11ff7 +libcsfml-network.dylib (0) <36D2B28D-4F42-3373-8492-A99D1D2780E9> /usr/local/lib/libcsfml-network.dylib
       0x111b1a000 -        0x111b2bffb +libsfml-network.2.5.dylib (0) <57E0DA11-84BC-3BE8-9717-C3E70ED29020> /usr/local/opt/sfml/lib/libsfml-network.2.5.dylib
       0x111b3b000 -        0x111b3cfff +libcsfml-system.dylib (0) <1BEF2DE0-8CCC-36CD-8C7E-73BC04E4D9BF> /usr/local/lib/libcsfml-system.dylib
       0x111b3f000 -        0x111b42ff3 +libcsfml-window.dylib (0) <FA5A2497-48D4-3783-BECA-37EF55EBF6FF> /usr/local/lib/libcsfml-window.dylib
       0x111f9a000 -        0x111f9effb  com.apple.audio.AppleHDAHALPlugIn (281.52 - 281.52) <23C7DDE6-A44B-3BE4-B47C-EB3045B267D9> /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn
       0x111fe9000 -        0x112033acf  dyld (551.5) <30B355CB-35BA-3112-AA76-4E46CD45F699> /usr/lib/dyld
       0x114819000 -        0x114b05fff  com.apple.driver.AppleIntelHD3000GraphicsGLDriver (10.4.14 - 10.0.4) <CC47D6DA-32FB-3633-BB42-D90FB608F631> /System/Library/Extensions/AppleIntelHD3000GraphicsGLDriver.bundle/Contents/MacOS/AppleIntelHD3000GraphicsGLDriver
       0x114cd2000 -        0x114e7aff7  com.apple.audio.units.Components (1.14 - 1.14) <D9A7071E-2262-319E-8784-C8159C5AF17C> /System/Library/Components/CoreAudio.component/Contents/MacOS/CoreAudio
    0x7fff2e388000 -     0x7fff2e388fff  com.apple.Accelerate (1.11 - Accelerate 1.11) <2EF00EFE-06E8-3082-85C3-2988B422A19D> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    0x7fff2e389000 -     0x7fff2e3a0ff7  libCGInterfaces.dylib (417.2) <C9175EDD-A2E3-34E9-A72E-1BF895A60DD3> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/Libraries/libCGInterfaces.dylib
    0x7fff2e3a1000 -     0x7fff2eaefffb  com.apple.vImage (8.1 - ???) <56C275C1-459F-37CD-BF29-2E6D81C29E53> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
    0x7fff2eaf0000 -     0x7fff2ec90ff3  libBLAS.dylib (1211.50.2) <93259222-2D94-333D-A1EB-09C6FC4A64B4> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
    0x7fff2ec91000 -     0x7fff2eccbfef  libBNNS.dylib (38.1) <0AAE0109-71D5-3B26-8401-3E62DDF97624> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBNNS.dylib
    0x7fff2eccc000 -     0x7fff2f0a5ff7  libLAPACK.dylib (1211.50.2) <70781D0B-AEAD-33EB-9900-10DC30F37D61> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
    0x7fff2f0a6000 -     0x7fff2f0bcff7  libLinearAlgebra.dylib (1211.50.2) <FB5A35EA-D636-3D69-AB53-B67E1EB8134C> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib
    0x7fff2f0bd000 -     0x7fff2f0c2ff3  libQuadrature.dylib (3) <3D6BF66A-55B2-3692-BAC7-DEB0C676ED29> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libQuadrature.dylib
    0x7fff2f0c3000 -     0x7fff2f143fff  libSparse.dylib (79.50.2) <0DC25CDD-F8C1-3D6E-B472-8B060708424F> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparse.dylib
    0x7fff2f144000 -     0x7fff2f156ff7  libSparseBLAS.dylib (1211.50.2) <994A7D7E-FA3B-3943-A59C-8150B9AF86BE> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib
    0x7fff2f157000 -     0x7fff2f2cafe7  libvDSP.dylib (622.50.5) <4BF310F4-31A3-3DA5-80E4-7F8014AD380B> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
    0x7fff2f2cb000 -     0x7fff2f381fef  libvMisc.dylib (622.50.5) <88143A88-4FDE-35A1-85FE-54FF0C2A9E43> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
    0x7fff2f382000 -     0x7fff2f382fff  com.apple.Accelerate.vecLib (3.11 - vecLib 3.11) <880DEF40-389A-3F56-ACA1-B62A5BC57E59> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
    0x7fff2f676000 -     0x7fff304d4fff  com.apple.AppKit (6.9 - 1561.61.100) <FDF25229-7592-3AFA-8644-3A46727DA3BE> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x7fff30526000 -     0x7fff30526fff  com.apple.ApplicationServices (48 - 50) <0E4AA883-7EFC-36EE-8B8E-E226E2C37965> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
    0x7fff30527000 -     0x7fff3058dfff  com.apple.ApplicationServices.ATS (377 - 445.5) <703CE7E4-426A-35C0-A229-F140F30F5340> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
    0x7fff30626000 -     0x7fff30748fff  libFontParser.dylib (222.1.7) <9C4CEFB4-0F08-3B60-BD50-0120A37F6EA2> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib
    0x7fff30749000 -     0x7fff30793ff7  libFontRegistry.dylib (221.5) <8F68EA59-C8EE-3FA3-BD19-0F1A58441440> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib
    0x7fff30838000 -     0x7fff3086bff7  libTrueTypeScaler.dylib (222.1.7) <E401BD38-5F0E-382F-B4CB-AC6063871C0F> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libTrueTypeScaler.dylib
    0x7fff308d5000 -     0x7fff308d9ff3  com.apple.ColorSyncLegacy (4.13.0 - 1) <A5FB2694-1559-34A8-A3D3-2029F68A63CA> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSyncLegacy.framework/Versions/A/ColorSyncLegacy
    0x7fff30979000 -     0x7fff309cbffb  com.apple.HIServices (1.22 - 625) <78A1FB4F-A39C-3159-B285-600C997335FB> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
    0x7fff309cc000 -     0x7fff309dafff  com.apple.LangAnalysis (1.7.0 - 1.7.0) <B65FF7E6-E9B5-34D8-8CA7-63D415A8A9A6> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
    0x7fff309db000 -     0x7fff30a27fff  com.apple.print.framework.PrintCore (13.4 - 503.2) <B90C67C1-0292-3CEC-885D-F1882CD104BE> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
    0x7fff30a28000 -     0x7fff30a62fff  com.apple.QD (3.12 - 404.2) <38B20AFF-9D54-3B52-A6DC-C0D71380AA5F> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
    0x7fff30a63000 -     0x7fff30a6ffff  com.apple.speech.synthesis.framework (7.8.1 - 7.8.1) <A08DE016-C8F2-3B0E-BD34-15959D13DBF0> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
    0x7fff30a70000 -     0x7fff30cfeff7  com.apple.audio.toolbox.AudioToolbox (1.14 - 1.14) <514DC09A-54F3-3136-9FEF-F090208FBBE5> /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
    0x7fff30d00000 -     0x7fff30d00fff  com.apple.audio.units.AudioUnit (1.14 - 1.14) <294802B9-E24D-34EB-973F-6D2B8E2E86CB> /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
    0x7fff31023000 -     0x7fff313bffff  com.apple.CFNetwork (902.4 - 902.4) <70C21F8D-2A42-320F-9B20-2FBE7D2487B6> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
    0x7fff313d4000 -     0x7fff313d4fff  com.apple.Carbon (158 - 158) <F8B370D9-2103-3276-821D-ACC756167F86> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
    0x7fff313d5000 -     0x7fff313d8ffb  com.apple.CommonPanels (1.2.6 - 98) <2391761C-5CAA-3F68-86B7-50B37927B104> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
    0x7fff313d9000 -     0x7fff316defff  com.apple.HIToolbox (2.1.1 - 911.10) <BF7F9C0E-C732-3FB2-9BBC-362888BDA57B> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
    0x7fff316df000 -     0x7fff316e2ffb  com.apple.help (1.3.8 - 66) <DEBADFA8-C189-3195-B0D6-A1F2DE95882A> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
    0x7fff316e3000 -     0x7fff316e8fff  com.apple.ImageCapture (9.0 - 9.0) <23B4916F-3B43-3DFF-B956-FC390EECA284> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
    0x7fff316e9000 -     0x7fff3177effb  com.apple.ink.framework (10.9 - 221) <5206C8B0-22DA-36C9-998E-846EDB626D5B> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
    0x7fff3177f000 -     0x7fff31799ff7  com.apple.openscripting (1.7 - 174) <1B2A1F9E-5534-3D61-83CA-9199B39E8708> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
    0x7fff317ba000 -     0x7fff317bbfff  com.apple.print.framework.Print (12 - 267) <3682ABFB-2561-3419-847D-02C247F4800D> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
    0x7fff317bc000 -     0x7fff317beff7  com.apple.securityhi (9.0 - 55006) <C1406B8D-7D05-3959-808F-9C82189CF57F> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
    0x7fff317bf000 -     0x7fff317c5fff  com.apple.speech.recognition.framework (6.0.3 - 6.0.3) <2ED8643D-B0C3-3F17-82A2-BBF13E6CBABC> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
    0x7fff318f4000 -     0x7fff319adfff  com.apple.ColorSync (4.13.0 - 3325) <D283C285-447D-3258-A7E4-59532123B8FF> /System/Library/Frameworks/ColorSync.framework/Versions/A/ColorSync
    0x7fff31b3a000 -     0x7fff31bcdff7  com.apple.audio.CoreAudio (4.3.0 - 4.3.0) <EB35D3EC-56EA-33E6-98DC-BDC3A5FA8ACE> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
    0x7fff31c34000 -     0x7fff31c5dffb  com.apple.CoreBluetooth (1.0 - 1) <E1335074-9D07-370E-8440-61C4874BAC56> /System/Library/Frameworks/CoreBluetooth.framework/Versions/A/CoreBluetooth
    0x7fff31c5e000 -     0x7fff31fc2ff3  com.apple.CoreData (120 - 851) <8D605466-8676-3D45-9A4B-8980971551C3> /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
    0x7fff31fc3000 -     0x7fff320a6fff  com.apple.CoreDisplay (99.14 - 99.14) <A1B91ADD-828D-33A0-8A92-CC3F83DF89D0> /System/Library/Frameworks/CoreDisplay.framework/Versions/A/CoreDisplay
    0x7fff320a7000 -     0x7fff32543fff  com.apple.CoreFoundation (6.9 - 1455.12) <D8DF93F5-4558-3B28-8BDF-9739C995D27C> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff32545000 -     0x7fff32b74ff7  com.apple.CoreGraphics (2.0 - 1161.21.3) <90736977-F257-3C9A-B47C-EE03F7AF6068> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
    0x7fff32b76000 -     0x7fff32e65fff  com.apple.CoreImage (13.0.0 - 579.5) <AAE2DFD0-9B0A-3D56-8A3E-C460BAF70394> /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage
    0x7fff3323a000 -     0x7fff3323afff  com.apple.CoreServices (822.37 - 822.37) <3BEBB196-6575-3864-AED0-AC7D861DB693> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x7fff3323b000 -     0x7fff332afffb  com.apple.AE (735.2 - 735.2) <690A6F47-1306-371F-B257-783D8F83EA9E> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
    0x7fff332b0000 -     0x7fff33587fff  com.apple.CoreServices.CarbonCore (1178.4.2 - 1178.4.2) <08AF7B7B-219B-3957-86CE-C96B423C823C> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
    0x7fff33588000 -     0x7fff335bcfff  com.apple.DictionaryServices (1.2 - 284.2) <6505B075-41C3-3C62-A4C3-85CE3F6825CD> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
    0x7fff335bd000 -     0x7fff335c5ffb  com.apple.CoreServices.FSEvents (1239.50.2 - 1239.50.2) <AC3A1A72-92B3-3746-BAED-44F2BB245653> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents
    0x7fff335c6000 -     0x7fff33784ff7  com.apple.LaunchServices (822.37 - 822.37) <6AA93307-220A-3417-BBC2-FE1C0DE0B652> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
    0x7fff33785000 -     0x7fff33835fff  com.apple.Metadata (10.7.0 - 1191.7) <1F7AC682-06A1-33D5-A9B8-0BCD934286E6> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
    0x7fff33836000 -     0x7fff33896fff  com.apple.CoreServices.OSServices (822.37 - 822.37) <4AD2FC98-C6CB-392A-A22F-196A723D7FAE> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
    0x7fff33897000 -     0x7fff33905fff  com.apple.SearchKit (1.4.0 - 1.4.0) <3662545A-B1CF-3079-BDCD-C83855CEFEEE> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
    0x7fff33906000 -     0x7fff3392affb  com.apple.coreservices.SharedFileList (71.21 - 71.21) <1B5228EF-D869-3A50-A373-7F4B0289FADD> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList
    0x7fff33bcb000 -     0x7fff33d1bfff  com.apple.CoreText (352.0 - 578.22) <6129F39D-284D-3BBF-8999-7854AB61C01C> /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText
    0x7fff33d1c000 -     0x7fff33d56fff  com.apple.CoreVideo (1.8 - 0.0) <86CCC036-51BB-3DD1-9601-D93798BCCD0F> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
    0x7fff33d57000 -     0x7fff33de2ff3  com.apple.framework.CoreWLAN (13.0 - 1350.2) <DC9E1B0B-FD96-38A7-A6E0-820CA414AA94> /System/Library/Frameworks/CoreWLAN.framework/Versions/A/CoreWLAN
    0x7fff3405d000 -     0x7fff34062fff  com.apple.DiskArbitration (2.7 - 2.7) <2F628584-8177-3894-92CE-9CA6089B61C6> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x7fff34223000 -     0x7fff345eaffb  com.apple.Foundation (6.9 - 1455.12) <54095045-C829-358F-B8EE-953F670492F5> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x7fff3465b000 -     0x7fff3468bff3  com.apple.GSS (4.0 - 2.0) <FC69A120-3C19-3802-87B4-C29217758143> /System/Library/Frameworks/GSS.framework/Versions/A/GSS
    0x7fff3479d000 -     0x7fff348a1ffb  com.apple.Bluetooth (6.0.7 - 6.0.7f16) <C75C43B6-1936-3E3C-94E6-B568D8CDD233> /System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth
    0x7fff34901000 -     0x7fff3499cfff  com.apple.framework.IOKit (2.0.2 - 1445.71.6) <C68CE7ED-85CA-3D1F-BAA0-908327BEC0DE> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x7fff3499e000 -     0x7fff349a5fff  com.apple.IOSurface (211.15 - 211.15) <9FD406F1-6BF2-35B0-8339-DF83A1A661EB> /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
    0x7fff349fc000 -     0x7fff34b79fff  com.apple.ImageIO.framework (3.3.0 - 1739.3.1) <3564ADD2-803F-35CC-AB7F-6F41241010FF> /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
    0x7fff34b7a000 -     0x7fff34b7effb  libGIF.dylib (1739.3.1) <3CB9E6D5-FF76-37E5-921D-57F2C36D8CFC> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
    0x7fff34b7f000 -     0x7fff34c66ff7  libJP2.dylib (1739.3.1) <2B233EA0-59CC-3D7D-81AF-F471448F5271> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
    0x7fff34c67000 -     0x7fff34c8afff  libJPEG.dylib (1739.3.1) <4B3C1085-9177-3872-BCAF-965CBCD6A906> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
    0x7fff34f67000 -     0x7fff34f8dff3  libPng.dylib (1739.3.1) <734D972E-0BD6-3DAC-A465-43A8AF9E0BC8> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
    0x7fff34f8e000 -     0x7fff34f90ff3  libRadiance.dylib (1739.3.1) <99967613-358F-377D-BEC2-C52CC2B18811> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
    0x7fff34f91000 -     0x7fff34fdeff3  libTIFF.dylib (1739.3.1) <BEAC3497-7D7F-3A09-B232-07E9792ACF88> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
    0x7fff35e98000 -     0x7fff35eb1ff7  com.apple.Kerberos (3.0 - 1) <F86DCCDF-93C1-38B3-82C2-477C12E8EE6D> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
    0x7fff36893000 -     0x7fff36914fff  com.apple.Metal (125.30 - 125.30) <6B9EBDEE-C64C-3C1C-922A-0363B642C9BC> /System/Library/Frameworks/Metal.framework/Versions/A/Metal
    0x7fff36931000 -     0x7fff3694cfff  com.apple.MetalPerformanceShaders.MPSCore (1.0 - 1) <AD754E8F-CA00-3878-9AF3-208C224A230B> /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSCore.framework/Versions/A/MPSCore
    0x7fff3694d000 -     0x7fff369bcfef  com.apple.MetalPerformanceShaders.MPSImage (1.0 - 1) <338B7779-E608-3D68-8A07-2ACC11299744> /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSImage.framework/Versions/A/MPSImage
    0x7fff369bd000 -     0x7fff369e1fff  com.apple.MetalPerformanceShaders.MPSMatrix (1.0 - 1) <9CE072D7-853B-3939-9645-7EB951376B87> /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSMatrix.framework/Versions/A/MPSMatrix
    0x7fff369e2000 -     0x7fff36ac9ff7  com.apple.MetalPerformanceShaders.MPSNeuralNetwork (1.0 - 1) <0DE891AD-27E5-38FF-AEC8-4A95356C4357> /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSNeuralNetwork.framework/Versions/A/MPSNeuralNetwork
    0x7fff36aca000 -     0x7fff36acaff7  com.apple.MetalPerformanceShaders.MetalPerformanceShaders (1.0 - 1) <2D2D261C-50B0-32F9-BF9A-5C01382BB528> /System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/MetalPerformanceShaders
    0x7fff37ac9000 -     0x7fff37ad5ffb  com.apple.NetFS (6.0 - 4.0) <471DD96F-FA2E-3FE9-9746-2519A6780D1A> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
    0x7fff37cc9000 -     0x7fff37ceefff  com.apple.audio.OpenAL (1.8 - 1.8) <FA7686B8-3C91-3169-95FC-D3A067CB3943> /System/Library/Frameworks/OpenAL.framework/Versions/A/OpenAL
    0x7fff3a8be000 -     0x7fff3a8c6fef  libcldcpuengine.dylib (2.8.7) <EF9A91AC-029C-300A-99E7-4952C15DA09F> /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libcldcpuengine.dylib
    0x7fff3a8c7000 -     0x7fff3a921ff7  com.apple.opencl (2.8.24 - 2.8.24) <CF922AFD-CBA4-3B23-A0C1-E3E5362BB6C7> /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
    0x7fff3a922000 -     0x7fff3a93effb  com.apple.CFOpenDirectory (10.13 - 207.50.1) <29F55F7B-379F-3053-8FF3-5C6675A3DD4D> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
    0x7fff3a93f000 -     0x7fff3a94afff  com.apple.OpenDirectory (10.13 - 207.50.1) <F895547D-4915-353F-9C1E-E95172BA803B> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
    0x7fff3bac9000 -     0x7fff3bacbfff  libCVMSPluginSupport.dylib (16.7.4) <6846D939-478C-3AE3-9DCD-CD4F4CD05409> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib
    0x7fff3bacc000 -     0x7fff3bad1ffb  libCoreFSCache.dylib (162.9) <DD9DD721-2957-3D05-B361-70AF9EBFB280> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreFSCache.dylib
    0x7fff3bad2000 -     0x7fff3bad6fff  libCoreVMClient.dylib (162.9) <4E4F3EA2-5B53-31A3-8256-54EFAA94E4D6> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib
    0x7fff3bad7000 -     0x7fff3bae0ff3  libGFXShared.dylib (16.7.4) <6187AD8B-1CD2-3775-84CD-76A0EA8BCDD4> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib
    0x7fff3bae1000 -     0x7fff3baecfff  libGL.dylib (16.7.4) <2BB333D3-5C61-33DF-8545-06DF2D08B83D> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
    0x7fff3baed000 -     0x7fff3bb28fe7  libGLImage.dylib (16.7.4) <4DA003CE-0B74-3FE4-808C-B2FBCE517EB4> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
    0x7fff3bb29000 -     0x7fff3bc96ff3  libGLProgrammability.dylib (16.7.4) <694056A5-DAF8-32BB-A75B-F25FE08351AC> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
    0x7fff3bc97000 -     0x7fff3bcd5ffb  libGLU.dylib (16.7.4) <BCB09CD8-EB0E-38FA-8B5A-9E29532EE364> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
    0x7fff3c64d000 -     0x7fff3c65cff3  com.apple.opengl (16.7.4 - 16.7.4) <7B71A596-B6D8-335A-B7CA-8684D83B9C0E> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
    0x7fff3c65d000 -     0x7fff3c7f4ff3  GLEngine (16.7.4) <A07C490D-A5E7-3761-950C-E92369D59CC8> /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLEngine.bundle/GLEngine
    0x7fff3c7f5000 -     0x7fff3c81dffb  GLRendererFloat (16.7.4) <C99363D2-6089-352F-81C5-4098E9B9F787> /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLRendererFloat.bundle/GLRendererFloat
    0x7fff3d4b0000 -     0x7fff3d6fcff7  com.apple.QuartzCore (1.11 - 584.64.2) <DDA39332-DE09-3737-A332-0002AE05DD39> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
    0x7fff3df34000 -     0x7fff3e25ffff  com.apple.security (7.0 - 58286.70.14) <120F7FA5-1C9B-3943-A591-1DC30603D3D9> /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x7fff3e260000 -     0x7fff3e2ecff7  com.apple.securityfoundation (6.0 - 55185.50.5) <4692AAB9-6DFA-38A9-8977-D7418744693C> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
    0x7fff3e31e000 -     0x7fff3e322ffb  com.apple.xpc.ServiceManagement (1.0 - 1) <E3146BBE-7F32-3605-AD2B-54C0E70759DC> /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement
    0x7fff3e6c7000 -     0x7fff3e737ff3  com.apple.SystemConfiguration (1.17 - 1.17) <CD4A4C66-7886-3323-A3B9-0C8952500856> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
    0x7fff41634000 -     0x7fff416c7ff3  com.apple.APFS (1.0 - 1) <70133D37-FDD3-3B2C-B295-00BECEA7EDA8> /System/Library/PrivateFrameworks/APFS.framework/Versions/A/APFS
    0x7fff422f4000 -     0x7fff4231cfff  com.apple.framework.Apple80211 (13.0 - 1370.4) <B37A91A0-5823-3F97-B575-9BB804FCEB00> /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211
    0x7fff4231e000 -     0x7fff4232dfef  com.apple.AppleFSCompression (96.60.1 - 1.0) <A7C875C4-F5EE-3272-AFB6-57C9FD5352B3> /System/Library/PrivateFrameworks/AppleFSCompression.framework/Versions/A/AppleFSCompression
    0x7fff4242c000 -     0x7fff42437ff7  com.apple.AppleIDAuthSupport (1.0 - 1) <2FAF5567-CDB3-33EF-AB71-05D37F2248B7> /System/Library/PrivateFrameworks/AppleIDAuthSupport.framework/Versions/A/AppleIDAuthSupport
    0x7fff42471000 -     0x7fff424b9ff3  com.apple.AppleJPEG (1.0 - 1) <8DD410CB-76A1-3F22-9A9F-0491FA0CEB4A> /System/Library/PrivateFrameworks/AppleJPEG.framework/Versions/A/AppleJPEG
    0x7fff424f4000 -     0x7fff4251cfff  com.apple.applesauce (1.0 - ???) <CCA8B094-1BCE-3AE3-A0A7-D544C818DE36> /System/Library/PrivateFrameworks/AppleSauce.framework/Versions/A/AppleSauce
    0x7fff4296f000 -     0x7fff42c08ffb  com.apple.AuthKit (1.0 - 1) <6CA71A11-91C5-307C-B933-9FCDEDCB580A> /System/Library/PrivateFrameworks/AuthKit.framework/Versions/A/AuthKit
    0x7fff42d3f000 -     0x7fff42d46ff7  com.apple.coreservices.BackgroundTaskManagement (1.0 - 57.1) <51A41CA3-DB1D-3380-993E-99C54AEE518E> /System/Library/PrivateFrameworks/BackgroundTaskManagement.framework/Versions/A/BackgroundTaskManagement
    0x7fff42d47000 -     0x7fff42dceff7  com.apple.backup.framework (1.9.6 - 1.9.6) <3C96FD26-C7F2-3F37-885A-5A71372FA8F4> /System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup
    0x7fff44788000 -     0x7fff44791ff3  com.apple.CommonAuth (4.0 - 2.0) <21AF4AC2-E650-35F9-AB33-3EBA2769FBC0> /System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth
    0x7fff452a5000 -     0x7fff452b5ff7  com.apple.CoreEmoji (1.0 - 69.3) <A4357F5C-0C38-3A61-B456-D7321EB2CEE5> /System/Library/PrivateFrameworks/CoreEmoji.framework/Versions/A/CoreEmoji
    0x7fff45a49000 -     0x7fff45a51ff3  com.apple.CorePhoneNumbers (1.0 - 1) <A5D41251-9F38-3AB9-9DE7-F77023FAAA44> /System/Library/PrivateFrameworks/CorePhoneNumbers.framework/Versions/A/CorePhoneNumbers
    0x7fff45bdc000 -     0x7fff45c0dff3  com.apple.CoreServicesInternal (309.1 - 309.1) <4ECD14EA-A493-3B84-A32F-CF928474A405> /System/Library/PrivateFrameworks/CoreServicesInternal.framework/Versions/A/CoreServicesInternal
    0x7fff45f87000 -     0x7fff46018fff  com.apple.CoreSymbolication (9.3 - 64026.2) <A8D4315F-5DD5-3164-8672-ECDAF2766644> /System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication
    0x7fff4609b000 -     0x7fff461d0fff  com.apple.coreui (2.1 - 494.1) <B2C515C3-FCE8-3B28-A225-05AD917F509B> /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
    0x7fff461d1000 -     0x7fff46302fff  com.apple.CoreUtils (5.6 - 560.11) <1A02D6F0-8C65-3FAE-AD63-56477EDE4773> /System/Library/PrivateFrameworks/CoreUtils.framework/Versions/A/CoreUtils
    0x7fff46357000 -     0x7fff463bbfff  com.apple.framework.CoreWiFi (13.0 - 1350.2) <50E8598A-0611-323D-B9A8-72A336424090> /System/Library/PrivateFrameworks/CoreWiFi.framework/Versions/A/CoreWiFi
    0x7fff463bc000 -     0x7fff463ccff7  com.apple.CrashReporterSupport (10.13 - 1) <A909F468-0648-3F51-A77E-3F9ADBC9A941> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport
    0x7fff4644b000 -     0x7fff4645aff7  com.apple.framework.DFRFoundation (1.0 - 191.7) <9BBCCA62-F7BA-3B44-B044-E7C12ACC49F2> /System/Library/PrivateFrameworks/DFRFoundation.framework/Versions/A/DFRFoundation
    0x7fff4645d000 -     0x7fff46461ffb  com.apple.DSExternalDisplay (3.1 - 380) <901B7F6D-376A-3848-99D0-170C4D00F776> /System/Library/PrivateFrameworks/DSExternalDisplay.framework/Versions/A/DSExternalDisplay
    0x7fff464e3000 -     0x7fff46559fff  com.apple.datadetectorscore (7.0 - 590.3) <B4706195-CBE6-320D-A0E1-A9D4BDF52791> /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore
    0x7fff465a7000 -     0x7fff465e7ff7  com.apple.DebugSymbols (181.0 - 181.0) <299A0238-ED78-3676-B131-274D972824AA> /System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbols
    0x7fff465e8000 -     0x7fff46717fff  com.apple.desktopservices (1.12.5 - 1.12.5) <7739C9A5-64D9-31A5-899B-5FFA242AD70D> /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
    0x7fff4752c000 -     0x7fff4795afff  com.apple.vision.FaceCore (3.3.2 - 3.3.2) <B574FE33-4A41-3611-9738-388EBAF03E37> /System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore
    0x7fff4ac0a000 -     0x7fff4ac15fff  libGPUSupport.dylib (16.7.4) <948B32CD-3AF2-33E7-86C2-A14E39FD34DA> /System/Library/PrivateFrameworks/GPUSupport.framework/Versions/A/Libraries/libGPUSupport.dylib
    0x7fff4ac22000 -     0x7fff4ac27fff  com.apple.GPUWrangler (3.20.17 - 3.20.17) <33899AB1-65AF-3E28-85D1-E152D358952D> /System/Library/PrivateFrameworks/GPUWrangler.framework/Versions/A/GPUWrangler
    0x7fff4b99d000 -     0x7fff4b9acfff  com.apple.GraphVisualizer (1.0 - 5) <B993B8A2-5700-3DFC-9EB7-4CCEE8F959F1> /System/Library/PrivateFrameworks/GraphVisualizer.framework/Versions/A/GraphVisualizer
    0x7fff4ba2f000 -     0x7fff4baa3fff  com.apple.Heimdal (4.0 - 2.0) <BAE3D978-2285-35DF-907E-02BC37986D02> /System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal
    0x7fff4c3b6000 -     0x7fff4c3bdff7  com.apple.IOAccelerator (378.28 - 378.28) <BE5CBEAA-314E-348B-BE85-7E4B2E4C42FF> /System/Library/PrivateFrameworks/IOAccelerator.framework/Versions/A/IOAccelerator
    0x7fff4c3c1000 -     0x7fff4c3d8fff  com.apple.IOPresentment (1.0 - 35.1) <53B47F2A-9A9A-33F5-ADCB-FF766292B93A> /System/Library/PrivateFrameworks/IOPresentment.framework/Versions/A/IOPresentment
    0x7fff4c7a3000 -     0x7fff4c7c9ffb  com.apple.IconServices (97.6 - 97.6) <A56D826D-20D2-34BE-AACC-A80CFCB4E915> /System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconServices
    0x7fff4ca4e000 -     0x7fff4ca61ff3  com.apple.security.KeychainCircle.KeychainCircle (1.0 - 1) <CA865016-5555-3522-841D-42D974AAB981> /System/Library/PrivateFrameworks/KeychainCircle.framework/Versions/A/KeychainCircle
    0x7fff4ca62000 -     0x7fff4cb57ff7  com.apple.LanguageModeling (1.0 - 159.5.3) <7F0AC200-E3DD-39FB-8A95-00DD70B66A9F> /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling
    0x7fff4cb58000 -     0x7fff4cb9afff  com.apple.Lexicon-framework (1.0 - 33.5) <DC94CF9E-1EB4-3C0E-B298-CA1190885276> /System/Library/PrivateFrameworks/Lexicon.framework/Versions/A/Lexicon
    0x7fff4cb9e000 -     0x7fff4cba5ff7  com.apple.LinguisticData (1.0 - 238.3) <49A54649-1021-3DBD-99B8-1B2EDFFA5378> /System/Library/PrivateFrameworks/LinguisticData.framework/Versions/A/LinguisticData
    0x7fff4d8b8000 -     0x7fff4d921ff7  com.apple.gpusw.MetalTools (1.0 - 1) <B4217182-B2AA-3AA3-80E8-F4C80B71BDDC> /System/Library/PrivateFrameworks/MetalTools.framework/Versions/A/MetalTools
    0x7fff4dab1000 -     0x7fff4dacafff  com.apple.MobileKeyBag (2.0 - 1.0) <7D657BC6-B779-3E51-B50D-07C95791DD04> /System/Library/PrivateFrameworks/MobileKeyBag.framework/Versions/A/MobileKeyBag
    0x7fff4db56000 -     0x7fff4db80ffb  com.apple.MultitouchSupport.framework (1614.1 - 1614.1) <A0709B43-FA9E-3617-8E7A-D68CDFAB2167> /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport
    0x7fff4dde7000 -     0x7fff4ddf2fff  com.apple.NetAuth (6.2 - 6.2) <2CFA1228-61A1-3708-988D-30499A1D6A9F> /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth
    0x7fff4f68b000 -     0x7fff4f69bffb  com.apple.PerformanceAnalysis (1.194 - 194) <8022ED1F-CE70-388E-B37B-6FB1E5F90CF2> /System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis
    0x7fff5145a000 -     0x7fff51478fff  com.apple.ProtocolBuffer (1 - 260) <40704740-4A53-3010-A49B-08D1D69D1D5E> /System/Library/PrivateFrameworks/ProtocolBuffer.framework/Versions/A/ProtocolBuffer
    0x7fff51653000 -     0x7fff51676ffb  com.apple.RemoteViewServices (2.0 - 125) <592323D1-CB44-35F1-9921-4C2AB8D920A0> /System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices
    0x7fff52f9c000 -     0x7fff530b1ff7  com.apple.Sharing (1050.22.6 - 1050.22.6) <1D71D23A-2544-386E-834C-7245F2FF1569> /System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing
    0x7fff530dc000 -     0x7fff530ddff7  com.apple.performance.SignpostNotification (1.2.6 - 2.6) <8F04800F-3570-3392-A24D-B229FF03F7F9> /System/Library/PrivateFrameworks/SignpostNotification.framework/Versions/A/SignpostNotification
    0x7fff53e3b000 -     0x7fff540d7fff  com.apple.SkyLight (1.600.0 - 312.103.11) <A4D01EC8-6CED-3AA3-98EA-CD89E2B6559B> /System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/SkyLight
    0x7fff548a0000 -     0x7fff548adfff  com.apple.SpeechRecognitionCore (4.6.1 - 4.6.1) <87EE7AB5-6925-3D21-BE00-F155CB457699> /System/Library/PrivateFrameworks/SpeechRecognitionCore.framework/Versions/A/SpeechRecognitionCore
    0x7fff55453000 -     0x7fff554dcfc7  com.apple.Symbolication (9.3 - 64033) <FAA17252-6378-34A4-BBBB-22DF54EC1626> /System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication
    0x7fff55a4c000 -     0x7fff55a54ff7  com.apple.TCC (1.0 - 1) <E1EB7272-FE6F-39AB-83CA-B2B5F2A88D9B> /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
    0x7fff55c61000 -     0x7fff55d1eff7  com.apple.TextureIO (3.7 - 3.7) <F8BAC954-405D-3CC3-AB7B-048C866EF980> /System/Library/PrivateFrameworks/TextureIO.framework/Versions/A/TextureIO
    0x7fff55dc8000 -     0x7fff55dc9fff  com.apple.TrustEvaluationAgent (2.0 - 31) <39F533B2-211E-3635-AF47-23F27749FF4A> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent
    0x7fff55dcf000 -     0x7fff55f7ffff  com.apple.UIFoundation (1.0 - 547.9) <FD224A4A-D528-34DE-A956-51A04BD7F908> /System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation
    0x7fff56c54000 -     0x7fff56d23ff7  com.apple.ViewBridge (343.2 - 343.2) <5519FCED-1F88-3BE6-9BE1-69992086B01B> /System/Library/PrivateFrameworks/ViewBridge.framework/Versions/A/ViewBridge
    0x7fff576fb000 -     0x7fff576fdffb  com.apple.loginsupport (1.0 - 1) <D1232C1B-80EA-3DF8-9466-013695D0846E> /System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport
    0x7fff57864000 -     0x7fff57897ff7  libclosured.dylib (551.5) <112BC241-6626-3848-8DD8-B34B5B6F7ABC> /usr/lib/closure/libclosured.dylib
    0x7fff57951000 -     0x7fff5798aff7  libCRFSuite.dylib (41) <FE5EDB68-2593-3C2E-BBAF-1C52D206F296> /usr/lib/libCRFSuite.dylib
    0x7fff5798b000 -     0x7fff57996fff  libChineseTokenizer.dylib (28) <53633C9B-A3A8-36F7-A53C-432D802F4BB8> /usr/lib/libChineseTokenizer.dylib
    0x7fff57a28000 -     0x7fff57a29ff3  libDiagnosticMessagesClient.dylib (104) <9712E980-76EE-3A89-AEA6-DF4BAF5C0574> /usr/lib/libDiagnosticMessagesClient.dylib
    0x7fff57a60000 -     0x7fff57c2aff3  libFosl_dynamic.dylib (17.8) <C58ED77A-4986-31C2-994C-34DDFB8106F0> /usr/lib/libFosl_dynamic.dylib
    0x7fff57c62000 -     0x7fff57c62fff  libOpenScriptingUtil.dylib (174) <610F0242-7CE5-3C86-951B-B646562694AF> /usr/lib/libOpenScriptingUtil.dylib
    0x7fff57d99000 -     0x7fff57d9dffb  libScreenReader.dylib (562.18.5) <0FEFDAC8-0FDF-38A0-AB88-A84E0DBA058F> /usr/lib/libScreenReader.dylib
    0x7fff57d9e000 -     0x7fff57d9fffb  libSystem.B.dylib (1252.50.4) <D00551B4-FB94-35E5-8090-D6D6F722845F> /usr/lib/libSystem.B.dylib
    0x7fff57e32000 -     0x7fff57e32fff  libapple_crypto.dylib (109.50.15) <A8DEA8E9-5769-3C78-824D-969A98B94086> /usr/lib/libapple_crypto.dylib
    0x7fff57e33000 -     0x7fff57e49ff7  libapple_nghttp2.dylib (1.24) <01402BC4-4822-3676-9C80-50D83F816424> /usr/lib/libapple_nghttp2.dylib
    0x7fff57e4a000 -     0x7fff57e74ff3  libarchive.2.dylib (54) <8FC28DD8-E315-3C3E-95FE-D1D2CBE49888> /usr/lib/libarchive.2.dylib
    0x7fff57e75000 -     0x7fff57f78fe7  libate.dylib (1.13.1) <DABEA1B1-806C-34C9-8AFF-DEB6AB2829E3> /usr/lib/libate.dylib
    0x7fff57f7c000 -     0x7fff57f7cff3  libauto.dylib (187) <A05C7900-F8C7-3E75-8D3F-909B40C19717> /usr/lib/libauto.dylib
    0x7fff57f7d000 -     0x7fff58036ffb  libboringssl.dylib (109.50.15) <373EECDD-D8EC-3081-B71D-705067DA9A0D> /usr/lib/libboringssl.dylib
    0x7fff58037000 -     0x7fff58047ff3  libbsm.0.dylib (39) <6BC96A72-AFBE-34FD-91B1-748A530D8AE6> /usr/lib/libbsm.0.dylib
    0x7fff58048000 -     0x7fff58055ffb  libbz2.1.0.dylib (38) <0A5086BB-4724-3C14-979D-5AD4F26B5B45> /usr/lib/libbz2.1.0.dylib
    0x7fff58056000 -     0x7fff580acfff  libc++.1.dylib (400.9) <7D3DACCC-3804-393C-ABC1-1A580FD00CB6> /usr/lib/libc++.1.dylib
    0x7fff580ad000 -     0x7fff580d1ff7  libc++abi.dylib (400.8.2) <EF5E37D7-11D9-3530-BE45-B986612D13E2> /usr/lib/libc++abi.dylib
    0x7fff580d3000 -     0x7fff580e3fff  libcmph.dylib (6) <890DEC4C-4334-393C-8B56-7C8560BBED9D> /usr/lib/libcmph.dylib
    0x7fff580e4000 -     0x7fff580fbfd3  libcompression.dylib (47.60.2) <CC7ACB0A-49CD-3564-978F-49F843186F27> /usr/lib/libcompression.dylib
    0x7fff583a6000 -     0x7fff583beff7  libcoretls.dylib (155.50.1) <D350052E-DC4D-3185-ADBA-BA48EDCEE955> /usr/lib/libcoretls.dylib
    0x7fff583bf000 -     0x7fff583c0ff3  libcoretls_cfhelpers.dylib (155.50.1) <B297F5D8-F2FE-3566-A752-E9D998B9C039> /usr/lib/libcoretls_cfhelpers.dylib
    0x7fff58559000 -     0x7fff586eafff  libcrypto.35.dylib (22.50.3) <6E609F99-59BC-3AEA-9DB3-FD360A2C50CC> /usr/lib/libcrypto.35.dylib
    0x7fff58891000 -     0x7fff588e6ff3  libcups.2.dylib (462.2.7) <46179788-4363-38B2-9204-E8AC8123D899> /usr/lib/libcups.2.dylib
    0x7fff58a26000 -     0x7fff58a26fff  libenergytrace.dylib (16) <A92AB8B8-B986-3CE6-980D-D55090FEF387> /usr/lib/libenergytrace.dylib
    0x7fff58a5d000 -     0x7fff58a62ff3  libheimdal-asn1.dylib (520.50.9) <EF65C17E-31CD-31DC-876C-BF3EF393099C> /usr/lib/libheimdal-asn1.dylib
    0x7fff58a8e000 -     0x7fff58b7fff7  libiconv.2.dylib (51.50.1) <2FEC9707-3FAF-3828-A50D-8605086D060F> /usr/lib/libiconv.2.dylib
    0x7fff58b80000 -     0x7fff58da7ffb  libicucore.A.dylib (59181.0.1) <2CE6205F-D375-3BF5-AA0A-3254BC4773D0> /usr/lib/libicucore.A.dylib
    0x7fff58df4000 -     0x7fff58df5fff  liblangid.dylib (128) <39C39393-0D05-301D-93B2-F224FC4949AA> /usr/lib/liblangid.dylib
    0x7fff58df6000 -     0x7fff58e0fffb  liblzma.5.dylib (10) <3D419A50-961F-37D2-8A01-3DC7AB7B8D18> /usr/lib/liblzma.5.dylib
    0x7fff58e10000 -     0x7fff58e26ff7  libmarisa.dylib (9) <D6D2D55D-1D2E-3442-B152-B18803C0ABB4> /usr/lib/libmarisa.dylib
    0x7fff58ed7000 -     0x7fff590ffff7  libmecabra.dylib (779.7.6) <F462F170-E872-3D09-B219-973D5E99C09F> /usr/lib/libmecabra.dylib
    0x7fff592d7000 -     0x7fff59452fff  libnetwork.dylib (1229.70.2) <E185D902-AC7F-3044-87C0-AE2887C59CE7> /usr/lib/libnetwork.dylib
    0x7fff594d9000 -     0x7fff598ca3b7  libobjc.A.dylib (723) <BEEA51E2-1C4D-3672-87F6-F267B4AC6221> /usr/lib/libobjc.A.dylib
    0x7fff598dd000 -     0x7fff598e1fff  libpam.2.dylib (22) <7B4D2CE2-1438-387A-9802-5CEEFBF26F86> /usr/lib/libpam.2.dylib
    0x7fff598e4000 -     0x7fff59918fff  libpcap.A.dylib (79.20.1) <FA13918B-A247-3181-B256-9B852C7BA316> /usr/lib/libpcap.A.dylib
    0x7fff59997000 -     0x7fff599b3ffb  libresolv.9.dylib (65.1) <D9BB6307-71E4-3A94-A745-1FCA114C6894> /usr/lib/libresolv.9.dylib
    0x7fff59a04000 -     0x7fff59b91ff7  libsqlite3.dylib (274.8.1) <B70A2908-E0F7-364E-952A-1D2D19787B89> /usr/lib/libsqlite3.dylib
    0x7fff59d65000 -     0x7fff59dc5ff3  libusrtcp.dylib (1229.70.2) <1E065228-D0E3-3808-9405-894056C6BEC0> /usr/lib/libusrtcp.dylib
    0x7fff59dc6000 -     0x7fff59dc9ffb  libutil.dylib (51.20.1) <216D18E5-0BAF-3EAF-A38E-F6AC37CBABD9> /usr/lib/libutil.dylib
    0x7fff59dca000 -     0x7fff59dd7ff3  libxar.1.dylib (417.1) <351781D5-3CCF-320F-BB5A-4DFCC1CCD31D> /usr/lib/libxar.1.dylib
    0x7fff59ddb000 -     0x7fff59ec2fff  libxml2.2.dylib (31.15) <AEB1BCCA-5B6B-3BF7-8518-6482F96A9884> /usr/lib/libxml2.2.dylib
    0x7fff59ec3000 -     0x7fff59eebfff  libxslt.1.dylib (15.16) <57D56366-1E7B-356C-B2B8-F4688FF666E6> /usr/lib/libxslt.1.dylib
    0x7fff59eec000 -     0x7fff59efeffb  libz.1.dylib (70) <48C67CFC-940D-3857-8DAD-857774605352> /usr/lib/libz.1.dylib
    0x7fff59f9a000 -     0x7fff59f9eff7  libcache.dylib (80) <092479CB-1008-3A83-BECF-E115F24D13C1> /usr/lib/system/libcache.dylib
    0x7fff59f9f000 -     0x7fff59fa9ff3  libcommonCrypto.dylib (60118.50.1) <029F5985-9B6E-3DCB-9B96-FD007678C6A7> /usr/lib/system/libcommonCrypto.dylib
    0x7fff59faa000 -     0x7fff59fb1fff  libcompiler_rt.dylib (62) <968B8E3F-3681-3230-9D78-BB8732024F6E> /usr/lib/system/libcompiler_rt.dylib
    0x7fff59fb2000 -     0x7fff59fbbffb  libcopyfile.dylib (146.50.5) <3885083D-50D8-3EEC-B481-B2E605180D7F> /usr/lib/system/libcopyfile.dylib
    0x7fff59fbc000 -     0x7fff5a041ffb  libcorecrypto.dylib (562.70.3) <37AF8EC6-BF34-3D15-BC3A-A9B98F2427D4> /usr/lib/system/libcorecrypto.dylib
    0x7fff5a0c9000 -     0x7fff5a102ff7  libdispatch.dylib (913.60.3) <BF368549-2DFB-3530-B4CB-31D5EDAC4F2F> /usr/lib/system/libdispatch.dylib
    0x7fff5a103000 -     0x7fff5a120ff7  libdyld.dylib (551.5) <49BF9E96-8297-30CF-8AA6-128CC14054B2> /usr/lib/system/libdyld.dylib
    0x7fff5a121000 -     0x7fff5a121ffb  libkeymgr.dylib (28) <E34E283E-90FA-3C59-B48E-1277CDB9CDCE> /usr/lib/system/libkeymgr.dylib
    0x7fff5a122000 -     0x7fff5a12eff3  libkxld.dylib (4570.71.57) <9FC3F6B9-FC2D-30F8-BDA6-34600EEEEB51> /usr/lib/system/libkxld.dylib
    0x7fff5a12f000 -     0x7fff5a12fff7  liblaunch.dylib (1205.70.12) <4950A0B3-5EE1-3F9A-8B1A-94FB85FCCA2C> /usr/lib/system/liblaunch.dylib
    0x7fff5a130000 -     0x7fff5a134ffb  libmacho.dylib (906) <1902A611-081A-3452-B11E-EBD1B166E831> /usr/lib/system/libmacho.dylib
    0x7fff5a135000 -     0x7fff5a137fff  libquarantine.dylib (86.70.1) <94427FF6-D161-393E-8587-3E30C48E69B1> /usr/lib/system/libquarantine.dylib
    0x7fff5a138000 -     0x7fff5a139ff3  libremovefile.dylib (45) <711E18B2-5BBE-3211-A916-56740C27D17A> /usr/lib/system/libremovefile.dylib
    0x7fff5a13a000 -     0x7fff5a151fff  libsystem_asl.dylib (356.70.1) <39E46A6F-B228-3E78-B83E-1779F9707A39> /usr/lib/system/libsystem_asl.dylib
    0x7fff5a152000 -     0x7fff5a152fff  libsystem_blocks.dylib (67) <17303FDF-0D2D-3963-B05E-B4DF63052D47> /usr/lib/system/libsystem_blocks.dylib
    0x7fff5a153000 -     0x7fff5a1dcff7  libsystem_c.dylib (1244.50.9) <1187BFE8-4576-3247-8177-481554E1F9E7> /usr/lib/system/libsystem_c.dylib
    0x7fff5a1dd000 -     0x7fff5a1e0ffb  libsystem_configuration.dylib (963.50.9) <A5DC1AFC-2C3E-3113-BE20-48F96064DB0F> /usr/lib/system/libsystem_configuration.dylib
    0x7fff5a1e1000 -     0x7fff5a1e4ffb  libsystem_coreservices.dylib (51) <486000D3-D8CB-3BE7-8EE5-8BF380DE6DF7> /usr/lib/system/libsystem_coreservices.dylib
    0x7fff5a1e5000 -     0x7fff5a1e6fff  libsystem_darwin.dylib (1244.50.9) <09C21A4A-9EE0-388B-A9D9-DFF8F6758791> /usr/lib/system/libsystem_darwin.dylib
    0x7fff5a1e7000 -     0x7fff5a1edffb  libsystem_dnssd.dylib (878.70.4) <384F7843-0AE8-3D10-8F8D-37FCB912F875> /usr/lib/system/libsystem_dnssd.dylib
    0x7fff5a1ee000 -     0x7fff5a237ff7  libsystem_info.dylib (517.30.1) <AB634A98-B8AA-3804-8436-38261FC8EC4D> /usr/lib/system/libsystem_info.dylib
    0x7fff5a238000 -     0x7fff5a25eff7  libsystem_kernel.dylib (4570.71.57) <A0AF7A4D-4313-3A49-AD7B-E2CCC04A10A1> /usr/lib/system/libsystem_kernel.dylib
    0x7fff5a25f000 -     0x7fff5a2aafcb  libsystem_m.dylib (3147.50.1) <17570F46-566C-39FC-BEF6-635A355DD549> /usr/lib/system/libsystem_m.dylib
    0x7fff5a2ab000 -     0x7fff5a2caff7  libsystem_malloc.dylib (140.50.7) <A45A484C-3BDE-3BC4-A219-726E3CB332D9> /usr/lib/system/libsystem_malloc.dylib
    0x7fff5a2cb000 -     0x7fff5a3fbff7  libsystem_network.dylib (1229.70.2) <5E86B2DE-9E15-3354-8714-4094ED5F698D> /usr/lib/system/libsystem_network.dylib
    0x7fff5a3fc000 -     0x7fff5a406ffb  libsystem_networkextension.dylib (767.70.2) <9DC03712-552D-3AEE-9519-B5ED70980B70> /usr/lib/system/libsystem_networkextension.dylib
    0x7fff5a407000 -     0x7fff5a410ff3  libsystem_notify.dylib (172) <08012EC0-2CD2-34BE-BF93-E7F56491299A> /usr/lib/system/libsystem_notify.dylib
    0x7fff5a411000 -     0x7fff5a418ff7  libsystem_platform.dylib (161.50.1) <6355EE2D-5456-3CA8-A227-B96E8F1E2AF8> /usr/lib/system/libsystem_platform.dylib
    0x7fff5a419000 -     0x7fff5a424fff  libsystem_pthread.dylib (301.50.1) <0E51CCBA-91F2-34E1-BF2A-FEEFD3D321E4> /usr/lib/system/libsystem_pthread.dylib
    0x7fff5a425000 -     0x7fff5a428fff  libsystem_sandbox.dylib (765.70.1) <553DFCC6-9D31-3B9C-AB7C-30F6F265786D> /usr/lib/system/libsystem_sandbox.dylib
    0x7fff5a429000 -     0x7fff5a42aff3  libsystem_secinit.dylib (30) <DE8D14E8-A276-3FF8-AE13-77F7040F33C1> /usr/lib/system/libsystem_secinit.dylib
    0x7fff5a42b000 -     0x7fff5a432ff7  libsystem_symptoms.dylib (820.60.3) <441C6CA0-5711-3BB1-8420-DDAC3D5272E1> /usr/lib/system/libsystem_symptoms.dylib
    0x7fff5a433000 -     0x7fff5a446fff  libsystem_trace.dylib (829.70.1) <3A6CB706-8CA6-3616-8AFC-14AAD7FAF187> /usr/lib/system/libsystem_trace.dylib
    0x7fff5a448000 -     0x7fff5a44dff7  libunwind.dylib (35.3) <BEF3FB49-5604-3B5F-82B5-332B80023AC3> /usr/lib/system/libunwind.dylib
    0x7fff5a44e000 -     0x7fff5a47bff7  libxpc.dylib (1205.70.12) <7B82608D-ED82-35C1-B13F-99855E25D6DC> /usr/lib/system/libxpc.dylib

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 3129
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=352.0M resident=0K(0%) swapped_out_or_unallocated=352.0M(100%)
Writable regions: Total=200.6M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=200.6M(100%)
 
                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Accelerate framework               384K        3 
Activity Tracing                   256K        2 
CG backing stores                  836K        4 
CoreImage                            8K        3 
CoreUI image data                  444K        5 
CoreUI image file                  280K        4 
Dispatch continuations            8192K        2 
Kernel Alloc Once                    8K        2 
MALLOC                            96.8M       59 
MALLOC guard page                   48K       12 
Memory Tag 242                      12K        2 
Memory Tag 249                     156K        2 
OpenGL GLSL                        256K        4 
STACK GUARD                       56.0M        9 
Stack                             11.1M        9 
VM_ALLOCATE                       96.3M      533 
VM_ALLOCATE (reserved)            11.4M        4         reserved VM address space (unallocated)
__DATA                            23.3M      255 
__FONT_DATA                          4K        2 
__GLSLBUILTINS                    2588K        2 
__LINKEDIT                       196.8M       25 
__TEXT                           155.2M      257 
__UNICODE                          560K        2 
mapped file                       51.5M       13 
shared memory                      744K       12 
===========                     =======  ======= 
TOTAL                            712.8M     1202 
TOTAL, minus reserved VM space   701.3M     1202 

Model: MacBookPro8,1, BootROM 87.0.0.0.0, 2 processors, Intel Core i5, 2,3 GHz, 4 GB, SMC 1.68f96
Graphics: Intel HD Graphics 3000, Intel HD Graphics 3000, Built-In
Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80AD, 0x484D54333235533642465238432D48392020
Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80AD, 0x484D54333235533642465238432D48392020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xD6), Broadcom BCM43xx 1.0 (5.106.98.102.30)
Bluetooth: Version 6.0.7f16, 3 services, 18 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en1
Serial ATA Device: Hitachi HTS545032B9A302, 320,07 GB
Serial ATA Device: M4-CT064M4SSD2, 64,02 GB
USB Device: USB 2.0 Bus
USB Device: Hub
USB Device: IR Receiver
USB Device: USB 2.0 Bus
USB Device: FaceTime HD Camera (Built-in)
USB Device: Hub
USB Device: Apple Internal Keyboard / Trackpad
USB Device: BRCM2070 Hub
USB Device: Bluetooth USB Host Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., d.0

Dependencies documentation

Cool idea! I had an issue finding decent documentation on correctly installing the CSFML files as did someone else on HackerNews, so if this is aimed at kids (who may well be better at these things than me nowadays!) would you be able to expand on your documentation perhaps linking to good sources for all three platforms? I’ve not gotten around to the OpenAL bit, so maybe that’s required too.

If I find something first, when I take another look later, I’ll submit a PR.

How to distribute standalone Windows executables?

Firstly, this library is so fun and wonderful! I have made some small games with it already, but I have a problem I haven't seen dealt with anywhere in the documentation.

I try putting all of the csfml dlls and the libsndfile dll into the same directory as the DrRacket produced executable and even then nothing happens when I run the produced program. Not on any of the Dr.Racket settings I could find. What do I need to include in the games directory?

Ubuntu 19.10 - ffi-lib: couldn't open "libcsfml-audio.so"

I'm trying to run the most basic program for R-Cade, on Ubuntu 19.10.
CSFML and other required libs are correctly installed. I'm getting the typical missing library error. I'm guessing it should be looking for 'libcsfml-audio.so.2.5', instead of libcsfml-audio.so.

../../../../../usr/share/racket/collects/ffi/unsafe.rkt:131:0: ffi-lib: couldn't open "libcsfml-audio.so" (libcsfml-audio.so: cannot open shared object file: No such file or directory)

$ locate -i libcsfml
/usr/lib/x86_64-linux-gnu/libcsfml-audio.so.2.5
/usr/lib/x86_64-linux-gnu/libcsfml-audio.so.2.5.0
/usr/share/doc/libcsfml-audio2.5
/usr/share/doc/libcsfml-audio2.5/changelog.Debian.gz
/usr/share/doc/libcsfml-audio2.5/copyright
/var/lib/dpkg/info/libcsfml-audio2.5:amd64.list
/var/lib/dpkg/info/libcsfml-audio2.5:amd64.md5sums
/var/lib/dpkg/info/libcsfml-audio2.5:amd64.shlibs
/var/lib/dpkg/info/libcsfml-audio2.5:amd64.symbols
/var/lib/dpkg/info/libcsfml-audio2.5:amd64.triggers

$ uname -a
Linux x220 5.3.0-40-generic #32-Ubuntu SMP Fri Jan 31 20:24:34 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

I also tried installing CSFML dev, with:
sudo apt-get install libsfml-dev
...but it didn't help.

Cheers!

Dexter

sfShader*->C: argument is not non-null `sfShader*' pointer

Hi, I was just trying out your library. I tried to follow the tutorial and came across this error.

I'm using macos.

I ran brew install csfml openal-soft libsndfile.

When running the following racket program:

#lang racket

(require r-cade)
(require racket/match)

(define (test-button state btn x y)
  (let ([state (match state
                 [#f "not pressed"]
                 [1  "just pressed"]
                 [n  "pressed"])])
    (text x y (format "~a is ~a" btn state))))

(define (game-loop)
  (cls)

  ; test each button and show its current state
  (test-button (btn-up) 'up 2 2)
  (test-button (btn-down) 'down 2 9)
  (test-button (btn-right) 'right 2 16)
  (test-button (btn-left) 'left 2 23)
  (test-button (btn-start) 'start 2 30)
  (test-button (btn-select) 'select 2 37)
  (test-button (btn-z) 'z 2 44)
  (test-button (btn-x) 'x 2 51)

  ; quit when escape is pressed
  (when (btn-quit)
    (quit)))

(run game-loop 256 128)

I got the following error:

../../../../../Applications/Racket v7.5/collects/ffi/unsafe.rkt:1377:12: sfShader*->C: argument is not non-null `sfShader*' pointer
  argument: #f

ffi-lib: contract violation

I can't get r-cade required.

$ racket

Welcome to Racket v7.5.
> (require r-cade)
; ffi-lib: contract violation
;   expected: (or/c string? path?)
;   given: #<void>
; [,bt for context]

could not load foreign library csfml-audio-2

Hi. I'm newish to Racket and trying to get your r-cade to install. I believe I followed all your directions. My environment is Win 11, x64, with Racket 8.6 CS.

raco pkg install r-cade

unzipped CSFML
unzipped OpenAL
ran the installer for libsndfile

added the paths to my PATH

closed everything down and opened it up again

copied your first example to a text file, ex01.rkt...

(require r-cade)
(define (game-loop)
(cls)
(text 2 2 (frame)))
(run game-loop 128 128)

racket ex01.rkt

ffi-lib: could not load foreign library
path: csfml-audio-2.dll
system error: The specified module could not be found.; win_err=126
context...:
D:\lang\rkt\Racket\collects\ffi\unsafe.rkt:131:0: get-ffi-lib
body of "C:\Users\micro\AppData\Roaming\Racket\8.6\pkgs\csfml\audio.rkt"


Since there are probably countless subtle places the point of failure could've been, it would save you time identifying the problem if you were to remote-desktop into my computer. 1 minute of looking equals weeks of sending messages up and back, so I offer that. All my important stuff is in the cloud anyway.

Crash and sound corruption on play-music

DrRacket 7.6, Windows 10 64 bits, libsndfile 1.0.28

Running these notes crashes DrRacket right after the first few notes play :

#lang racket
(require r-cade)

;; create a song
(define theme
(music "E2-E2-E2-E2."
#:tempo 280
#:instrument sine-wave))

(define (game-loop)
(text 2 2 "Playing few notes.")
(when (= (frame) 1)
(play-music theme)))

(run game-loop 128 128)


I also had garbled sound after the first few notes of "E1-E1-E1-E1." or "E1-E1-E1-E1".

Running more than one R-cade program at the same time crashes DrRacket

If I run a program from DrRacket, and then click run again to start another instance, the first instance of the program becomes completely unresponsive. DrRacket and the second instance of the program both continue to work fine though. If I click run again, the second instance becomes unresponsive, and so on. If I forcibly close one of the unresponsive windows, DrRacket crashes entirely.

I can only confirm that this happens on Linux.

Segmentation fault running r-cade on Rasbian

I've been attempting to get r-cade running on a Kano, which is essentially a Raspberry Pi running (a version of) Raspbian. Specifically:

  • OS: Kanux Beta 4.3.3 Hopper (based on Debian 9.6 AKA Stretch)
  • Board: Raspberry Pi 3 Model B Rev 1.2 (ARMv7l, apparently this is ARMv8 in 32 bit mode)
  • Racket v7.7.0.6. (installed from nightly snapshot built for ARM6 VFM on 23rd May 2020 from https://www.cs.utah.edu/plt/snapshots/)
  • CSFML built from source (SFML 2.5.1, CSFML 2.5)
  • r-cade: commit 4fa3487

The problem: I get a segmentation fault when I run all r-cade examples. See output below. The window opens, but nothing appears in it. After a few seconds, it disappears when the program dumps core.

I'm trying to track this down, but perhaps you might be able to offer some clues diagnosing this?

Here is the console output:

$ /opt/bin/racket twinkle.rkt 
Setting vertical sync not supported
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
SIGSEGV MAPERR si_code 1 fault on addr 0xac
Aborted (core dumped)

I think the "vertical sync not supported" message can be ignored as working cases of SFML print this too (see below). Likewise the "server socket err" is I think related to absence of a Jack server. Therefore I don't think these are related to the segmentation fault.

Aside: the stock version of Racket for Raspbian 9.6 is in the 6.x series and has other problems (no definition of vector-equals? which I infer means r-cade needs a 7.x version). As does the stock version of libcsfml (see #5). Hence I've had to work around these by getting newer packages elsewhere.

I've attempted to get a stack trace from these crashes, but not really successfully so far. For example (core from running the hello-world program example in the r-cade tutorials):

$ gdb /opt/bin/racket /var/tmp/core-hello.rkt-6-1003-1003-1590500685.dump
(gdb) 
#0  0x76d5c45c in raise () from /lib/arm-linux-gnueabihf/libc.so.6
No symbol table info available.
#1  0x76d5d824 in abort () from /lib/arm-linux-gnueabihf/libc.so.6
No symbol table info available.
#2  0x00000020 in ?? ()
No symbol table info available.
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Valgrind (this time running twinkle.rkt) seems to offer a bit more of a clue, but not much:

$ valgrind -v /opt/bin/racket twinkle.rkt 
==6177== Memcheck, a memory error detector
==6177== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==6177== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==6177== Command: /opt/bin/racket twinkle.rkt
==6177== 
--6177-- Valgrind options:
--6177--    -v
--6177-- Contents of /proc/version:
--6177--   Linux version 4.14.79-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1159 SMP Sun Nov 4 17:50:20 GMT 2018
--6177-- 
--6177-- Arch and hwcaps: ARM, LittleEndian, ARMv8-neon-vfp
--6177-- Page sizes: currently 4096, max supported 4096
--6177-- Valgrind library directory: /usr/lib/valgrind
--6177-- Reading syms from /opt/bin/racket
--6177--    object doesn't have a symbol table
--6177--   Reading EXIDX entries: 11 available
==6177==   Warning: whilst reading EXIDX: ExtabEntryDecode: failed with error code: -10
==6177==   Warning: whilst reading EXIDX: ExtabEntryDecode: failed with error code: -10
==6177==   Warning: whilst reading EXIDX: ExtabEntryDecode: failed with error code: -10
==6177==   Warning: whilst reading EXIDX: ExtabEntryDecode: failed with error code: -10
==6177==   Warning: whilst reading EXIDX: Implausible EXIDX last entry size 161599; using 1 instead.
--6177--   Reading EXIDX entries: 7 attempted, 3 successful
--6177-- Reading syms from /lib/arm-linux-gnueabihf/ld-2.24.so
--6177--   Considering /usr/lib/debug/.build-id/97/ea942b1c123793352877a2fdb1197465de7fd7.debug ..
--6177--   .. build-id is valid
--6177-- Scheduler: using generic scheduler lock implementation.
--6177-- Reading suppressions file: /usr/lib/valgrind/default.supp
==6177== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-6177-by-Nick-on-???
==6177== embedded gdbserver: writing to   /tmp/vgdb-pipe-to-vgdb-from-6177-by-Nick-on-???
==6177== embedded gdbserver: shared mem   /tmp/vgdb-pipe-shared-mem-vgdb-6177-by-Nick-on-???
==6177== 
==6177== TO CONTROL THIS PROCESS USING vgdb (which you probably
==6177== don't want to do, unless you know exactly what you're doing,
==6177== or are doing some strange experiment):
==6177==   /usr/lib/valgrind/../../bin/vgdb --pid=6177 ...command...
==6177== 
==6177== TO DEBUG THIS PROCESS USING GDB: start GDB like this
==6177==   /path/to/gdb /opt/bin/racket
==6177== and then give GDB the following command
==6177==   target remote | /usr/lib/valgrind/../../bin/vgdb --pid=6177
==6177== --pid is optional if only one valgrind process is running
==6177== 
--6177-- REDIR: 0x401af80 (ld-linux-armhf.so.3:strlen) redirected to 0x58057098 (???)
--6177-- REDIR: 0x401b9e0 (ld-linux-armhf.so.3:memcpy) redirected to 0x580570c4 (???)
--6177-- REDIR: 0x401ab6c (ld-linux-armhf.so.3:strcmp) redirected to 0x580571d0 (???)
--6177-- Reading syms from /usr/lib/valgrind/vgpreload_core-arm-linux.so
--6177--   Considering /usr/lib/valgrind/vgpreload_core-arm-linux.so ..
--6177--   .. CRC mismatch (computed e4037255 wanted 2e14c213)
--6177--    object doesn't have a symbol table
--6177-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-arm-linux.so
--6177--   Considering /usr/lib/valgrind/vgpreload_memcheck-arm-linux.so ..
--6177--   .. CRC mismatch (computed 62fde5dd wanted ec35a666)
--6177--    object doesn't have a symbol table
--6177-- Reading syms from /usr/lib/arm-linux-gnueabihf/libarmmem.so
--6177--    object doesn't have a symbol table
--6177-- Reading syms from /lib/arm-linux-gnueabihf/libdl-2.24.so
--6177--   Considering /usr/lib/debug/.build-id/bb/7b7177de87be11ac17ae040eae7ee041ad33f7.debug ..
--6177--   .. build-id is valid
--6177-- Reading syms from /lib/arm-linux-gnueabihf/libm-2.24.so
--6177--   Considering /usr/lib/debug/.build-id/a4/bad95ff6ac92945217b0bc96043090af61af91.debug ..
--6177--   .. build-id is valid
--6177-- Reading syms from /lib/arm-linux-gnueabihf/libgcc_s.so.1
--6177--    object doesn't have a symbol table
--6177--   Reading EXIDX entries: 34 available
--6177--   Reading EXIDX entries: 21 attempted, 21 successful
--6177-- Reading syms from /lib/arm-linux-gnueabihf/libc-2.24.so
--6177--   Considering /usr/lib/debug/.build-id/03/11755699fcc430cadc85f73d9aad326cd758a8.debug ..
--6177--   .. build-id is valid
--6177-- REDIR: 0x49c2f40 (libc.so.6:rindex) redirected to 0x484a9f4 (rindex)
--6177-- REDIR: 0x49be30c (libc.so.6:malloc) redirected to 0x48474dc (malloc)
--6177-- REDIR: 0x49c3f2c (libc.so.6:memchr) redirected to 0x484c704 (memchr)
--6177-- REDIR: 0x49c4450 (libc.so.6:memmove) redirected to 0x484ef9c (memmove)
--6177-- REDIR: 0x49c4790 (libc.so.6:memset) redirected to 0x484eeb0 (memset)
--6177-- REDIR: 0x49c4ae0 (libc.so.6:memcpy) redirected to 0x484ce44 (memcpy)
--6177-- REDIR: 0x49c2be0 (libc.so.6:strlen) redirected to 0x484b1e4 (strlen)
--6177-- REDIR: 0x49be964 (libc.so.6:free) redirected to 0x4848b00 (free)
--6177-- REDIR: 0x49c39c8 (libc.so.6:strstr) redirected to 0x4850220 (strstr)
--6177-- REDIR: 0x49c23fc (libc.so.6:strcmp) redirected to 0x484c434 (strcmp)
--6177-- REDIR: 0x49c2da8 (libc.so.6:strncmp) redirected to 0x484bb1c (strncmp)
--6177-- REDIR: 0x49bedb0 (libc.so.6:calloc) redirected to 0x4849c28 (calloc)
--6177-- REDIR: 0x49c667c (libc.so.6:strchrnul) redirected to 0x484f8ac (strchrnul)
--6177-- REDIR: 0x49c2c60 (libc.so.6:strnlen) redirected to 0x484b12c (strnlen)
==6177== Invalid write of size 4
==6177==    at 0xCDCE4: scheme_jit_add_symbol (in /opt/bin/racket)
==6177==  Address 0x10 is not stack'd, malloc'd or (recently) free'd
==6177== 
SIGSEGV MAPERR si_code 1 fault on addr 0x10
==6177== 
==6177== Process terminating with default action of signal 6 (SIGABRT): dumping core
==6177==    at 0x497845C: raise (raise.c:51)
==6177==    by 0x4979823: abort (abort.c:89)
==6177==    by 0x1CAF23: fault_handler (in /opt/bin/racket)
==6177== 
==6177== HEAP SUMMARY:
==6177==     in use at exit: 2,279,367 bytes in 1,830 blocks
==6177==   total heap usage: 1,852 allocs, 22 frees, 2,292,902 bytes allocated
==6177== 
==6177== Searching for pointers to 1,830 not-freed blocks
==6177== Checked 8,742,580 bytes
==6177== 
==6177== LEAK SUMMARY:
==6177==    definitely lost: 0 bytes in 0 blocks
==6177==    indirectly lost: 0 bytes in 0 blocks
==6177==      possibly lost: 81,920 bytes in 1 blocks
==6177==    still reachable: 2,197,447 bytes in 1,829 blocks
==6177==         suppressed: 0 bytes in 0 blocks
==6177== Rerun with --leak-check=full to see details of leaked memory
==6177== 
==6177== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 6 from 3)
==6177== 
==6177== 1 errors in context 1 of 1:
==6177== Invalid write of size 4
==6177==    at 0xCDCE4: scheme_jit_add_symbol (in /opt/bin/racket)
==6177==  Address 0x10 is not stack'd, malloc'd or (recently) free'd
==6177== 
--6177-- 
--6177-- used_suppression:      6 dl-hack3-cond-1 /usr/lib/valgrind/default.supp:1236
==6177== 
==6177== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 6 from 3)
Aborted (core dumped)

Examples of SFML working: the C++ Pong example in SFML's source-code seems to run if I compile it, as do the Racket CSFML library examples (although they might have locked up the system once). No seg fault.

I can also get a simple racket HTDP program to run, which opens a window and renders into it, so the problem doesn't seem to be racket or its usual graphics libraries.

However, I have run out of ideas of things to check easily for the moment!

set-color! not working

No matter which parameters I pass to (set-color!), the color is always set to black. Racket 7.5, 7.6, Windows 10, CSFML 2.5, libsndfile-1.0.28.

Steps to reproduce:
(set-color! 7 255 255 255)
(color 7)
(draw ...)
-> nothing drawn on black background.

draw & draw-ex question

You used (bitwise-and byte #xff) in draw function for bitmask scanline
but in draw-ex function just get bit fields from input sprite and use them in bitmask scanlines

is this an error? I don't understand the need of bitwise-and in draw

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.