Search found 769 matches

by SiENcE
Sun Mar 11, 2018 12:40 am
Forum: Support and Development
Topic: issue with love.thread
Replies: 23
Views: 1782

Re: issue with love.thread

I dunno, to me it's pretty self-evident that if you put more apples in a bin than you take out of it, it will eventually overflow. Yeah but i come from java, not c. So i thought love2d synchronises the threads itself, because there is no api for it nor anything mentioned in the wiki. I think what y...
by SiENcE
Sat Mar 10, 2018 11:01 pm
Forum: Support and Development
Topic: issue with love.thread
Replies: 23
Views: 1782

Re: issue with love.thread

You're right. I wish this explanation was in the wiki: -). I think that's essential when dealing with threads.
by SiENcE
Sat Mar 10, 2018 10:53 pm
Forum: Support and Development
Topic: issue with love.thread
Replies: 23
Views: 1782

Re: issue with love.thread

I always though love does this abstraction for me. Anyway, understood now. Thanks very much! But what is the best way to detect this rates? At which rate update is called? :update is called at a frequence of ~ 0.015. The thread must push a bit slower. So I have to get update DT to the thread to calc...
by SiENcE
Sat Mar 10, 2018 10:31 pm
Forum: Support and Development
Topic: issue with love.thread
Replies: 23
Views: 1782

Re: issue with love.thread

!? I do a push in my thread to the channel and do a pop in the main thread. What is wrong!? Or I don't understand what you mean when you say "feed it". Ok, maybe it's this: "pop doesn't remove the message." https://love2d.org/wiki/Channel:pop When i use channel:clear() in love:update it don't crash ...
by SiENcE
Sat Mar 10, 2018 10:24 pm
Forum: Support and Development
Topic: issue with love.thread
Replies: 23
Views: 1782

Re: issue with love.thread

Ok, it's a bad allocation in love 011, but in love 102 it's c++ library runtime error. But now i want to know what i'm doing wrong. I just pass one variable from thread to mainthread. I'm not increasing an array of something. So what is the right handling with threads? Build a thread calculate somet...
by SiENcE
Sat Mar 10, 2018 10:17 pm
Forum: Support and Development
Topic: issue with love.thread
Replies: 23
Views: 1782

Re: issue with love.thread

Yeah, 32 bit applications can't address more than 31 bits. Linux has a limit of 1.5 Gb, maybe Windows actually has a limit under 2 Gb too. As for the line, that's probably where the main thread is when one of the threads causes the crash. Thx for the explanation. Hm.. the bad alloc I understand, bu...
by SiENcE
Sat Mar 10, 2018 9:54 pm
Forum: Support and Development
Topic: issue with love.thread
Replies: 23
Views: 1782

Re: issue with love.thread

Why doesn't it makes sense? You create text so some memory has to be allocated. If it can't be allocated, the game will crash. Ok, i can't say something against this :). But it crashes at 1.2 gig. What pgimeno says. Or i'm wrong!? I've 16 gig and 5 gig free and 11 gig available. Maybe windows 7 - 6...
by SiENcE
Sat Mar 10, 2018 9:35 pm
Forum: Support and Development
Topic: issue with love.thread
Replies: 23
Views: 1782

Re: issue with love.thread

But line 107 makes no sense at all nor 105.

When you both speak about "memory" limit...what do you mean?

The process explorer tells me this when it crashes and this doesn't look like my memory is exploding :):
by SiENcE
Sat Mar 10, 2018 5:43 pm
Forum: Support and Development
Topic: issue with love.thread
Replies: 23
Views: 1782

Re: issue with love.thread

The documentation doesn't mention nested tables to be supported. I wonder if that's a documentation problem or a 0.10 problem. If it's a documentation problem, I'd have to look further. But I suspect it's a bug in 0.10 to not give an error when passed a table that is not flat. The nested table is n...
by SiENcE
Fri Mar 09, 2018 2:20 pm
Forum: Support and Development
Topic: issue with love.thread
Replies: 23
Views: 1782

issue with love.thread

I am currently working on Love Threads. Maybe I'm doing something wrong, but I'm getting this here: channel 1 true Error: Thread error (Thread: 0x008996a0) thread3.lua:8: bad allocation stack traceback: [C]: in function 'push' thread3.lua:8: in main chunk stack traceback: [string "boot.lua"]:637: in...