Crash on JP2 read

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: XnTriq, helmut, xnview

Post Reply
phototweak
Posts: 19
Joined: Fri Aug 13, 2010 11:56 am

Crash on JP2 read

Post by phototweak »

I would like to report a problem I have discovered with XnView and certain JPEG 2000 (.JP2) files.

XnView with the JasPer JP2 plug-in always crashes on reading JP2 files with custom profiles embedded. These files have embedded display profiles created with a Spyder2 colorimeter. This is a somewhat unusual practice, but it is handled correctly by other applications. I do not know what if any other embedded profiles also cause a crash.

The LuraTech JP2 plug-in reads all 8-bit RGB JP2 files that I have tried, but it ignores ALL color profiles.

My prime interest in XnView is as a color-managed viewer, and one of my most used formats is .JP2. I sincerely hope that a working combination is soon possible. At least, I hope that the offending ICC profiles can be selectively ignored without crashing.

I uploaded a sample file that causes a crash:

http://www.filedropper.com/lena-icc


Operating system is Windows XP SP3. XnView version is 1.97.6
phototweak
Posts: 19
Joined: Fri Aug 13, 2010 11:56 am

Re: Crash on JP2 read

Post by phototweak »

Does the test file cause a crash for others?
User avatar
XnTriq
Moderator & Librarian
Posts: 6336
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Crash on JP2 read

Post by XnTriq »

I don't have a crash. But then again, I can't tell which plug-in is used for JPEG2000 on my installation.
  • Image Image
phototweak
Posts: 19
Joined: Fri Aug 13, 2010 11:56 am

Re: Crash on JP2 read

Post by phototweak »

It appears to be the LuraTech library. If you temporarily move those files out of the plugin directory, what happens?
User avatar
XnTriq
Moderator & Librarian
Posts: 6336
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Crash on JP2 read

Post by XnTriq »

When I remove the LuraTech DLLs...
  • ldf.dll
  • ldf_jpm.dll
  • lwf.dll
  • lwf_jp2.dll
... and try to browse a directory with Lena-ICC.jp2 in it, XnView v1.97.6 crashes :bugconfirmed:
User avatar
xnview
Author of XnView
Posts: 43444
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Crash on JP2 read

Post by xnview »

phototweak wrote:Does the test file cause a crash for others?
Right, will be fixed
Pierre.
phototweak
Posts: 19
Joined: Fri Aug 13, 2010 11:56 am

Re: Crash on JP2 read

Post by phototweak »

Thank you. :D
User avatar
xnview
Author of XnView
Posts: 43444
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Crash on JP2 read

Post by xnview »

Please try XnView 1.97.7
Pierre.
phototweak
Posts: 19
Joined: Fri Aug 13, 2010 11:56 am

Re: Crash on JP2 read

Post by phototweak »

I upgraded to the latest version of XnView (1.97.8) today, and I still get a crash on my test file, while using Xjp2.dll.

http://www.filedropper.com/lena-icc
User avatar
xnview
Author of XnView
Posts: 43444
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Crash on JP2 read

Post by xnview »

could you try the 1.98 beta?
And which JPEG2000 plugin do you use?
Pierre.
phototweak
Posts: 19
Joined: Fri Aug 13, 2010 11:56 am

Re: Crash on JP2 read

Post by phototweak »

I am using Xjp2.dll plugin.

Using v1.98 beta 2 (unstable) it does not crash! :D

Is this beta safe to use? Could it corrupt files?
User avatar
xnview
Author of XnView
Posts: 43444
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Crash on JP2 read

Post by xnview »

phototweak wrote:Is this beta safe to use? Could it corrupt files?
yes, final version will be soon available...
Pierre.
Post Reply