Closed deism closed 8 years ago
@deism forge
requires OpenGL >= 3.3 minimum. I am not sure how you are able to use OpenGL 1.2 (based on your bullet point (2)). Can you confirm your OpenGL version, may be what you are seeing is side effect of version mismatch problem.
oops! my mistake, OpenCL version is 1.2 in Nvidia cuda sdk 7.5
I also found memory growing in draw function of Class Window. Let's say 1024 x 1024 image at 8 FPS, the memory grows 4k per second.
The memory stops growing after 1200 frames, This may be the mechanism of openCL, anyway, there is memory issue in the destructor of fg::Image, I have to make image as global object to avoid running out of memory
@deism what version of arrayfire are you using ? Does the memory problem still occur if you don't do any forge related calls ? (i.e. a simple device
@pavanky I checked out master and dev on 16-08-09, both have same issue. If I don't call forge there is no problem. but simply calling forge as below will reproduce issue:
for (int i = 0; i < 10000; i++) { cout << "run " << i << endl; fg::Image img(w, h, FG_GRAYSCALE, fg::u8); }
@deism I am able to reproduce the issue on my end and looking into the issue.
@deism I have fixed this problem and the corresponding changes are part of the PR #89 . I will keep this open until the PR is merged. Thank you for reporting the problem.
Well done, thanks.
Hi,
I need to display a multi-frame data file, when I keep drawing FG window, the memory is growing, below is details: