On 30/07/2013 00:57, Nathan Woodrow wrote:
>
> In src/core/qgsmaprenderer.cpp:
>
> > @@ -463,6 +463,13 @@ void QgsMapRenderer::render( QPainter* painter, double* forceWidthScale )
> >              QgsDebugMsg( "Caching enabled but layer redraw forced by extent change or empty cache" );
> >              QImage * mypImage = new QImage( mRenderContext.painter()->device()->width(),
> >                                              mRenderContext.painter()->device()->height(), QImage::Format_ARGB32 );
> > +            if ( mypImage->isNull() )
>
> Should we tell the user that it's a memory issue? I don't like the
> idea of just not doing anything.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/qgis/Quantum-GIS/pull/776/files#r5464414>.
>
The message the user will get is "Memory Allocation Error" from
src/app/qgscomposer.cpp. I agree that the error message should be
created where the error is detected, but I couldn't find any error
handling mechanism in the maprenderer.