[krita] [Bug 404080] Color Dodge - Logarithmic causes floating point exception (core dumped)

2019-02-09 Thread M
https://bugs.kde.org/show_bug.cgi?id=404080

--- Comment #9 from M  ---
Yes, it happens with Burn - Logarithmic as well as Color Dodge - Logarithmic.
Thank you, didn't notice that one at first.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 404080] Color Dodge - Logarithmic causes floating point exception (core dumped)

2019-02-08 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=404080

reptilli...@live.com changed:

   What|Removed |Added

   Assignee|krita-bugs-n...@kde.org |reptilli...@live.com

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 404080] Color Dodge - Logarithmic causes floating point exception (core dumped)

2019-02-08 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=404080

--- Comment #8 from reptilli...@live.com ---
Okay, I'll get around using a different code, but similar formula for the
logarithmic mode this or next week.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 404080] Color Dodge - Logarithmic causes floating point exception (core dumped)

2019-02-08 Thread Rebecca Breu
https://bugs.kde.org/show_bug.cgi?id=404080

--- Comment #7 from Rebecca Breu  ---
Only with Burn Logarithmic. (I hope I didn't miss any, though I definitely
tried to go trough all.)


Thread 830 "Thread (pooled)" received signal SIGFPE, Arithmetic exception.
[Switching to Thread 0x7fffae7fc700 (LWP 8503)]
0x7fffd4226de5 in cfColorBurnLogarithmic (src=0 '\000',
dst=255 '\377')
at
/home/appimage/persistent/krita/libs/pigment/compositeops/KoCompositeOpFunctions.h:908
908 return scale(log2(1.0 + abs(fsrc)/abs(inv(.99))/8));
(gdb)
(gdb) backtrace
#0  0x7fffd4226de5 in cfColorBurnLogarithmic (src=0 '\000',
dst=255 '\377')
at
/home/appimage/persistent/krita/libs/pigment/compositeops/KoCompositeOpFunctions.h:908
#1  0x7fffd481c679 in KoCompositeOpGenericSC >::composeColorChannels
(channelFlags=..., opacity=, maskAlpha=255 '\377',
dstAlpha=255 '\377',
dst=0x7fffa4160220 '\377' ..., srcAlpha=,
src=0xa487390 "")
at
/home/appimage/persistent/krita/libs/pigment/compositeops/KoCompositeOpGeneric.h:74
#2  KoCompositeOpBase > >::genericComposite
(channelFlags=..., params=..., this=)
at
/home/appimage/persistent/krita/libs/pigment/compositeops/KoCompositeOpBase.h:115
#3  KoCompositeOpBase(unsigned char, unsigned
char))> >::composite (this=, params=...)
at
/home/appimage/persistent/krita/libs/pigment/compositeops/KoCompositeOpBase.h:81
#4  0x70b1d4d6 in KoColorSpace::bitBlt (this=0x29f5590,
srcSpace=0x29f5590, params=..., op=op@entry=0x28ecfa0,
   
renderingIntent=renderingIntent@entry=KoColorConversionTransformation::IntentPerceptual,
conversionFlags=...)
at /home/appimage/persistent/krita/libs/pigment/KoColorSpace.cpp:511
#5  0x75725da3 in KisPainter::bitBltImpl (this=0x7fffae7fbd30,
dstX=512, dstY=192, srcDev=..., srcX=512, srcY=192,
srcWidth=srcWidth@entry=512, srcHeight=srcHeight@entry=320) at
/home/appimage/persistent/krita/libs/image/kis_painter.cc:751
#6  0x7571d7b0 in KisPainter::bitBlt (this=,
dstX=, dstY=, srcDev=...,
srcX=, srcY=, srcWidth=512, srcHeight=320)
at /home/appimage/persistent/krita/libs/image/kis_painter.cc:773
#7  0x7571d83a in KisPainter::bitBlt (this=this@entry=0x7fffae7fbd30,
pos=..., srcDev=..., srcRect=...)
at /home/appimage/persistent/krita/libs/image/kis_painter.cc:779
#8  0x75827c74 in KisLayerProjectionPlane::apply (this=0xb67bcb0,
painter=0x7fffae7fbd30, rect=...)
at
/home/appimage/persistent/krita/libs/image/kis_layer_projection_plane.cpp:99
#9  0x757debcb in KisAsyncMerger::compositeWithProjection (rect=...,
leaf=..., this=, this=)
at /home/appimage/persistent/krita/libs/image/kis_async_merger.cpp:355
#10 KisAsyncMerger::startMerge (this=this@entry=0x4a28b88, walker=...,
notifyClones=notifyClones@entry=true)
at /home/appimage/persistent/krita/libs/image/kis_async_merger.cpp:279
#11 0x7592baf9 in KisUpdateJobItem::runMergeJob (this=0x4a28b40)
at
/home/appimage/appimage-workspace/krita-build/libs/image/../../../../persistent/krita/libs/image/kis_update_job_item.h:118
#12 KisUpdateJobItem::run (this=0x4a28b40)
--Type  for more, q to quit, c to continue without paging--
at
/home/appimage/appimage-workspace/krita-build/libs/image/../../../../persistent/krita/libs/image/kis_update_job_item.h:86
#13 0x73cd14b2 in ?? () from
/home/appimage/appimage-workspace/deps/usr/lib/libQt5Core.so.5
#14 0x73cd431f in ?? () from
/home/appimage/appimage-workspace/deps/usr/lib/libQt5Core.so.5
#15 0x7fffedbad184 in start_thread (arg=0x7fffae7fc700) at
pthread_create.c:312
#16 0x7342903d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:111

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 404080] Color Dodge - Logarithmic causes floating point exception (core dumped)

