Created attachment 123480 [details] Mac OS crash report fro Krita SUMMARY I am using Krita on a Mac running Mojave 10.14.6. I am finding that opening any .psd file causes an instant crash. ( I have tested various documents even the most simple single layer file. ) I am using the latest 4.2.7 build. If I go back to a Krita version 3 the psd’s open OK. I have not had this problem until recently so I am not sure if Krita has changed or something in my system.
Hey, thanks for adding the crashlog. Could you share the PSD file that causes the crash? That would really speed up resolving the bug.
Hi, Here is a simple one. Thanks, Stephen
I am sorry, a mistake must have happened? I cannot see the psd?
Created attachment 123498 [details] Photoshop image file Not sure if you received .PSD image so sending it again here. Had to reduce size as it was over 4000Kb.
I can open it here on 4.2.7, 4.2.6, the nightly... Does the file you attached crash for you? Or do you think it's the file reduction that may have vanished the crash?
Weird, it also opens fine on the project's one and only Macbook Pro. (Still running Mojave).
Hi, Thanks for your messages. The reduced PSD still crashes Krita 4.2.7 and also 4.2.6 as do all other PSDs I have, yet all will open successfully in Krita 3.3.3. Curiously if I save a Krita file as PSD then re-open it it also crashes. I guess if you have no problem then it must be something on my machine. I did a Mojave update last week so maybe it is that. I'll just have to use version 3 an hope it resolves in the future but any ideas you have would be welcome. Stephen
This is pretty strange... I'm beginning to wonder whether krita is trying to load a psd plugin that doesn't belong itself.
Hm, this could be likely. The difference between 3 and 4 is the way plugins are loaded: 3 used desktop files, 4 uses information embedded in the plugin. Could you check how many kritapsdimport.so files there are on your system?
Created attachment 123514 [details] attachment-14968-0.txt When I search for the kind of file you request (kritapsdimport.so) I get referred to my crash report which does list them. Please find attached. Also the ’krita log’ from the Library/application support Stephen
Created attachment 123515 [details] crash report krita 4.2.7.rtf
Created attachment 123516 [details] krita.log
Hm, so that isn't the list of files called psdimport.so, which is what I actually was interested in.
or rather, kritapsdimport.so, of course.
Created attachment 123519 [details] attachment-23449-0.txt I had trouble finding it but I guess this is the one from the 4.2.7 plugins folder.
Created attachment 123520 [details] kritapsdimport.so
Hi, Have you had any success in locating what the PSD file problem in 4.2.7 is being caused by? Thanks
Well, I am certain it is not a bug in Krita or a problem with the builds I make, but a problem on your system. A newer version of Krita, or an older version, won't solve the issue. I think that krita might be loading the wrong plugin library from another version of Krita, maybe because something has messed up the DYLD paths on your mac. That's why I wanted to know in which places there's a kritapsdimport.so on your system. You've attached the actual kritapsdimport.so file, but that's not what I needed to know; ideally, you'd open the terminal and execute the following command: find / -name kritapsdimport.so 1>log 2>/dev/null The output should be the full list of all instances of that file. Please attatch the log file to the bug report. Then it would be a good thing to look at all environment variables: set > env.log And then attach that file as well. Then we might begin to figure out what's up. It would also be useful to login on your mac as a guest or separate user and try to run krita and import a psd file.
Created attachment 123680 [details] file search
Created attachment 123681 [details] attachment-9554-0.html I am replying to the email because I am not sure if attachemnets went with KDE page. Hi, Thank you for your interest in my issue. This is what I have tried: I found the ‘kritapsdimport.so’ files on my machine which were for other earlier versions had had installed and deleted all those versions. I also deleted ‘Library/Application support/krita folder’ —still same crash problem on opening PSD file in 4.2.7 I logged in as a guest user and installed a new copy of 4.2.7 —still same crash problem. I installed 4.2.7 on another Mac (running Sierra 10.12.6) that has never had Krita installed and saved a new file as a .PSD. —still same crash problem on opening that file. I was wondering if the issue was an upgrade of Mojave which I installed 2-3 weeks ago but it is apparently nothing to do with Mojave. I have attached the krita.log and recent crash report. > On 2 Nov 2019, at 09:37, Boudewijn Rempt <bugzilla_noreply@kde.org> wrote: > > https://bugs.kde.org/show_bug.cgi?id=413444 > > --- Comment #18 from Boudewijn Rempt <boud@valdyas.org> --- > Well, I am certain it is not a bug in Krita or a problem with the builds I > make, but a problem on your system. A newer version of Krita, or an older > version, won't solve the issue. > > I think that krita might be loading the wrong plugin library from another > version of Krita, maybe because something has messed up the DYLD paths on your > mac. That's why I wanted to know in which places there's a kritapsdimport.so on > your system. > > You've attached the actual kritapsdimport.so file, but that's not what I needed > to know; ideally, you'd open the terminal and execute the following command: > > > find / -name kritapsdimport.so 1>log 2>/dev/null > > The output should be the full list of all instances of that file. Please > attatch the log file to the bug report. > > Then it would be a good thing to look at all environment variables: > > set > env.log > > And then attach that file as well. Then we might begin to figure out what's up. > > It would also be useful to login on your mac as a guest or separate user and > try to run krita and import a psd file. > > -- > You are receiving this mail because: > You reported the bug.
Created attachment 123682 [details] attachment-9554-1.html
Created attachment 123683 [details] attachment-9554-2.html
Created attachment 123684 [details] attachment-9554-3.html
Created attachment 123685 [details] attachment-9554-4.html
Created attachment 123686 [details] Screenshot 2019-11-02 at 16.26.51.png
Created attachment 123687 [details] psd import find.txt
Created attachment 123688 [details] krita.log
Created attachment 123689 [details] Crash report-2 Nov.rtf
This is so weird... I still cannot reproduce this on my mac, but if it happens on a completely separate mac with a different version of macos and only one copy of Krita installed, I must be wrong and it cannot be something specific to your system.
Okay, I found the line Krita crashes on, and I'll make a workaround... If that line doesn't exist, Krita cannot crash :-)
Git commit 959e4e355f685b3e68266d1263a7f8bd24c7f800 by Boudewijn Rempt. Committed on 04/11/2019 at 11:48. Pushed by rempt into branch 'master'. Work around a bug in clang Under some circumstances, the take() method of QScopedPointer seems to cause a crash on macOS, probably because of an issue in the compiler? It's the only place where we use clang. M +3 -2 plugins/impex/psd/psd_resource_section.cpp https://invent.kde.org/kde/krita/commit/959e4e355f685b3e68266d1263a7f8bd24c7f800
Git commit 331426cd3b7b26ab6474a4ac60d5bff88e55ac5d by Boudewijn Rempt. Committed on 04/11/2019 at 11:49. Pushed by rempt into branch 'krita/4.2'. Work around a bug in clang Under some circumstances, the take() method of QScopedPointer seems to cause a crash on macOS, probably because of an issue in the compiler? It's the only place where we use clang. (cherry picked from commit 959e4e355f685b3e68266d1263a7f8bd24c7f800) M +3 -2 plugins/impex/psd/psd_resource_section.cpp https://invent.kde.org/kde/krita/commit/331426cd3b7b26ab6474a4ac60d5bff88e55ac5d
Hi, I just downloaded your build #194 and it works Ok for opening PSD files. Well done you guys - you are very clever. Stephen > On 4 Nov 2019, at 11:49, Boudewijn Rempt <bugzilla_noreply@kde.org> wrote: > > https://bugs.kde.org/show_bug.cgi?id=413444 > > Boudewijn Rempt <boud@valdyas.org> changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > Latest Commit|https://invent.kde.org/kde/ |https://invent.kde.org/kde/ > |krita/commit/959e4e355f685b |krita/commit/331426cd3b7b26 > |3e68266d1263a7f8bd24c7f800 |ab6474a4ac60d5bff88e55ac5d > > --- Comment #32 from Boudewijn Rempt <boud@valdyas.org> --- > Git commit 331426cd3b7b26ab6474a4ac60d5bff88e55ac5d by Boudewijn Rempt. > Committed on 04/11/2019 at 11:49. > Pushed by rempt into branch 'krita/4.2'. > > Work around a bug in clang > > Under some circumstances, the take() method of QScopedPointer > seems to cause a crash on macOS, probably because of an issue > in the compiler? It's the only place where we use clang. > (cherry picked from commit 959e4e355f685b3e68266d1263a7f8bd24c7f800) > > M +3 -2 plugins/impex/psd/psd_resource_section.cpp > > https://invent.kde.org/kde/krita/commit/331426cd3b7b26ab6474a4ac60d5bff88e55ac5d > > -- > You are receiving this mail because: > You reported the bug.
Thanks for testing!
*** Bug 413906 has been marked as a duplicate of this bug. ***