Quantcast
Channel: Terminated due to memory error
Browsing all 34 articles
Browse latest View live

Terminated due to memory error

yangyangcv wrote: i'm trying to load a series of images in setup( ) with the following code: std::vector<ofImage> imgs_;//declared in testApp.h //in setup( ) of testApp.cpp imgs_.resize(300);...

View Article



Terminated due to memory error

Ahbee wrote: allocate on the heap. Cuz stack has limited memory Declare your array as. vector<shared_ptr<ofImage> > imgs_ Read full topic

View Article

Terminated due to memory error

yangyangcv wrote: thanks for the reply. i'm not familiar with share_ptr, so i change my code to: in testApp.h std::vector<ofImage* >imgs_; in setup() of testApp.mm imgs_.resize(300); for(int...

View Article

Terminated due to memory error

Ahbee wrote: if you are using pointers you have to use '->' img->loadImage(name) Read full topic

View Article

Terminated due to memory error

yangyangcv wrote: yep. it's a typo when i posting. my original code compiles, but the problem is the memory error Read full topic

View Article


Terminated due to memory error

Ahbee wrote: what is the maximum number of images you can load? Read full topic

View Article

Terminated due to memory error

yangyangcv wrote: about 90, with 1024*768 RGBA 8 bit Read full topic

View Article

Terminated due to memory error

Christopher Baker wrote: By default ofImage loads the pixels onto the graphics card memory. all 300 may not fit into the GPU memory simultaneously. If you must have all images in memory at once, load...

View Article


Terminated due to memory error

yangyangcv wrote: well, with a vector of ofPixels i can load about 170 images before memory error comes out. so it's a big progress, but still not so satisfying Read full topic

View Article


Terminated due to memory error

yangyangcv wrote: i also tried ofxImageSequence. with preloadAllFrames() on or off, still memory errors. very weird. is 300 images a big deal for ipad3? Read full topic

View Article

Terminated due to memory error

Ahbee wrote: In xCode can you check the memory usage, I think you press command+6 then click Memory Usage in the project navigator while your running your app. Do this with 170 images cause you said...

View Article

Terminated due to memory error

Ahbee wrote: Also can you post the code you used with ofPixels? Read full topic

View Article

Terminated due to memory error

yangyangcv wrote: here are the codes: ofApp.h #pragma once #include "ofMain.h" #include "ofxiOS.h" #include "ofxiOSExtras.h" class ofApp : public ofxiOSApp { public: void setup(); void update(); void...

View Article


Terminated due to memory error

yangyangcv wrote: for the above codes, i can load about 200 images. memory usage is 458M Read full topic

View Article

Terminated due to memory error

Ahbee wrote: each image will be about 3.14 MB. So 458 looks right. The ipad3 only has 1 GB. And each application is only allowed to use 512 MB of ram max. Looks like you maxed out Read full topic

View Article


Terminated due to memory error

trentbrooks wrote: You have power to burn on an ipad3, you could take all the loading out of the setup and have a streamer of sorts. eg. Have a thread loading a bunch of ofPixels into a fixed size...

View Article

Terminated due to memory error

yangyangcv wrote: yes. maybe this is the only way.btw, i just find a weird thing that, i run the same app on ipad3 and iPad mini2 respectively, but the memory usage is 230M and 430M respectively....

View Article


Terminated due to memory error

@yangyangcv wrote: i'm trying to load a series of images in setup( ) with the following code: std::vector<ofImage> imgs_;//declared in testApp.h //in setup( ) of testApp.cpp imgs_.resize(300);...

View Article

Terminated due to memory error

@Ahbee wrote: allocate on the heap. Cuz stack has limited memory Declare your array as. vector<shared_ptr<ofImage> > imgs_ Read full topic

View Article

Terminated due to memory error

@yangyangcv wrote: thanks for the reply. i'm not familiar with share_ptr, so i change my code to: in testApp.h std::vector<ofImage* >imgs_; in setup() of testApp.mm imgs_.resize(300); for(int...

View Article
Browsing all 34 articles
Browse latest View live


Latest Images