And for your little demo game?
Parsing command line Game path: <none provided> Frameskip limit: 5 frames CPU throttle: ON Console verbosity: L4Initializing AllegroInitializing DyadLoading system configurationOpening File 0 as '~sys/system.ini'Initializing async managerInitializing Mersenne TwisterSeeding MT19937 (1437426614)Initializing GalileoInitializing AudialisCreating new Mixer 0 at 44 kHz Format: 2ch 44100 Hz, 16-bitIncrementing Mixer 0 refcount, new: 1Initializing inputOpening File 1 as '~sys/../minisphere.conf'Reading key 'keymap_Player1_MENU' from File 1Reading key 'keymap_Player1_UP' from File 1Reading key 'keymap_Player1_DOWN' from File 1Reading key 'keymap_Player1_LEFT' from File 1Reading key 'keymap_Player1_RIGHT' from File 1Reading key 'keymap_Player1_A' from File 1Reading key 'keymap_Player1_B' from File 1Reading key 'keymap_Player1_X' from File 1Reading key 'keymap_Player1_Y' from File 1Reading key 'keymap_Player2_MENU' from File 1Reading key 'keymap_Player2_UP' from File 1Reading key 'keymap_Player2_DOWN' from File 1Reading key 'keymap_Player2_LEFT' from File 1Reading key 'keymap_Player2_RIGHT' from File 1Reading key 'keymap_Player2_A' from File 1Reading key 'keymap_Player2_B' from File 1Reading key 'keymap_Player2_X' from File 1Reading key 'keymap_Player2_Y' from File 1Reading key 'keymap_Player3_MENU' from File 1Reading key 'keymap_Player3_UP' from File 1Reading key 'keymap_Player3_DOWN' from File 1Reading key 'keymap_Player3_LEFT' from File 1Reading key 'keymap_Player3_RIGHT' from File 1Reading key 'keymap_Player3_A' from File 1Reading key 'keymap_Player3_B' from File 1Reading key 'keymap_Player3_X' from File 1Reading key 'keymap_Player3_Y' from File 1Reading key 'keymap_Player4_MENU' from File 1Reading key 'keymap_Player4_UP' from File 1Reading key 'keymap_Player4_DOWN' from File 1Reading key 'keymap_Player4_LEFT' from File 1Reading key 'keymap_Player4_RIGHT' from File 1Reading key 'keymap_Player4_A' from File 1Reading key 'keymap_Player4_B' from File 1Reading key 'keymap_Player4_X' from File 1Reading key 'keymap_Player4_Y' from File 1File 1 no longer in use, deallocatingInitializing spriteset managerInitializing map engineInitializing persons managerInitializing JavaScript Duktape v1.2.2 Error evaluating compiler script RangeError: compiler recursion limit (line 8) CoffeeScript support not enabledInitializing Sphere API v2.0 (minisphere 1.5.3) minisphere sphere-legacy-api sphere-obj-constructors sphere-obj-props sphere-audialis sphere-coffeescript sphere-commonjs sphere-galileo sphere-map-engine sphere-spherefs minisphere-async-api minisphere-galileo-shaders minisphere-new-sockets minisphere-rng-object frameskip-api set-script-functionReading key 'Arrow' from File 0Loading Image 0 as '~sys/pointer.png'Reading key 'UpArrow' from File 0Loading Image 1 as '~sys/up_arrow.png'Reading key 'DownArrow' from File 0Loading Image 2 as '~sys/down_arrow.png'Reading key 'WindowStyle' from File 0Reading 16x16 Image 3 from open fileReading 16x16 Image 4 from open fileReading 16x16 Image 5 from open fileReading 16x16 Image 6 from open fileReading 16x16 Image 7 from open fileReading 16x16 Image 8 from open fileReading 16x16 Image 9 from open fileReading 16x16 Image 10 from open fileReading 16x16 Image 11 from open fileSetting up jump points for longjmpLooking for a game to launchOpening game '/Users/lux/dev/minisphere/bin/games/nmix/game.sgm' Title: NMix Author: NeoLogiX Resolution: 320x240Creating render windowLoading Image 12 as '~sgm/icon.png' Failed to load Image 12Loading Image 12 as '~sys/icon.png'Decrementing Image 12 refcount, new: 0Image 12 no longer in use, deallocatingOpening File 2 as 'keymap.mini'Reading key 'keymap_Player1_MENU' from File 2Reading key 'keymap_Player1_UP' from File 2Reading key 'keymap_Player1_DOWN' from File 2Reading key 'keymap_Player1_LEFT' from File 2Reading key 'keymap_Player1_RIGHT' from File 2Reading key 'keymap_Player1_A' from File 2Reading key 'keymap_Player1_B' from File 2Reading key 'keymap_Player1_X' from File 2Reading key 'keymap_Player1_Y' from File 2Reading key 'keymap_Player2_MENU' from File 2Reading key 'keymap_Player2_UP' from File 2Reading key 'keymap_Player2_DOWN' from File 2Reading key 'keymap_Player2_LEFT' from File 2Reading key 'keymap_Player2_RIGHT' from File 2Reading key 'keymap_Player2_A' from File 2Reading key 'keymap_Player2_B' from File 2Reading key 'keymap_Player2_X' from File 2Reading key 'keymap_Player2_Y' from File 2Reading key 'keymap_Player3_MENU' from File 2Reading key 'keymap_Player3_UP' from File 2Reading key 'keymap_Player3_DOWN' from File 2Reading key 'keymap_Player3_LEFT' from File 2Reading key 'keymap_Player3_RIGHT' from File 2Reading key 'keymap_Player3_A' from File 2Reading key 'keymap_Player3_B' from File 2Reading key 'keymap_Player3_X' from File 2Reading key 'keymap_Player3_Y' from File 2Reading key 'keymap_Player4_MENU' from File 2Reading key 'keymap_Player4_UP' from File 2Reading key 'keymap_Player4_DOWN' from File 2Reading key 'keymap_Player4_LEFT' from File 2Reading key 'keymap_Player4_RIGHT' from File 2Reading key 'keymap_Player4_A' from File 2Reading key 'keymap_Player4_B' from File 2Reading key 'keymap_Player4_X' from File 2Reading key 'keymap_Player4_Y' from File 2File 2 no longer in use, deallocatingInitializing shader supportLoading system fontReading key 'Font' from File 0Loading Font 0 as '~sys/system.rfn'Creating Image 13 at 128x192Creating Image 14 as 8x12 subimage of Image 13Creating Image 15 as 8x12 subimage of Image 13Creating Image 16 as 8x12 subimage of Image 13Creating Image 17 as 8x12 subimage of Image 13Creating Image 18 as 8x12 subimage of Image 13Creating Image 19 as 8x12 subimage of Image 13Creating Image 20 as 8x12 subimage of Image 13Creating Image 21 as 8x12 subimage of Image 13Creating Image 22 as 8x12 subimage of Image 13Creating Image 23 as 8x12 subimage of Image 13Creating Image 24 as 8x12 subimage of Image 13Creating Image 25 as 8x12 subimage of Image 13Creating Image 26 as 8x12 subimage of Image 13Creating Image 27 as 8x12 subimage of Image 13Creating Image 28 as 8x12 subimage of Image 13Creating Image 29 as 8x12 subimage of Image 13Creating Image 30 as 8x12 subimage of Image 13Creating Image 31 as 8x12 subimage of Image 13Creating Image 32 as 8x12 subimage of Image 13Creating Image 33 as 8x12 subimage of Image 13Creating Image 34 as 8x12 subimage of Image 13Creating Image 35 as 8x12 subimage of Image 13Creating Image 36 as 8x12 subimage of Image 13Creating Image 37 as 8x12 subimage of Image 13Creating Image 38 as 8x12 subimage of Image 13Creating Image 39 as 8x12 subimage of Image 13Creating Image 40 as 8x12 subimage of Image 13Creating Image 41 as 8x12 subimage of Image 13Creating Image 42 as 8x12 subimage of Image 13Creating Image 43 as 8x12 subimage of Image 13Creating Image 44 as 8x12 subimage of Image 13Creating Image 45 as 8x12 subimage of Image 13Creating Image 46 as 8x12 subimage of Image 13Creating Image 47 as 3x12 subimage of Image 13Creating Image 48 as 5x12 subimage of Image 13Creating Image 49 as 8x12 subimage of Image 13Creating Image 50 as 7x12 subimage of Image 13Creating Image 51 as 8x12 subimage of Image 13Creating Image 52 as 8x12 subimage of Image 13Creating Image 53 as 3x12 subimage of Image 13Creating Image 54 as 5x12 subimage of Image 13Creating Image 55 as 5x12 subimage of Image 13Creating Image 56 as 7x12 subimage of Image 13Creating Image 57 as 7x12 subimage of Image 13Creating Image 58 as 4x12 subimage of Image 13Creating Image 59 as 5x12 subimage of Image 13Creating Image 60 as 3x12 subimage of Image 13Creating Image 61 as 6x12 subimage of Image 13Creating Image 62 as 7x12 subimage of Image 13Creating Image 63 as 7x12 subimage of Image 13Creating Image 64 as 6x12 subimage of Image 13Creating Image 65 as 6x12 subimage of Image 13Creating Image 66 as 7x12 subimage of Image 13Creating Image 67 as 6x12 subimage of Image 13Creating Image 68 as 7x12 subimage of Image 13Creating Image 69 as 7x12 subimage of Image 13Creating Image 70 as 7x12 subimage of Image 13Creating Image 71 as 7x12 subimage of Image 13Creating Image 72 as 3x12 subimage of Image 13Creating Image 73 as 4x12 subimage of Image 13Creating Image 74 as 6x12 subimage of Image 13Creating Image 75 as 7x12 subimage of Image 13Creating Image 76 as 6x12 subimage of Image 13Creating Image 77 as 6x12 subimage of Image 13Creating Image 78 as 8x12 subimage of Image 13Creating Image 79 as 7x12 subimage of Image 13Creating Image 80 as 7x12 subimage of Image 13Creating Image 81 as 7x12 subimage of Image 13Creating Image 82 as 7x12 subimage of Image 13Creating Image 83 as 7x12 subimage of Image 13Creating Image 84 as 7x12 subimage of Image 13Creating Image 85 as 7x12 subimage of Image 13Creating Image 86 as 7x12 subimage of Image 13Creating Image 87 as 5x12 subimage of Image 13Creating Image 88 as 6x12 subimage of Image 13Creating Image 89 as 8x12 subimage of Image 13Creating Image 90 as 7x12 subimage of Image 13Creating Image 91 as 7x12 subimage of Image 13Creating Image 92 as 7x12 subimage of Image 13Creating Image 93 as 7x12 subimage of Image 13Creating Image 94 as 7x12 subimage of Image 13Creating Image 95 as 7x12 subimage of Image 13Creating Image 96 as 8x12 subimage of Image 13Creating Image 97 as 6x12 subimage of Image 13Creating Image 98 as 7x12 subimage of Image 13Creating Image 99 as 7x12 subimage of Image 13Creating Image 100 as 7x12 subimage of Image 13Creating Image 101 as 7x12 subimage of Image 13Creating Image 102 as 7x12 subimage of Image 13Creating Image 103 as 7x12 subimage of Image 13Creating Image 104 as 7x12 subimage of Image 13Creating Image 105 as 4x12 subimage of Image 13Creating Image 106 as 6x12 subimage of Image 13Creating Image 107 as 4x12 subimage of Image 13Creating Image 108 as 7x12 subimage of Image 13Creating Image 109 as 8x12 subimage of Image 13Creating Image 110 as 4x12 subimage of Image 13Creating Image 111 as 7x12 subimage of Image 13Creating Image 112 as 7x12 subimage of Image 13Creating Image 113 as 7x12 subimage of Image 13Creating Image 114 as 7x12 subimage of Image 13Creating Image 115 as 7x12 subimage of Image 13Creating Image 116 as 6x12 subimage of Image 13Creating Image 117 as 7x12 subimage of Image 13Creating Image 118 as 7x12 subimage of Image 13Creating Image 119 as 5x12 subimage of Image 13Creating Image 120 as 5x12 subimage of Image 13Creating Image 121 as 7x12 subimage of Image 13Creating Image 122 as 5x12 subimage of Image 13Creating Image 123 as 7x12 subimage of Image 13Creating Image 124 as 7x12 subimage of Image 13Creating Image 125 as 7x12 subimage of Image 13Creating Image 126 as 7x12 subimage of Image 13Creating Image 127 as 7x12 subimage of Image 13Creating Image 128 as 6x12 subimage of Image 13Creating Image 129 as 7x12 subimage of Image 13Creating Image 130 as 6x12 subimage of Image 13Creating Image 131 as 7x12 subimage of Image 13Creating Image 132 as 7x12 subimage of Image 13Creating Image 133 as 7x12 subimage of Image 13Creating Image 134 as 7x12 subimage of Image 13Creating Image 135 as 7x12 subimage of Image 13Creating Image 136 as 7x12 subimage of Image 13Creating Image 137 as 5x12 subimage of Image 13Creating Image 138 as 3x12 subimage of Image 13Creating Image 139 as 5x12 subimage of Image 13Creating Image 140 as 8x12 subimage of Image 13Creating Image 141 as 6x12 subimage of Image 13Creating Image 142 as 8x12 subimage of Image 13Creating Image 143 as 8x12 subimage of Image 13Creating Image 144 as 8x12 subimage of Image 13Creating Image 145 as 8x12 subimage of Image 13Creating Image 146 as 8x12 subimage of Image 13Creating Image 147 as 8x12 subimage of Image 13Creating Image 148 as 8x12 subimage of Image 13Creating Image 149 as 8x12 subimage of Image 13Creating Image 150 as 8x12 subimage of Image 13Creating Image 151 as 8x12 subimage of Image 13Creating Image 152 as 8x12 subimage of Image 13Creating Image 153 as 8x12 subimage of Image 13Creating Image 154 as 8x12 subimage of Image 13Creating Image 155 as 8x12 subimage of Image 13Creating Image 156 as 8x12 subimage of Image 13Creating Image 157 as 8x12 subimage of Image 13Creating Image 158 as 8x12 subimage of Image 13Creating Image 159 as 8x12 subimage of Image 13Creating Image 160 as 8x12 subimage of Image 13Creating Image 161 as 8x12 subimage of Image 13Creating Image 162 as 8x12 subimage of Image 13Creating Image 163 as 8x12 subimage of Image 13Creating Image 164 as 8x12 subimage of Image 13Creating Image 165 as 8x12 subimage of Image 13Creating Image 166 as 8x12 subimage of Image 13Creating Image 167 as 8x12 subimage of Image 13Creating Image 168 as 8x12 subimage of Image 13Creating Image 169 as 8x12 subimage of Image 13Creating Image 170 as 8x12 subimage of Image 13Creating Image 171 as 8x12 subimage of Image 13Creating Image 172 as 8x12 subimage of Image 13Creating Image 173 as 8x12 subimage of Image 13Creating Image 174 as 8x12 subimage of Image 13Creating Image 175 as 8x12 subimage of Image 13Creating Image 176 as 8x12 subimage of Image 13Creating Image 177 as 8x12 subimage of Image 13Creating Image 178 as 8x12 subimage of Image 13Creating Image 179 as 8x12 subimage of Image 13Creating Image 180 as 8x12 subimage of Image 13Creating Image 181 as 8x12 subimage of Image 13Creating Image 182 as 8x12 subimage of Image 13Creating Image 183 as 8x12 subimage of Image 13Creating Image 184 as 8x12 subimage of Image 13Creating Image 185 as 8x12 subimage of Image 13Creating Image 186 as 8x12 subimage of Image 13Creating Image 187 as 8x12 subimage of Image 13Creating Image 188 as 8x12 subimage of Image 13Creating Image 189 as 8x12 subimage of Image 13Creating Image 190 as 8x12 subimage of Image 13Creating Image 191 as 8x12 subimage of Image 13Creating Image 192 as 8x12 subimage of Image 13Creating Image 193 as 8x12 subimage of Image 13Creating Image 194 as 8x12 subimage of Image 13Creating Image 195 as 8x12 subimage of Image 13Creating Image 196 as 8x12 subimage of Image 13Creating Image 197 as 8x12 subimage of Image 13Creating Image 198 as 8x12 subimage of Image 13Creating Image 199 as 8x12 subimage of Image 13Creating Image 200 as 8x12 subimage of Image 13Creating Image 201 as 8x12 subimage of Image 13Creating Image 202 as 8x12 subimage of Image 13Creating Image 203 as 8x12 subimage of Image 13Creating Image 204 as 8x12 subimage of Image 13Creating Image 205 as 8x12 subimage of Image 13Creating Image 206 as 8x12 subimage of Image 13Creating Image 207 as 8x12 subimage of Image 13Creating Image 208 as 8x12 subimage of Image 13Creating Image 209 as 8x12 subimage of Image 13Creating Image 210 as 8x12 subimage of Image 13Creating Image 211 as 8x12 subimage of Image 13Creating Image 212 as 8x12 subimage of Image 13Creating Image 213 as 8x12 subimage of Image 13Creating Image 214 as 8x12 subimage of Image 13Creating Image 215 as 8x12 subimage of Image 13Creating Image 216 as 8x12 subimage of Image 13Creating Image 217 as 8x12 subimage of Image 13Creating Image 218 as 8x12 subimage of Image 13Creating Image 219 as 8x12 subimage of Image 13Creating Image 220 as 8x12 subimage of Image 13Creating Image 221 as 8x12 subimage of Image 13Creating Image 222 as 8x12 subimage of Image 13Creating Image 223 as 8x12 subimage of Image 13Creating Image 224 as 8x12 subimage of Image 13Creating Image 225 as 8x12 subimage of Image 13Creating Image 226 as 8x12 subimage of Image 13Creating Image 227 as 8x12 subimage of Image 13Creating Image 228 as 8x12 subimage of Image 13Creating Image 229 as 8x12 subimage of Image 13Creating Image 230 as 8x12 subimage of Image 13Creating Image 231 as 8x12 subimage of Image 13Creating Image 232 as 8x12 subimage of Image 13Creating Image 233 as 8x12 subimage of Image 13Creating Image 234 as 8x12 subimage of Image 13Creating Image 235 as 8x12 subimage of Image 13Creating Image 236 as 8x12 subimage of Image 13Creating Image 237 as 8x12 subimage of Image 13Creating Image 238 as 8x12 subimage of Image 13Creating Image 239 as 8x12 subimage of Image 13Creating Image 240 as 8x12 subimage of Image 13Creating Image 241 as 8x12 subimage of Image 13Creating Image 242 as 8x12 subimage of Image 13Creating Image 243 as 8x12 subimage of Image 13Creating Image 244 as 8x12 subimage of Image 13Creating Image 245 as 8x12 subimage of Image 13Creating Image 246 as 8x12 subimage of Image 13Creating Image 247 as 8x12 subimage of Image 13Creating Image 248 as 8x12 subimage of Image 13Creating Image 249 as 8x12 subimage of Image 13Creating Image 250 as 8x12 subimage of Image 13Creating Image 251 as 8x12 subimage of Image 13Creating Image 252 as 8x12 subimage of Image 13Creating Image 253 as 8x12 subimage of Image 13Creating Image 254 as 8x12 subimage of Image 13Creating Image 255 as 8x12 subimage of Image 13Creating Image 256 as 8x12 subimage of Image 13Creating Image 257 as 8x12 subimage of Image 13Creating Image 258 as 8x12 subimage of Image 13Creating Image 259 as 8x12 subimage of Image 13Creating Image 260 as 8x12 subimage of Image 13Creating Image 261 as 8x12 subimage of Image 13Creating Image 262 as 8x12 subimage of Image 13Creating Image 263 as 8x12 subimage of Image 13Creating Image 264 as 8x12 subimage of Image 13Creating Image 265 as 8x12 subimage of Image 13Creating Image 266 as 8x12 subimage of Image 13Creating Image 267 as 8x12 subimage of Image 13Creating Image 268 as 8x12 subimage of Image 13Creating Image 269 as 8x12 subimage of Image 13Decrementing Image 13 refcount, new: 257Decrementing Image 13 refcount, new: 256Incrementing Font 0 refcount, new: 1Calling game()JS Error: game.js:6 - Error: Hello, mixer!Shutting down map engineShutting down persons managerShutting down inputShutting down DuktapeShutting down DyadShutting down spriteset manager Objects created: 0 Cache hits: 0Shutting down AudialisDecrementing Mixer 0 refcount, new: 0Mixer 0 no longer in use, deallocatingengine(37980,0x108c34000) malloc: *** error for object 0x7febeb812200: pointer being freed was not allocated*** set a breakpoint in malloc_error_break to debugAbort trap: 6
Or it's on a different thread.
#define DUK_OPT_ASSERTIONS
So something wonky may actually be going on in Duktape...NEO, add this define to the top of duktape.c:Code: (c) [Select]#define DUK_OPT_ASSERTIONSAnd recompile. See if any asserts fail.
By the way, not related to the crash, but could you add a define for DUK_OPT_DEEP_C_STACK to duktape.c and let me know if CoffeeScript starts working again (i.e. the RangeError disappears)?
Thanks. Now if only I could figure out what's causing these crashes... I won't rule out that the bug is on my end. I know I've encountered similar issues in the past where things that should fail end up working on Windows preventing me from reproducing them. For instance, a while ago DaVince discovered a crash in 1.2.2 that I couldn't reproduce, caused by a double call to fclose(). This has the same effect as a double free in Linux but in Windows it doesn't raise any red flags whatsoever--it succeeds without complaint. I only figured it out after poring over the RawFile code for a while.
NEO, could you try building the latest Allegro from the github mirror and let me know if the crashes are gone?