Hey Slime, thanks so much for the link! Seems to be working so far, we'll see for sure when more players start the new build.
Thanks for this awesome engine
Search found 14 matches
- Wed Jul 31, 2019 4:34 pm
- Forum: Support and Development
- Topic: Windows 32-bit OpenAL32.dll crashes
- Replies: 3
- Views: 4890
- Mon Jul 22, 2019 12:37 pm
- Forum: Support and Development
- Topic: Windows 32-bit OpenAL32.dll crashes
- Replies: 3
- Views: 4890
Windows 32-bit OpenAL32.dll crashes
Basically all of my players are getting random but frequent engine crashes on Windows 32-bit (11.2). One player traced the problem to OpenAL32.dll. See a few crash reports here: https://love2d.org/imgmirrur/JKEGwkx.html https://i.imgur.com/4ZZFdpS.png If players delete the DLL from the distro and in...
- Thu Feb 28, 2019 1:36 pm
- Forum: Support and Development
- Topic: Debugging a malloc double free
- Replies: 2
- Views: 3959
Re: Debugging a malloc double free
I couldn't get a test case working because getting love2d import luasec is such a pain, but I dumbed down webapi.lua to use a single thread and queue up the request. I suspect that luasec (or openssl itself) is not thread-safe, Google kinda confirms this https://github.com/brunoos/luasec/issues/66. ...
- Tue Feb 26, 2019 1:09 pm
- Forum: Support and Development
- Topic: Debugging a malloc double free
- Replies: 2
- Views: 3959
Debugging a malloc double free
Hello! I recently added a lot of extra https calls and I see this error sometimes. I am using luasec to make the calls. thread.newThread lib/webapi.lua filesystem.newFileData lib/webapi.lua filesystem.newFile lib/webapi.lua love(78342,0x70000473f000) malloc: *** error for object 0x7fa822e31210: doub...
- Fri Jan 25, 2019 11:30 pm
- Forum: Support and Development
- Topic: Game uses 50MBs, still I get PANIC: (not enough memory)
- Replies: 7
- Views: 5669
Re: Game uses 50MBs, still I get PANIC: (not enough memory)
I found the reason why I was retaining way too much memory. Totally my fault. I implemented time-rewind (a'la Braid) 5 years ago and forgot how much memory it takes to store the game state at every frame for the last 10 seconds. A little bit of optimization decreased my memory footprint fourfold, sh...
- Fri Jan 25, 2019 7:57 pm
- Forum: Support and Development
- Topic: Game uses 50MBs, still I get PANIC: (not enough memory)
- Replies: 7
- Views: 5669
Re: Game uses 50MBs, still I get PANIC: (not enough memory)
Do you mean like maybe I should only draw what's in the viewport? Quickly render the next canvas when the player starts scrolling off the current one? Maybe. Sometimes I zoom out and then I kinda need to show almost the whole canvas (scaled down). Maybe I could pre-draw a single big 0.5x resolution ...
- Thu Jan 24, 2019 10:14 pm
- Forum: Support and Development
- Topic: Game uses 50MBs, still I get PANIC: (not enough memory)
- Replies: 7
- Views: 5669
Re: Game uses 50MBs, still I get PANIC: (not enough memory)
Cool trick that, shadowing. I wrote a small module to trace all love functions starting with 'new'. It also prints the function arguments. local function trace(moduleName, mod, funcName, func) mod[funcName] = function(...) print(moduleName..'.'..funcName, ...) return func(...) end end for moduleName...
- Thu Jan 24, 2019 5:47 pm
- Forum: Support and Development
- Topic: Game uses 50MBs, still I get PANIC: (not enough memory)
- Replies: 7
- Views: 5669
Re: Game uses 50MBs, still I get PANIC: (not enough memory)
Thanks Grump! Good to know that LOVE objects reside outside of the lua heap, therefore not counted. I really hope that's the answer, although I have more than 100 matches for love.*.new* so it takes a while to check. It looks like I'm not doing it inside the update/draw loop, but it's hard to trace....
- Thu Jan 24, 2019 1:02 pm
- Forum: Support and Development
- Topic: Game uses 50MBs, still I get PANIC: (not enough memory)
- Replies: 7
- Views: 5669
Game uses 50MBs, still I get PANIC: (not enough memory)
My game is getting big, I am using three 1500x10000 canvases for the background, and several particle systems. Since I started doing this, I'm getting random crashes with no output to the console and sometimes crashes with this output: Mem (MB) 56.4 Mem (MB) 52.5 PANIC: unprotected error in call to ...
- Sat Dec 22, 2018 5:21 pm
- Forum: Support and Development
- Topic: Where do I put external c libs? (luasec on macOS)
- Replies: 2
- Views: 2551
Re: Where do I put external c libs? (luasec on macOS)
Thank you, I got it working. It tried to load several other submodules too, so I had to pre-load them as well. local base = love.filesystem.getSourceBaseDirectory() for _, mod in pairs({'core', 'context', 'config', 'x509'}) do package.preload['ssl.'..mod] = package.loadlib(base..'/ssl.so', 'luaopen_...