itksnap icon indicating copy to clipboard operation
itksnap copied to clipboard

libpng12 issue on Debian 10 (buster)

Open ofgulban opened this issue 4 years ago • 10 comments

Hi,

First of all, great software. I am happily using and citing ITK-SNAP for a few years.

I have recently switched to Debian 10 (64-bit) in one of my computers. After installing ITK-SNAP it throws the following error upon calling itksnap:

/usr/lib/snap-3.8.0/ITK-SNAP: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

It seems that libpng12 is superseded by libpng16 in newer releases. I am wondering whether you could address this issue in the future or have any suggestions to have ITK-SNAP working on Debian 10.

ofgulban avatar Oct 14 '19 13:10 ofgulban

As a temporary fix, could you see if symlinking libpng12.so.0 to point to libpng16.so.0 works?

Thank you for the nice comments on the software! Paul

On Mon, Oct 14, 2019 at 9:36 AM Omer Faruk Gulban [email protected] wrote:

Hi,

First of all, great software. I am happily using and citing ITK-SNAP for a few years.

I have recently switched to Debian 10 (64-bit) in one of my computers. After installing ITK-SNAP it throws the following error upon calling itksnap:

/usr/lib/snap-3.8.0/ITK-SNAP: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

It seems that libpng12 is superseded by libpng16 in newer releases. I am wondering whether you could address this issue in the future or have any suggestions to have ITK-SNAP working.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pyushkevich/itksnap/issues/5?email_source=notifications&email_token=AAJPEW3MAIYIBAYGMGAMLA3QORYXBA5CNFSM4JAPHTSKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HRS74DQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJPEW32HFJFMUQH6MXPQ2DQORYXBANCNFSM4JAPHTSA .

-- Paul A. Yushkevich, Ph.D. Associate Professor Penn Image Computing and Science Laboratory Department of Radiology University of Pennsylvania

pyushkevich avatar Oct 14 '19 19:10 pyushkevich

Thanks for the quick response. I have symlinked libpng12.so.0 to libpng16.so.16. The error has changed to:

itksnap
/usr/lib/snap-3.8.0/ITK-SNAP: /lib/x86_64-linux-gnu/libpng12.so.0: version `PNG12_0' not found (required by /usr/lib/snap-3.8.0/libQt5Gui.so.5)

ofgulban avatar Oct 15 '19 11:10 ofgulban

Bummer

This is not good. Seems like need to build with png16.

Is there any way to install an older png library on the system in parallel with the png12? This must not be unique to ITK-SNAP but affecting all QT5 applications.

Best Paul

On Tue, Oct 15, 2019 at 7:07 AM Omer Faruk Gulban [email protected] wrote:

Thanks for the quick response. I have symlinked libpng12.so.0 to libpng16.so.16. The error has changed to:

itksnap /usr/lib/snap-3.8.0/ITK-SNAP: /lib/x86_64-linux-gnu/libpng12.so.0: version `PNG12_0' not found (required by /usr/lib/snap-3.8.0/libQt5Gui.so.5)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pyushkevich/itksnap/issues/5?email_source=notifications&email_token=AAJPEWZ3DCO2AG7FZNZ5PXLQOWP7VA5CNFSM4JAPHTSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBILJ2Q#issuecomment-542160106, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJPEWZ4NQMXXRFKCUNRQXLQOWP7VANCNFSM4JAPHTSA .

-- Paul A. Yushkevich, Ph.D. Associate Professor Penn Image Computing and Science Laboratory Department of Radiology University of Pennsylvania

pyushkevich avatar Oct 16 '19 17:10 pyushkevich

It seems that there is no way to have libpng12 together with png16 in Debian 10. Apparently libpng<16 has a serious vulnerability issue (see here).

I am trying to build ITK-SNAP from source. I have followed the general instructions (here) by preparing ITK, VTK and QT5 builds. However I am getting multiple errors from cmake related to CURL_LIBRARY.

I see that in itksnap/CMake/standalone.cmake it is commented that CURL is a required part of ITK-SNAP. Does this mean that I need to build CURL like the other dependencies and add its path in cmake similar to ITK and VTK? Am I on the right track?

ofgulban avatar Oct 18 '19 16:10 ofgulban

Hi

