ok. I have not used renderStrategy at all in paint, but renderTarget: Canvas.FramebufferObject
I have also dialogs there, and only way I got it broken, is that vkb case. -kimmo From: devel-boun...@lists.sailfishos.org [mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Samuli Silvius Sent: Wednesday, August 13, 2014 10:20 PM To: Sailfish OS Developers Subject: Re: [SailfishDevel] app crashed when using Canvas in Dialog page No vkb used on that page. Only couple of TextSwitch:es -Samuli 2014-08-13 22:15 GMT+03:00 Kimmo Lindholm <kimmo.lindh...@eke.fi<mailto:kimmo.lindh...@eke.fi>>: Do you have virtual keyboard visible when closing dialog? https://together.jolla.com/question/44780/closing-dialog-with-vkb-active-breaks-canvas-on-returning-page/ -kimmo From: devel-boun...@lists.sailfishos.org<mailto:devel-boun...@lists.sailfishos.org> [mailto:devel-boun...@lists.sailfishos.org<mailto:devel-boun...@lists.sailfishos.org>] On Behalf Of Samuli Silvius Sent: Wednesday, August 13, 2014 10:07 PM To: Sailfish OS Developers Subject: Re: [SailfishDevel] app crashed when using Canvas in Dialog page Hi, Sdk produces this dump, cannot really figure out the reason? Or what backtrace you mean? -Samuli 2014-08-13 21:50 GMT+03:00 Andrey Kozhevnikov <coderusin...@gmail.com<mailto:coderusin...@gmail.com>>: try to get backtrace and check what exactly is the reason of crash. 14.08.2014 00:49, Samuli Silvius пишет: Hi, I have Canvas in Silica Dialog page but app crashes when leaving dialog page both with accept or cancel swipe. It does not crash always just quite often. the code: Canvas { id: imageCanvas visible: isImageUrl width: imgLoader.sourceSize.width height: imgLoader.sourceSize.height renderStrategy: Canvas.Immediate onPaint: { var ctx = getContext("2d") ctx.drawImage(imgLoader, 0, 0) } } Image { id: imgLoader visible: false source: isImageUrl ? url : "" } The idea is to save image to the gallery in onAccepted if user has selected that option as Canvas has save method which can be used to save image to a file. And it works fine, but causing app to crash sometimes when leaving Dialog page with cancel swipe. SDK outputs a long crash dump. -Samuli _______________________________________________ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org<mailto:devel-unsubscr...@lists.sailfishos.org> _______________________________________________ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org<mailto:devel-unsubscr...@lists.sailfishos.org> _______________________________________________ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org<mailto:devel-unsubscr...@lists.sailfishos.org>
_______________________________________________ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org