2019-02-08 Thread Rebecca Breu
https://bugs.kde.org/show_bug.cgi?id=404080

Rebecca Breu  changed:

   What|Removed |Added

 CC||rebe...@rbreu.de

--- Comment #4 from Rebecca Breu  ---
I get the crash with both the latest nightly app image and with my build with
the Docker image. Here the trace back and debug info from the docker build:

-

#0  0x7fffd4804f64 in cfColorBurnLogarithmic (dst=98 'b',
src=255 '\377')
at
/home/appimage/persistent/krita/libs/pigment/compositeops/KoCompositeOpFunctions.h:911
#1  cfColorDodgeLogarithmic (dst=157 '\235', src=0 '\000')
at
/home/appimage/persistent/krita/libs/pigment/compositeops/KoCompositeOpFunctions.h:919
#2  KoCompositeOpGenericSC(unsigned char, unsigned
char))>::composeColorChannels (src=0xa487844 "",
srcAlpha=,
dst=0x7fffa861b3e4
"\235~u\377k=0\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377g8*\377"...,
dstAlpha=255 '\377',
maskAlpha=, opacity=, channelFlags=...)
at
/home/appimage/persistent/krita/libs/pigment/compositeops/KoCompositeOpGeneric.h:74
#3  0x7fffd4823350 in KoCompositeOpBase >
>::genericComposite (channelFlags=..., params=...,
this=)
at
/home/appimage/persistent/krita/libs/pigment/compositeops/KoCompositeOpBase.h:115
#4  KoCompositeOpBase(unsigned char, unsigned
char))> >::composite (this=, params=...)
at
/home/appimage/persistent/krita/libs/pigment/compositeops/KoCompositeOpBase.h:81
#5  0x70b1d4d6 in KoColorSpace::bitBlt (this=0x29f4500,
srcSpace=0x29f4500, params=..., op=op@entry=0x2902f90,
   