Sorry for the late reply. I just finished compiling ITK-SNAP on Debian 10. You can find the binary here: https://sourceforge.net/projects/itk-snap/files/itk-snap/3.8.0/

Please let me know if that works.

Regarding CURL, you need to install libcurl-dev.

Here is the dump of all the apt-get commands I had to run to build on Debian 10:

sudo apt-get install tmux sudo apt-get install vim sudo apt-get install git sudo apt-get install cmake sudo apt-get install libxt sudo apt-get install libxt-dev sudo apt-get install libcurl-dev sudo apt-get install libcurl4-openssl-dev sudo apt-get install wget sudo apt-get install xorg task-gnome-desktop

I used VTK 7.1.1 and ITK 4.13.2. I also had to install Qt 5.13 using their GUI installer, rather than using the system (apt-get) Qt, because the latter complained about missing plugins.

Paul

On Fri, Oct 18, 2019 at 12:48 PM Omer Faruk Gulban [email protected] wrote:

It seems that there is no way to have libpng12 together with png16. Apparently libpng<16 has a serious vulnerability issue (see here http://www.libpng.org/pub/png/libpng.html).

I am trying to build ITK-SNAP from source. I have followed the general instructions (here http://www.itksnap.org/pmwiki/pmwiki.php%3Fn%3DDocumentation.BuildingITK-SNAP) by preparing ITK, VTK and QT5 builds. However I am getting multiple errors from cmake related to CURL_LIBRARY.

I see that in itksnap/CMake/standalone.cmake it is commented that CURL is a required part of ITK-SNAP. Does this mean that I need to build CURL like the other dependencies and add its path in cmake similart to ITK and VTK? Am I on the right track?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pyushkevich/itksnap/issues/5?email_source=notifications&email_token=AAJPEWZQQBPPPTPPULPDJ2LQPHSGRA5CNFSM4JAPHTSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBVDPNY#issuecomment-543831991, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJPEW2K3GNBYAZT5XEDIPLQPHSGRANCNFSM4JAPHTSA .

-- Paul A. Yushkevich, Ph.D. Associate Professor Penn Image Computing and Science Laboratory Department of Radiology University of Pennsylvania

pyushkevich avatar Oct 22 '19 17:10 pyushkevich

Dear Paul,

Thanks a lot for compiling ITK-SNAP on Debian 10 and writing the additional details. I have downloaded and installed your build. Now I can see the opening window: Screenshot from 2019-10-23 10-29-38 The menus seems to work too.

However, when I try to Open Main Image with any nifti file I get the following error:


*************************************
ITK-SNAP: Segmentation fault
BACKTRACE: 
/usr/lib/snap-3.8.0/ITK-SNAP(_Z24SegmentationFaultHandleri+0x12d)[0x5640c3a675dd]
/lib/x86_64-linux-gnu/libc.so.6(+0x37840)[0x7efc14097840]
/usr/lib/snap-3.8.0/ITK-SNAP(_ZN16vtkShaderProgram11SetUniformiEPKci+0x21)[0x5640c55c9491]
/usr/lib/snap-3.8.0/ITK-SNAP(_ZN23vtkOpenGLPolyDataMapper25SetMapperShaderParametersER15vtkOpenGLHelperP11vtkRendererP8vtkActor+0x44)[0x5640c5586bf4]
/usr/lib/snap-3.8.0/ITK-SNAP(_ZN23vtkOpenGLPolyDataMapper13UpdateShadersER15vtkOpenGLHelperP11vtkRendererP8vtkActor+0xb4)[0x5640c5585674]
/usr/lib/snap-3.8.0/ITK-SNAP(_ZN23vtkOpenGLPolyDataMapper15RenderPieceDrawEP11vtkRendererP8vtkActor+0x14f)[0x5640c557694f]
/usr/lib/snap-3.8.0/ITK-SNAP(_ZN23vtkOpenGLPolyDataMapper11RenderPieceEP11vtkRendererP8vtkActor+0x152)[0x5640c55888b2]
/usr/lib/snap-3.8.0/ITK-SNAP(_ZN17vtkPolyDataMapper6RenderEP11vtkRendererP8vtkActor+0xea)[0x5640c5411efa]
/usr/lib/snap-3.8.0/ITK-SNAP(_ZN8vtkActor20RenderOpaqueGeometryEP11vtkViewport+0x29f)[0x5640c53fdf1f]
/usr/lib/snap-3.8.0/ITK-SNAP(_ZN11vtkRenderer26DeviceRenderOpaqueGeometryEv+0x4b)[0x5640c541c72b]
/usr/lib/snap-3.8.0/ITK-SNAP(_ZN17vtkOpenGLRenderer26DeviceRenderOpaqueGeometryEv+0x33)[0x5640c5597e13]
/usr/lib/snap-3.8.0/ITK-SNAP(_ZN17vtkOpenGLRenderer14UpdateGeometryEv+0x1c6)[0x5640c5597606]
/usr/lib/snap-3.8.0/ITK-SNAP(_ZN17vtkOpenGLRenderer12DeviceRenderEv+0xc0)[0x5640c5597280]
/usr/lib/snap-3.8.0/ITK-SNAP(_ZN11vtkRenderer6RenderEv+0x17e)[0x5640c541d9be]
/usr/lib/snap-3.8.0/ITK-SNAP(_ZN21vtkRendererCollection6RenderEv+0x97)[0x5640c5455e97]
/usr/lib/snap-3.8.0/ITK-SNAP(_ZN15vtkRenderWindow14DoStereoRenderEv+0xd5)[0x5640c5457575]
/usr/lib/snap-3.8.0/ITK-SNAP(+0x2f0b58a)[0x5640c545858a]
/usr/lib/snap-3.8.0/ITK-SNAP(_ZN17Generic3DRenderer7paintGLEv+0x111)[0x5640c3d8f681]
/usr/lib/snap-3.8.0/ITK-SNAP(_ZN19QtAbstractOpenGLBox7paintGLEv+0xd2)[0x5640c3b4bf52]
/usr/lib/snap-3.8.0/libQt5Widgets.so.5(+0x1be615)[0x7efc1696e615]
/usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN7QWidget5eventEP6QEvent+0x1f8)[0x7efc1694f4a8]
/usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0x9c)[0x7efc16910f6c]
/usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x2b0)[0x7efc16918120]
/usr/lib/snap-3.8.0/ITK-SNAP(_ZN16SNAPQApplication6notifyEP7QObjectP6QEvent+0xd)[0x5640c3a707dd]
/usr/lib/snap-3.8.0/libQt5Core.so.5(_ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent+0x108)[0x7efc14ddd6c8]
/usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN14QWidgetPrivate14sendPaintEventERK7QRegion+0x25)[0x7efc16948525]
/usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN14QWidgetPrivate10drawWidgetEP12QPaintDeviceRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x682)[0x7efc16948be2]
/usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN14QWidgetPrivate22paintSiblingsRecursiveEP12QPaintDeviceRK5QListIP7QObjectEiRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x3ff)[0x7efc1694997f]
/usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN14QWidgetPrivate22paintSiblingsRecursiveEP12QPaintDeviceRK5QListIP7QObjectEiRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x2f6)[0x7efc16949876]
/usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN14QWidgetPrivate10drawWidgetEP12QPaintDeviceRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x121)[0x7efc16948681]
/usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN14QWidgetPrivate22paintSiblingsRecursiveEP12QPaintDeviceRK5QListIP7QObjectEiRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x3ff)[0x7efc1694997f]
/usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN14QWidgetPrivate22paintSiblingsRecursiveEP12QPaintDeviceRK5QListIP7QObjectEiRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x2f6)[0x7efc16949876]
/usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN14QWidgetPrivate10drawWidgetEP12QPaintDeviceRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x121)[0x7efc16948681]
/usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN14QWidgetPrivate22paintSiblingsRecursiveEP12QPaintDeviceRK5QListIP7QObjectEiRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x3ff)[0x7efc1694997f]
/usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN14QWidgetPrivate10drawWidgetEP12QPaintDeviceRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x121)[0x7efc16948681]
/usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN14QWidgetPrivate22paintSiblingsRecursiveEP12QPaintDeviceRK5QListIP7QObjectEiRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x3ff)[0x7efc1694997f]
/usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN14QWidgetPrivate10drawWidgetEP12QPaintDeviceRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x121)[0x7efc16948681]
/usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN14QWidgetPrivate22paintSiblingsRecursiveEP12QPaintDeviceRK5QListIP7QObjectEiRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x3ff)[0x7efc1694997f]
/usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN14QWidgetPrivate22paintSiblingsRecursiveEP12QPaintDeviceRK5QListIP7QObjectEiRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x2f6)[0x7efc16949876]
/usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN14QWidgetPrivate22paintSiblingsRecursiveEP12QPaintDeviceRK5QListIP7QObjectEiRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x2f6)[0x7efc16949876]
/usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN14QWidgetPrivate10drawWidgetEP12QPaintDeviceRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x121)[0x7efc16948681]
/usr/lib/snap-3.8.0/libQt5Widgets.so.5(+0x170f0e)[0x7efc16920f0e]
/usr/lib/snap-3.8.0/libQt5Widgets.so.5(+0x171692)[0x7efc16921692]
/usr/lib/snap-3.8.0/libQt5Widgets.so.5(+0x1baf52)[0x7efc1696af52]
/usr/lib/snap-3.8.0/libQt5Widgets.so.5(+0x1bb9cb)[0x7efc1696b9cb]
/usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0x9c)[0x7efc16910f6c]
/usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x2b0)[0x7efc16918120]
/usr/lib/snap-3.8.0/ITK-SNAP(_ZN16SNAPQApplication6notifyEP7QObjectP6QEvent+0xd)[0x5640c3a707dd]
/usr/lib/snap-3.8.0/libQt5Core.so.5(_ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent+0x108)[0x7efc14ddd6c8]
/usr/lib/snap-3.8.0/libQt5Gui.so.5(_ZN22QGuiApplicationPrivate18processExposeEventEPN29QWindowSystemInterfacePrivate11ExposeEventE+0x92)[0x7efc160bdb82]
*************************************

