12-10-2012 12:32 PM
After searching for solution of long (8 sec or so) closing time of my app I've discovered that QNX creates a HUGE file cascades.core of 100 MB. Does any one has idea what can cause the creation of this file. From Linux I remember just a core dump which usually happens when there is a memory access violation. Thank you in advance
12-10-2012 03:01 PM
I've found the source of problem. This code generates the app dump core (80 MB) when closed
QImage lImage ("asset://images/testImage.jpg"); QImage lNewImage = lImage.rgbSwapped (); bb::ImageData lImageData = bb::ImageData::fromPixels (lNewImage.bits(), bb::PixelFormat::RGBX, lNewImage.width(), lNewImage.height(), lNewImage.bytesPerLine()); mImage = bb::cascades::Image (lImageData);
I also checked few apps that work with images on BlackBerry World and they apparently behave same way. Is this a bug or am I using the bb::cascades::Image in a strange way?
12-10-2012 03:17 PM
QNX creates this app dump when the application crashes. you could actually view the contents of this core dump within the QDE. I don't have the steps in my head but you can find it using the QDE Momentics Help within the QDE.
12-10-2012 03:22 PM
lew, thanks for reply. I understand that core dump is created when something goes wrong, but I cannot figure it out what exactly can go wrong with bb::cascades::Image. If I comment that line out (creation of bb::cascades::Image) everything works perfectly. Actually the app is stable and works well until I close it. And even then the exit code is 0 - should mean everything went OK.
12-10-2012 04:28 PM
look awkward? What excatly, the way I use the Image or that it crashes?
The app is not crashing, that's the problem but generates huge .core file. I'm using the QImage and Cascades Image objects together in order to implement the app, that extensively uses image manipulation methods (draw app, can be an example). Cascades doesn't support QPainter at all and this is one of the methods I found to convert from QImage to Image. But no matter which method I use to convert from QImage to Image on exit I have the .core file. And as I already written in first post few other apps in BlackBerry World for BB10 that work with images seem to have similar problem (long closing time). Gosh...