Bug 362080 - crash when opening or importing jpg
Summary: crash when opening or importing jpg
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: File formats (other bugs)
Version First Reported In: 2.9.11
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-22 10:59 UTC by fyn
Modified: 2016-04-23 11:37 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fyn 2016-04-22 10:59:54 UTC
Opening or importing a jpg (either by using the file menu or by dragging and dropping) causes a crash.  Have only tested with pngs and jpgs, pngs are fine.  Have tried a bunch of different jpg to make sure it's not the file I was trying to use that's the problem, crash occurs with all jpgs tried and all jpgs tried open fine in Pixelmator.

Reproducible: Always

Steps to Reproduce:
1. open Krita
2. drag a jpg into the drawing part (or open a new doc first, or file import/open, or drag onto existing doc as new layer, result is the same)

Actual Results:  
Crash.  Sometimes silent, sometimes triggers "Krita unexpectedly quit" dialogue.

Expected Results:  
jpg image is opened as a new layer (what I was originally trying to do) or at all.

I grabbed the thread that said "crashed" out of the console report as it's quite long and I have no idea what's relevant and what's noise, can provide more of it if necessary.

Process:               krita [1853]
Path:                  /Applications/krita.app/Contents/MacOS/krita
Identifier:            org.krita
Version:               ??? (???)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           krita [1853]
User ID:               501

Date/Time:             2016-04-22 16:59:26.812 +0800
OS Version:            Mac OS X 10.10.5 (14F1713)
Report Version:        11


Time Awake Since Boot: 12000 seconds

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_GUARD
Exception Codes:       0x4000000100000003, 0x00007fff95ac92b8

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	0x00007fff90156ba2 close + 10
1   libsystem_platform.dylib      	0x00007fff8a4eef1a _sigtramp + 26
2   ???                           	0x0000000000000007 0 + 7
3   libkritaui.14.dylib           	0x000000010a471cfe 0x10a2bd000 + 1789182
4   libkritaui.14.dylib           	0x000000010a46c104 0x10a2bd000 + 1765636
5   kritajpegimport.so            	0x000000010e2e3eb6 0x10e2d8000 + 48822
6   kritajpegimport.so            	0x000000010e2e1c8a 0x10e2d8000 + 40074
7   libkritaui.14.dylib           	0x000000010a5f04e0 0x10a2bd000 + 3355872
8   libkritaui.14.dylib           	0x000000010a5eda76 KisFilterChain::invokeChain() + 406
9   libkritaui.14.dylib           	0x000000010a5f7516 KisImportExportManager::importDocument(QString const&, QString const&, KisImportExportFilter::ConversionStatus&) + 2758
10  libkritaui.14.dylib           	0x000000010a5d5d2c KisDocument::openFile() + 2908
11  libkritaui.14.dylib           	0x000000010a5e2648 0x10a2bd000 + 3298888
12  libkritaui.14.dylib           	0x000000010a5e1379 0x10a2bd000 + 3294073
13  libkritaui.14.dylib           	0x000000010a5d50f0 KisDocument::openUrlInternal(KUrl const&) + 368
14  libkritaui.14.dylib           	0x000000010a5d4944 KisDocument::openUrl(KUrl const&, KisDocument::OpenUrlFlags) + 740
15  libkritaui.14.dylib           	0x000000010a60afde KisMainWindow::openDocumentInternal(KUrl const&, KisDocument*) + 174
16  libkritaui.14.dylib           	0x000000010a60ad0f KisMainWindow::openDocument(KUrl const&) + 111
17  libkritaui.14.dylib           	0x000000010a60f209 KisMainWindow::dropEvent(QDropEvent*) + 409
18  QtGui                         	0x000000010c09c2ee QWidget::event(QEvent*) + 2382
19  QtGui                         	0x000000010c402190 QMainWindow::event(QEvent*) + 992
20  QtGui                         	0x000000010c0513ac QApplicationPrivate::notify_helper(QObject*, QEvent*) + 252
21  QtGui                         	0x000000010c053dfa QApplication::notify(QObject*, QEvent*) + 5802
22  libkritaui.14.dylib           	0x000000010a5c7728 KisApplication::notify(QObject*, QEvent*) + 24
23  QtCore                        	0x000000010cef7786 QCoreApplication::notifyInternal(QObject*, QEvent*) + 118
24  QtGui                         	0x000000010bffdb82 0x10bfc8000 + 220034
25  com.apple.AppKit              	0x00007fff87e744dd NSCoreDragReceiveMessageProc + 345
26  com.apple.HIServices          	0x00007fff8651de72 DoMultipartDropMessage + 327
27  com.apple.HIServices          	0x00007fff8651db74 DoDropMessage + 41
28  com.apple.HIServices          	0x00007fff86522cfb CoreDragMessageHandler + 871
29  com.apple.CoreFoundation      	0x00007fff8a20ec68 __CFMessagePortPerform + 568
30  com.apple.CoreFoundation      	0x00007fff8a195c79 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41
31  com.apple.CoreFoundation      	0x00007fff8a195beb __CFRunLoopDoSource1 + 475
32  com.apple.CoreFoundation      	0x00007fff8a187767 __CFRunLoopRun + 2375
33  com.apple.CoreFoundation      	0x00007fff8a186bd8 CFRunLoopRunSpecific + 296
34  com.apple.HIToolbox           	0x00007fff9363556f RunCurrentEventLoopInMode + 235
35  com.apple.HIToolbox           	0x00007fff936352ea ReceiveNextEventCommon + 431
36  com.apple.HIToolbox           	0x00007fff9363512b _BlockUntilNextEventMatchingListInModeWithFilter + 71
37  com.apple.AppKit              	0x00007fff87c488ab _DPSNextEvent + 978
38  com.apple.AppKit              	0x00007fff87c47e58 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346
39  com.apple.AppKit              	0x00007fff87c3daf3 -[NSApplication run] + 594
40  QtGui                         	0x000000010c009de3 0x10bfc8000 + 269795
41  QtCore                        	0x000000010cef4b1d QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 477
42  QtCore                        	0x000000010cef7d37 QCoreApplication::exec() + 199
43  org.krita                     	0x0000000109edf9ff main + 3279
44  libdyld.dylib                 	0x00007fff8e58b5c9 start + 1
Comment 1 Halla Rempt 2016-04-22 11:02:23 UTC
Which version of OSX are you on? And could you please try the 3.0 alpha for OSX?
Comment 2 Halla Rempt 2016-04-22 11:02:45 UTC
Never mind the version, that's in the crash report.
Comment 3 fyn 2016-04-22 14:53:50 UTC
Superfast response time!

I downloaded Krita 3.0 Alpha 1 (from https://krita.org/item/krita-3-0-first-alpha-release/) and it only works for 10.11.  Gave me the much needed kick to actually do the major upgrade (which is why it took me so long to respond).  Happily the problem appears to have been resolved in the 3.0 alpha, I am able to open/import jpgs by either dragging and dropping or through the file menu.
Comment 4 Halla Rempt 2016-04-23 11:37:06 UTC
Hum, that version actually should have been able to run on 10.9 and 10.10 -- I test it in a 10.9 mac mini. It might be that 10.10 has its own weirdnesses, though, and I don't have that version to test with.