Do you have any idea why is this happening, or does this happen for you too?

By the way, please do not feel pressured to answer fast, I really appreciate your help.

ofgulban avatar Oct 23 '19 08:10 ofgulban

Hi Omer,

This definitely looks like an OpenGL error. Do you have OpenGL drivers installed and are you able to run OpenGL based software on this Debian box?

I did test the binary out on a machine without a GPU and did not have this issue. So definitely seems like something related to GPU.

Thanks, Paul

On Wed, Oct 23, 2019 at 4:49 AM Omer Faruk Gulban [email protected] wrote:

Dear Paul,

Thanks a lot for compiling ITK-SNAP on Debian 10 and writing the additional details. I have downloaded and installed your build. Now I can see the opening window: [image: Screenshot from 2019-10-23 10-29-38] https://user-images.githubusercontent.com/4668327/67373579-2fea1600-f580-11e9-89b4-55d2d6aeef55.png The menus seems to work too.

However, when I try to Open Main Image with any nifti file I get the following error:


ITK-SNAP: Segmentation fault BACKTRACE: /usr/lib/snap-3.8.0/ITK-SNAP(_Z24SegmentationFaultHandleri+0x12d)[0x5640c3a675dd] /lib/x86_64-linux-gnu/libc.so.6(+0x37840)[0x7efc14097840] /usr/lib/snap-3.8.0/ITK-SNAP(_ZN16vtkShaderProgram11SetUniformiEPKci+0x21)[0x5640c55c9491] /usr/lib/snap-3.8.0/ITK-SNAP(_ZN23vtkOpenGLPolyDataMapper25SetMapperShaderParametersER15vtkOpenGLHelperP11vtkRendererP8vtkActor+0x44)[0x5640c5586bf4] /usr/lib/snap-3.8.0/ITK-SNAP(_ZN23vtkOpenGLPolyDataMapper13UpdateShadersER15vtkOpenGLHelperP11vtkRendererP8vtkActor+0xb4)[0x5640c5585674] /usr/lib/snap-3.8.0/ITK-SNAP(_ZN23vtkOpenGLPolyDataMapper15RenderPieceDrawEP11vtkRendererP8vtkActor+0x14f)[0x5640c557694f] /usr/lib/snap-3.8.0/ITK-SNAP(_ZN23vtkOpenGLPolyDataMapper11RenderPieceEP11vtkRendererP8vtkActor+0x152)[0x5640c55888b2] /usr/lib/snap-3.8.0/ITK-SNAP(_ZN17vtkPolyDataMapper6RenderEP11vtkRendererP8vtkActor+0xea)[0x5640c5411efa] /usr/lib/snap-3.8.0/ITK-SNAP(_ZN8vtkActor20RenderOpaqueGeometryEP11vtkViewport+0x29f)[0x5640c53fdf1f] /usr/lib/snap-3.8.0/ITK-SNAP(_ZN11vtkRenderer26DeviceRenderOpaqueGeometryEv+0x4b)[0x5640c541c72b] /usr/lib/snap-3.8.0/ITK-SNAP(_ZN17vtkOpenGLRenderer26DeviceRenderOpaqueGeometryEv+0x33)[0x5640c5597e13] /usr/lib/snap-3.8.0/ITK-SNAP(_ZN17vtkOpenGLRenderer14UpdateGeometryEv+0x1c6)[0x5640c5597606] /usr/lib/snap-3.8.0/ITK-SNAP(_ZN17vtkOpenGLRenderer12DeviceRenderEv+0xc0)[0x5640c5597280] /usr/lib/snap-3.8.0/ITK-SNAP(_ZN11vtkRenderer6RenderEv+0x17e)[0x5640c541d9be] /usr/lib/snap-3.8.0/ITK-SNAP(_ZN21vtkRendererCollection6RenderEv+0x97)[0x5640c5455e97] /usr/lib/snap-3.8.0/ITK-SNAP(_ZN15vtkRenderWindow14DoStereoRenderEv+0xd5)[0x5640c5457575] /usr/lib/snap-3.8.0/ITK-SNAP(+0x2f0b58a)[0x5640c545858a] /usr/lib/snap-3.8.0/ITK-SNAP(_ZN17Generic3DRenderer7paintGLEv+0x111)[0x5640c3d8f681] /usr/lib/snap-3.8.0/ITK-SNAP(_ZN19QtAbstractOpenGLBox7paintGLEv+0xd2)[0x5640c3b4bf52] /usr/lib/snap-3.8.0/libQt5Widgets.so.5(+0x1be615)[0x7efc1696e615] /usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN7QWidget5eventEP6QEvent+0x1f8)[0x7efc1694f4a8] /usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0x9c)[0x7efc16910f6c] /usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x2b0)[0x7efc16918120] /usr/lib/snap-3.8.0/ITK-SNAP(_ZN16SNAPQApplication6notifyEP7QObjectP6QEvent+0xd)[0x5640c3a707dd] /usr/lib/snap-3.8.0/libQt5Core.so.5(_ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent+0x108)[0x7efc14ddd6c8] /usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN14QWidgetPrivate14sendPaintEventERK7QRegion+0x25)[0x7efc16948525] /usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN14QWidgetPrivate10drawWidgetEP12QPaintDeviceRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x682)[0x7efc16948be2] /usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN14QWidgetPrivate22paintSiblingsRecursiveEP12QPaintDeviceRK5QListIP7QObjectEiRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x3ff)[0x7efc1694997f] /usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN14QWidgetPrivate22paintSiblingsRecursiveEP12QPaintDeviceRK5QListIP7QObjectEiRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x2f6)[0x7efc16949876] /usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN14QWidgetPrivate10drawWidgetEP12QPaintDeviceRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x121)[0x7efc16948681] /usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN14QWidgetPrivate22paintSiblingsRecursiveEP12QPaintDeviceRK5QListIP7QObjectEiRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x3ff)[0x7efc1694997f] /usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN14QWidgetPrivate22paintSiblingsRecursiveEP12QPaintDeviceRK5QListIP7QObjectEiRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x2f6)[0x7efc16949876] /usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN14QWidgetPrivate10drawWidgetEP12QPaintDeviceRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x121)[0x7efc16948681] /usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN14QWidgetPrivate22paintSiblingsRecursiveEP12QPaintDeviceRK5QListIP7QObjectEiRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x3ff)[0x7efc1694997f] /usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN14QWidgetPrivate10drawWidgetEP12QPaintDeviceRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x121)[0x7efc16948681] /usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN14QWidgetPrivate22paintSiblingsRecursiveEP12QPaintDeviceRK5QListIP7QObjectEiRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x3ff)[0x7efc1694997f] /usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN14QWidgetPrivate10drawWidgetEP12QPaintDeviceRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x121)[0x7efc16948681] /usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN14QWidgetPrivate22paintSiblingsRecursiveEP12QPaintDeviceRK5QListIP7QObjectEiRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x3ff)[0x7efc1694997f] /usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN14QWidgetPrivate22paintSiblingsRecursiveEP12QPaintDeviceRK5QListIP7QObjectEiRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x2f6)[0x7efc16949876] /usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN14QWidgetPrivate22paintSiblingsRecursiveEP12QPaintDeviceRK5QListIP7QObjectEiRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x2f6)[0x7efc16949876] /usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN14QWidgetPrivate10drawWidgetEP12QPaintDeviceRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x121)[0x7efc16948681] /usr/lib/snap-3.8.0/libQt5Widgets.so.5(+0x170f0e)[0x7efc16920f0e] /usr/lib/snap-3.8.0/libQt5Widgets.so.5(+0x171692)[0x7efc16921692] /usr/lib/snap-3.8.0/libQt5Widgets.so.5(+0x1baf52)[0x7efc1696af52] /usr/lib/snap-3.8.0/libQt5Widgets.so.5(+0x1bb9cb)[0x7efc1696b9cb] /usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0x9c)[0x7efc16910f6c] /usr/lib/snap-3.8.0/libQt5Widgets.so.5(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x2b0)[0x7efc16918120] /usr/lib/snap-3.8.0/ITK-SNAP(_ZN16SNAPQApplication6notifyEP7QObjectP6QEvent+0xd)[0x5640c3a707dd] /usr/lib/snap-3.8.0/libQt5Core.so.5(_ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent+0x108)[0x7efc14ddd6c8] /usr/lib/snap-3.8.0/libQt5Gui.so.5(_ZN22QGuiApplicationPrivate18processExposeEventEPN29QWindowSystemInterfacePrivate11ExposeEventE+0x92)[0x7efc160bdb82]


