Quantcast
Channel: bugs, errors - openFrameworks
Viewing all articles
Browse latest Browse all 636

threadChannelExample bugs? OF 0.9.0

$
0
0

@aurialLoop wrote:

Hi there

I've just installed 0.9.0 and VS 2015 community edition, as per instructions on openframeworks.cc. I'm running this on a Surface Pro 3 i5, Windows 10.

When running the threadChannelExample project in 64bit mode (haven't tried 32bit), I'm getting a:
"draw(): texture not allocated" debug message, and the memory usage just keeps skyrocketing..I stopped it after it reached 2GB.

I've determined the debug message about texture not being allocated is from the ImgAnalysisThread. In particular, there is the ofTexture texture object that does not appear to get allocated. It appears that the only call to texture, besides from draw(x,y) is texture.loadData(pixels). loadData(pixels) I assume isn't supposed to auto allocate?

As for the memory usage skyrocketing, that also appears to be a problem in the ImgAnalysisThread. I've tried commenting various parts of the code out to determine where the memory leak occurs, and it looks like it's happening in the ofThreadChannel toAnalyze object. Basically, every time toAnalyze.send(pixels); is called in the ImgAnalysisThread::analyze(ofPixels & pixels) function, memory usage goes up, but never down.

The reason I'm trying this example out is I read the blog.openframeworks.cc entry on using ThreadChannels, and thought this may be a great way to handle a multi-threaded application I wrote for 0.8.4.

Can someone else try and replicate this issue? Cheers

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 636

Latest Images

Trending Articles



Latest Images