Page 1 of 1

Crash on JP2 read

Posted: Fri Aug 13, 2010 12:33 pm
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

Re: Crash on JP2 read

Posted: Sun Aug 15, 2010 6:43 am
by phototweak
Does the test file cause a crash for others?

Re: Crash on JP2 read

Posted: Sun Aug 15, 2010 8:15 pm
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

Re: Crash on JP2 read

Posted: Mon Aug 16, 2010 12:48 pm
by phototweak
It appears to be the LuraTech library. If you temporarily move those files out of the plugin directory, what happens?

Re: Crash on JP2 read

Posted: Mon Aug 16, 2010 6:00 pm
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:

Re: Crash on JP2 read

Posted: Tue Aug 17, 2010 1:48 am
by xnview
phototweak wrote:Does the test file cause a crash for others?
Right, will be fixed

Re: Crash on JP2 read

Posted: Fri Aug 20, 2010 1:56 am
by phototweak
Thank you. :D

Re: Crash on JP2 read

Posted: Tue Sep 07, 2010 12:29 pm
by xnview
Please try XnView 1.97.7

Re: Crash on JP2 read

Posted: Sat Apr 02, 2011 12:24 am
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

Re: Crash on JP2 read

Posted: Sat Apr 02, 2011 8:47 am
by xnview
could you try the 1.98 beta?
And which JPEG2000 plugin do you use?

Re: Crash on JP2 read

Posted: Mon Apr 04, 2011 8:37 am
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?

Re: Crash on JP2 read

Posted: Mon Apr 11, 2011 6:57 pm
by xnview
phototweak wrote:Is this beta safe to use? Could it corrupt files?
yes, final version will be soon available...