Do you have any idea why is this happening, or does this happen for you too?

By the way, please do not feel pressured to answer fast, I really appreciate your help.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pyushkevich/itksnap/issues/5?email_source=notifications&email_token=AAJPEW3RET7YCOQK2Y6BMB3QQAFZNA5CNFSM4JAPHTSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECATQTA#issuecomment-545339468, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJPEW57RNPPQVRGWH2PQDDQQAFZNANCNFSM4JAPHTSA .

-- Paul A. Yushkevich, Ph.D. Associate Professor Penn Image Computing and Science Laboratory Department of Radiology University of Pennsylvania

pyushkevich avatar Oct 23 '19 14:10 pyushkevich

I also do not have a dedicated GPU on this machine. I have tried glxgears as a quick OpenGL test. It seems to work fine. I have also tried a few games. They work too.

Here is the output of glxinfo | grep OpenGL if it gives any ideas:

OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) UHD Graphics 620 (Kabylake GT2) 
OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.3.6
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 18.3.6
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 18.3.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:

ofgulban avatar Oct 24 '19 09:10 ofgulban

Hi there! I was experiencing this same issue on Ubuntu 20.04 with 3.8.0 (for both itksnap-3.8.0-20190612-Linux-x86_64.tar.gz and itksnap-3.8.0-20190612-Linux-x86_64-qt4.tar.gz):

joshua@tadpole:~$ itksnap
/usr/local/lib/snap-3.8.0/ITK-SNAP: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

The good news is, I've tried installing the version compiled for Debian 10, and it seems to work fine. Despite encountering the same terminal messages as above:

joshua@tadpole:~$ itksnap
libpng warning: sCAL: invalid unit
libpng warning: sCAL: invalid unit
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: sCAL: invalid unit

I am able to open a main image without encountering the traceback shown in https://github.com/pyushkevich/itksnap/issues/5#issuecomment-545339468.


I can also confirm that trying 4.0.0-alpha.2 (itksnap-nightly-vtk9qt6-Linux-gcc64.tar.gz) fixes this for me, too, this time without any libpng warnings.

So, it looks like this may have been fixed between 3.8.0 and 4.0.0?

joshuacwnewton avatar Mar 31 '22 21:03 joshuacwnewton

It might be a good idea to update the download links on the itk website as well to avoid this issue.

rFalque avatar Sep 24 '22 02:09 rFalque