Bug 366023

Summary: On MacOS X, "krita --export" cannot find input file.
Product: [Applications] krita Reporter: a246246_246-kde
Component: File formatsAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: sven.langkamp
Priority: NOR    
Version First Reported In: 3.0   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description a246246_246-kde 2016-07-23 23:29:54 UTC
Trying to convert file from command line, it cannot find file with dialog.

Also any command line invocation, even -h, output internal message to stderr:
QCoreApplication::arguments: Please instantiate the QApplication object first
krita.lib.pigment: Compiled for arch: ::Vc::AVXImpl
krita.lib.pigment: Features supported:
krita.lib.pigment: 	 "SSE2" 	---	 yes
krita.lib.pigment: 	 "SSSE3" 	---	 yes
krita.lib.pigment: 	 "SSE4.1" 	---	 yes
krita.lib.pigment: 	 "AVX " 	---	 yes
Set style "fusion"
OpenGL Info
  Vendor:  ATI Technologies Inc.
  Renderer:  AMD Radeon R9 M370X OpenGL Engine
  Version:  2.1 ATI-1.42.15
  Shading language:  1.20
  Requested format:  QSurfaceFormat(version 2.1, options QFlags(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 0, profile  0)
  Current format:    QSurfaceFormat(version 2.1, options QFlags(0x4), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 1, profile  0)
krita has opengl true
Setting XDG_DATA_DIRS "/Applications/krita.app/Contents/share"
Available translations QSet("en_US")
Available domain translations QSet("en_US")
Override language: ""


Reproducible: Always

Steps to Reproduce:
invoke 
$ /Applications/krita.app/Contents/MacOS/krita  --export --export-filename test.tif -- ./test.jpg 
where test.jpg is in current directory (/tmp).

Actual Results:  
Dialog opens that says:
Could not open file:///private/tmp/./logo.jpg.
Reason: Internal error.
And segmentation faults.

Expected Results:  
Converted file generated.
No dialog appeared.
No stderr message:
QCoreApplication::arguments: Please instantiate the QApplication object first
krita.lib.pigment: Compiled for arch: ::Vc::AVXImpl
krita.lib.pigment: Features supported:
krita.lib.pigment: 	 "SSE2" 	---	 yes
krita.lib.pigment: 	 "SSSE3" 	---	 yes
krita.lib.pigment: 	 "SSE4.1" 	---	 yes
krita.lib.pigment: 	 "AVX " 	---	 yes
Set style "fusion"
OpenGL Info
  Vendor:  ATI Technologies Inc.
  Renderer:  AMD Radeon R9 M370X OpenGL Engine
  Version:  2.1 ATI-1.42.15
  Shading language:  1.20
  Requested format:  QSurfaceFormat(version 2.1, options QFlags(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 0, profile  0)
  Current format:    QSurfaceFormat(version 2.1, options QFlags(0x4), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 1, profile  0)
krita has opengl true
Setting XDG_DATA_DIRS "/Applications/krita.app/Contents/share"
Available translations QSet("en_US")
Available domain translations QSet("en_US")
Override language: ""
KoJsonTrader will load its plugins from "/Applications/krita.app/Contents/PlugIns"
Comment 1 a246246_246-kde 2016-07-26 11:23:59 UTC
Seems to be fixed in krita-3.0.1-Alpha-4c91a18.dmg
Comment 2 Sven Langkamp 2016-07-27 16:58:43 UTC
Ok, if the problem reappears please reopen the bug report.