Crash on JP2 read

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

Moderators: XnTriq, xnview

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

Crash on JP2 read

Post by phototweak » Fri Aug 13, 2010 12:33 pm

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: 17
Joined: Fri Aug 13, 2010 11:56 am

Re: Crash on JP2 read

Post by phototweak » Sun Aug 15, 2010 6:43 am

Does the test file cause a crash for others?

User avatar
XnTriq
Moderator & Librarian
Posts: 5463
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Crash on JP2 read

Post by XnTriq » Sun Aug 15, 2010 8:15 pm

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: 17
Joined: Fri Aug 13, 2010 11:56 am

Re: Crash on JP2 read

Post by phototweak » Mon Aug 16, 2010 12:48 pm

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: 5463
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Crash on JP2 read

Post by XnTriq » Mon Aug 16, 2010 6:00 pm

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: 32081
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Crash on JP2 read

Post by xnview » Tue Aug 17, 2010 1:48 am

phototweak wrote:Does the test file cause a crash for others?
Right, will be fixed
Pierre.

phototweak
Posts: 17
Joined: Fri Aug 13, 2010 11:56 am

Re: Crash on JP2 read

Post by phototweak » Fri Aug 20, 2010 1:56 am

Thank you. :D

User avatar
xnview
Author of XnView
Posts: 32081
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Crash on JP2 read

Post by xnview » Tue Sep 07, 2010 12:29 pm

Please try XnView 1.97.7
Pierre.

phototweak
Posts: 17
Joined: Fri Aug 13, 2010 11:56 am

Re: Crash on JP2 read

Post by phototweak » Sat Apr 02, 2011 12:24 am

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: 32081
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Crash on JP2 read

Post by xnview » Sat Apr 02, 2011 8:47 am

could you try the 1.98 beta?
And which JPEG2000 plugin do you use?
Pierre.

phototweak
Posts: 17
Joined: Fri Aug 13, 2010 11:56 am

Re: Crash on JP2 read

Post by phototweak » Mon Apr 04, 2011 8:37 am

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: 32081
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Crash on JP2 read

Post by xnview » Mon Apr 11, 2011 6:57 pm

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

Post Reply