Hi, a minor bug but I suppose this one can hang a script using the krita command-line exporter : user is prompted to answer to the 'autosave-recovery' dialog even while exporting in CLI mode ( if a autosaved file is found ).
Git commit f939c37d7cfd85631c771d5b0e8a5ef1c2e23dc7 by Boudewijn Rempt. Committed on 21/05/2016 at 14:36. Pushed by rempt into branch 'master'. M +11 -6 libs/ui/KisApplication.cpp M +2 -4 libs/ui/KisApplication.h http://commits.kde.org/krita/f939c37d7cfd85631c771d5b0e8a5ef1c2e23dc7
David, do you remember on which version of Krita you saw this bug? I am not sure the quickfix done to close this bug made really would change anything, but it add complexitity to the startup, so would like to know if this fix really was needed :) So perhaps the bug was already solved by some other changes before.
> David, do you remember on which version of Krita you saw this bug? @Friedrich ; I'm building daily Krita, so I think git~master of 2016-05-19 was the date I could trigger the bug. > I am not sure the quickfix done to close this bug made really would change anything, but it add complexitity to the startup, so would like to know if this fix really was needed :) @Friedrich : The bug is still reproductible; I just forgot to ran another test. Since 'mergedimage.png' inside the *.kra exist, all my script prefer to extract this rather than running a full command-line re-render and export. Here is how you can study this bug: How to reproduce: =============== 1. Select a *.kra file on your disk, eg. myartwork.kra 2. Copy it to .myartwork.kra-autosave.kra to create a fake autosaved copy 3. then run: krita myartwork.kra --export output.png Result: ====== You'll have the pop-up, and even the command-line exporter will segfault.
Git commit 4af9e8d57e928809d4651fcabc15f10662fbcfba by Boudewijn Rempt. Committed on 26/05/2016 at 16:52. Pushed by rempt into branch 'master'. Fix the other autosave recovery interfering with exporting files on the command line. Note that the command is: ./dev/i/bin/krita bla.kra --export --export-filename bla.png M +9 -1 libs/ui/KisApplication.cpp M +1 -8 libs/ui/KisDocument.cpp M +0 -8 libs/ui/KisDocument.h http://commits.kde.org/krita/4af9e8d57e928809d4651fcabc15f10662fbcfba