Search found 710 matches

by Germanunkol
Sun Jan 20, 2013 12:24 am
Forum: Support and Development
Topic: "Loosing" my thread?
Replies: 19
Views: 3125

Re: "Loosing" my thread?

Ah, thanks! I understand what you're saying... I should re-use the map generation thread and just set it to idle while I don't use it. I'll think about it, this might actually be quite simple to change... On my original problem: It seems to be related to the raspberry pi I run the game on. On my lap...
by Germanunkol
Sat Jan 19, 2013 10:49 am
Forum: Support and Development
Topic: "Loosing" my thread?
Replies: 19
Views: 3125

Re: "Loosing" my thread?

Having other difficulties with my PI right now, I'll report back when I've tried running the server using a proper thread:wait() call. I'm testing it on my other PC right now - I hope this will get me some answers. Thanks a lot at this point for all the hints and tipps! @ bartbes I must admit, your ...
by Germanunkol
Fri Jan 18, 2013 4:15 pm
Forum: Support and Development
Topic: "Loosing" my thread?
Replies: 19
Views: 3125

Re: "Loosing" my thread?

Uh, sorry, didn't read the last two posts. Maximum number of threads I ever use is around nineteen, which I know might not be the most efficient solution, but this is only at the first startup, to generate some images. I use the 249 threads AFTER each other. At the beginning of each round, a thread ...
by Germanunkol
Thu Jan 17, 2013 9:09 pm
Forum: Support and Development
Topic: "Loosing" my thread?
Replies: 19
Views: 3125

Re: "Loosing" my thread?

This time it happend one match earlier, match ID 248.

It must be something to do with memory or some variable overflowing... or something along those lines... otherwise it wouldn't always happen around the same match...
by Germanunkol
Thu Jan 17, 2013 8:53 am
Forum: Support and Development
Topic: "Loosing" my thread?
Replies: 19
Views: 3125

Re: "Loosing" my thread?

Thanks for trying! Did you start the server with a short match and cooldown time? -m and -c, minimum is 10... The last message I get is: mapGenerateThread, ID Thread 249 Which is the output of: print("mapGenerateThread, ID", mapGenerateThread, mapGenerateThreadNumber) Interstingly, I just noticed th...
by Germanunkol
Wed Jan 16, 2013 10:31 am
Forum: Support and Development
Topic: "Loosing" my thread?
Replies: 19
Views: 3125

Re: "Loosing" my thread?

I noticed that the lower the -m parameter is (= Match time) the faster the problem seems to occur, and usually around match 240 or 250. This looks to me like some memory overflow or something? But I checked... after the problem occured, the process takes only 3% or my RAM (running on a raspberry-pi,...
by Germanunkol
Tue Jan 15, 2013 6:17 pm
Forum: Support and Development
Topic: "Loosing" my thread?
Replies: 19
Views: 3125

Re: "Loosing" my thread?

Hm... problem is that it really needs to run for multiple hours to get the error to occur. Not sure if anyone wants to do that. It's also quite a large project, and I didn't want to ask anyone to debug it for me, I was hoping for hints on how I could go about debugging it myself. However, if anyone ...
by Germanunkol
Tue Jan 15, 2013 3:02 pm
Forum: Support and Development
Topic: "Loosing" my thread?
Replies: 19
Views: 3125

Re: "Loosing" my thread?

An update: When the problem occurs, it seems the thread doesn't even get to the first: file:write("1\n") Write instruction. I found out by emptying the log file before starting the thread... and it fills it, usually, but not when the problem occurs. So it seems the thread might not even be started c...
by Germanunkol
Tue Jan 15, 2013 3:00 pm
Forum: Support and Development
Topic: [love.thread] Communication between thread and main.lua
Replies: 3
Views: 1265

Re: [love.thread] Communication between thread and main.lua

You can also do it the other way around: Start the thread somewhere in the main thread: myThread = love.thread.newThread('thread', 'thread.lua') myThread:start() myThread:set('some var', 'something') And inside the thread, do: self = love.thread.getThread() self:set("myVar", "hello from inside the t...
by Germanunkol
Mon Jan 14, 2013 9:12 pm
Forum: Support and Development
Topic: "Loosing" my thread?
Replies: 19
Views: 3125

Re: "Loosing" my thread?

I do... this is part of the thread handling. That should do the job, right? -- then, check if there was an error: err = mapGenerateThread:get("error") if err then print("MAP GENERATING THREAD error: " .. err) love.event.quit() end However, the last thing I get on the console is: "mapGenerateThread" ...