Summary: | Crash when converting image to 32-bit float | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Alvin Wong <alvin> |
Component: | General | Assignee: | Krita Bugs <krita-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dimula73, halla |
Priority: | NOR | ||
Version: | git master (please specify the git hash!) | ||
Target Milestone: | --- | ||
Platform: | Microsoft Windows | ||
OS: | Microsoft Windows | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | detailed backtrace with gdb |
Description
Alvin Wong
2019-04-04 09:32:17 UTC
I cannot reproduce the rash :( It really looks like the crash in bug 406157 that was fixed in https://phabricator.kde.org/R37:d8abbc50a7c2f8032760fe5f5ed150b1f00ad11f Created attachment 119238 [details]
detailed backtrace with gdb
The gdb backtrace is much clearer
I can confirm on Windows; this doesn't happen on Linux. The 4.1.7 release doesn't crash on this. It looks like some operations involving 32-bit float colour space crashes at about the same place. Creating a 32-bit float file crashes. Converting an empty layer to 32-bit float then attempting to draw on it crashes. It crashes on a `vmovaps` instruction trying to access a YMMWORD PTR that is not 32-byte aligned, so memory alignment issue. Likely relevant GCC bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49001 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54412 Dmitry opened an issue on Vc: https://github.com/VcDevel/Vc/issues/241 Git commit f8e3380747729fbd385fbc45c2ee2ad1f44d2962 by Dmitry Kazakov. Committed on 10/04/2019 at 09:48. Pushed by dkazakov into branch 'master'. Add GUI switch for disabling AVX optimization on Widnows If you happen to have any random crashes while normal painting with a brush, and you are on Windows, then try to disable this option, it might help. M +12 -2 libs/pigment/compositeops/KoVcMultiArchBuildSupport.h M +11 -0 libs/ui/dialogs/kis_dlg_preferences.cc M +8 -1 libs/ui/forms/wdgperformancesettings.ui M +10 -0 libs/ui/kis_config.cc M +3 -0 libs/ui/kis_config.h https://commits.kde.org/krita/f8e3380747729fbd385fbc45c2ee2ad1f44d2962 Git commit da5d38cbe3b238ebe67254234c806de9db626938 by Dmitry Kazakov. Committed on 10/04/2019 at 09:48. Pushed by dkazakov into branch 'master'. Add a patch for VC to workaround GCC unaligned stack bug See original report for details: https://github.com/VcDevel/Vc/issues/241 A +36 -0 3rdparty/ext_vc/0001-Workaround-AVX-argument-failures.patch M +19 -2 3rdparty/ext_vc/CMakeLists.txt https://commits.kde.org/krita/da5d38cbe3b238ebe67254234c806de9db626938 I guess the bug can now be considered as "fixed" :) |