renderingIntent=renderingIntent@entry=KoColorConversionTransformation::IntentPerceptual,
conversionFlags=...)
at /home/appimage/persistent/krita/libs/pigment/KoColorSpace.cpp:511
#6  0x75725da3 in KisPainter::bitBltImpl (this=0x7fffafffed30,
dstX=384, dstY=512, srcDev=..., srcX=384, srcY=512,
srcWidth=srcWidth@entry=128, srcHeight=srcHeight@entry=448) at
/home/appimage/persistent/krita/libs/image/kis_painter.cc:751
#7  0x7571d7b0 in KisPainter::bitBlt (this=,
dstX=, dstY=, srcDev=...,
srcX=, srcY=, srcWidth=128, srcHeight=448)
at /home/appimage/persistent/krita/libs/image/kis_painter.cc:773
#8  0x7571d83a in KisPainter::bitBlt (this=this@entry=0x7fffafffed30,
pos=..., srcDev=..., srcRect=...)
at /home/appimage/persistent/krita/libs/image/kis_painter.cc:779
#9  0x75827c74 in KisLayerProjectionPlane::apply (this=0xb7201a0,
painter=0x7fffafffed30, rect=...)
at
/home/appimage/persistent/krita/libs/image/kis_layer_projection_plane.cpp:99
#10 0x757debcb in KisAsyncMerger::compositeWithProjection (rect=...,
leaf=..., this=, this=)
at /home/appimage/persistent/krita/libs/image/kis_async_merger.cpp:355
--Type  for more, q to quit, c to continue without paging--
#11 KisAsyncMerger::startMerge (this=this@entry=0xcc90638, walker=...,
notifyClones=notifyClones@entry=true)
at /home/appimage/persistent/krita/libs/image/kis_async_merger.cpp:279
#12 0x7592baf9 in KisUpdateJobItem::runMergeJob (this=0xcc905f0)
at
/home/appimage/appimage-workspace/krita-build/libs/image/../../../../persistent/krita/libs/image/kis_update_job_item.h:118
#13 KisUpdateJobItem::run (this=0xcc905f0)
at
/home/appimage/appimage-workspace/krita-build/libs/image/../../../../persistent/krita/libs/image/kis_update_job_item.h:86
#14 0x73cd14b2 in ?? () from
/home/appimage/appimage-workspace/deps/usr/lib/libQt5Core.so.5
#15 0x73cd431f in ?? () from
/home/appimage/appimage-workspace/deps/usr/lib/libQt5Core.so.5
#16 0x7fffedbad184 in start_thread (arg=0x7fffa700) at
pthread_create.c:312
#17 0x7342903d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:111

-

Krita

  Version: 4.2.0-pre-alpha (git ab53dc1)

Qt

  Version (compiled): 5.10.0
  Version (loaded): 5.10.0

OS Information

  Build ABI: x86_64-little_endian-lp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: linux
  Kernel Version: 4.9.0-8-amd64
  Pretty Productname: Ubuntu 14.04.5 LTS
  Product Type: ubuntu
  Product Version: 14.04

OpenGL Info

  Vendor:  VMware, Inc.
  Renderer:  "Gallium 0.4 on llvmpipe (LLVM 3.4, 256 bits)"
  Version:  "2.1 Mesa 10.1.3"
  Shading language:  1.30
  Requested format:  QSurfaceFormat(version 3.0, options
QFlags(DeprecatedFunctions), depthBufferSize 24,
redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1,
stencilBufferSize 8, samples -1, swapBehavior
QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 0, colorSpace
QSurfaceFormat::ColorSpace(DefaultColorSpace), profile 
QSurfaceFormat::OpenGLContextProfile(Com

[krita] [Bug 404080] Color Dodge - Logarithmic causes floating point exception (core dumped)

2019-02-08 Thread Rebecca Breu
https://bugs.kde.org/show_bug.cgi?id=404080

--- Comment #5 from Rebecca Breu  ---
And that was missing the actual error:

received signal SIGFPE, Arithmetic exception.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 404080] Color Dodge - Logarithmic causes floating point exception (core dumped)

2019-02-08 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=404080

--- Comment #6 from reptilli...@live.com ---
Does this happen with just Color Dodge Logarithmic? I'd like to know if there
are other problematic blend modes.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 404080] Color Dodge - Logarithmic causes floating point exception (core dumped)

2019-02-08 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=404080

--- Comment #3 from reptilli...@live.com ---
My guess is that it has to do with color management and operating system. Maybe
with dependencies.  Logarithmic modes use log2() which doesn't show up in all
the other blending modes, so it may have to do with something with that, though
I doubt it.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 404080] Color Dodge - Logarithmic causes floating point exception (core dumped)

2019-02-08 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=404080

reptilli...@live.com changed:

   What|Removed |Added

 CC||reptilli...@live.com

--- Comment #2 from reptilli...@live.com ---
I have tested the blending mode on Windows 10 x64, and assigned blending mode
to brush. No crash. Converted space, no crash. 16f mode, no crash. 8i mode, no
crash. I'm not really getting the issue here. I don't see this bug showing up
on my Kubuntu VM either. Can't replicate.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 404080] Color Dodge - Logarithmic causes floating point exception (core dumped)

2019-02-08 Thread Boudewijn Rempt
https://bugs.kde.org/show_bug.cgi?id=404080

Boudewijn Rempt  changed:

   What|Removed |Added

 CC||b...@valdyas.org

--- Comment #1 from Boudewijn Rempt  ---
Thanks for your report. I've asked the author to take a look (see
https://phabricator.kde.org/D15584)

-- 
You are receiving this mail because:
You are watching all bug changes.