SetFromPixels with 29Megapixel image

I have a 29MP camera, I’m using an external library to load its frames as unsigned char*, it works well with a 1920x1080 camera. But when I’m trying this 6576x4380 resolution images I get an error while calling the setFromPixels function using an ofImage.

This works fine with another camera with lesser resolution.

  
void testApp::update(){  
	if( library_isLoaded() )  
	{  
		unsigned char * pixels = library_getData();  
		frame.setFromPixels(  
			pixels,  
			avigilon_getWidth(),  
			avigilon_getHeight(),  
			OF_IMAGE_COLOR);  
  
		loaded = true;  
	}  
}  

What could be the problem?

the problem is likely that your graphics card is running out of memory. you can try

frame.setUseTexture(false)

[Solved] The problem was that my external library cropped my frames for an unknown reason… OF still solid! (not that I ever doubted)