JBIG2DEC Error when opening images

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

Moderators: helmut, XnTriq, xnview

User avatar
dawog
Posts: 11
Joined: Sat Jul 30, 2005 12:03 am
Location: Colorado Springs, CO
Contact:

JBIG2DEC Error when opening images

Post by dawog »

When opening any images (gif, bmp, jpg, etc.) in image view (from either the browser or File=>Open), I get multiple command window pop-ups, each of which displays multiple lines of "JBIG2DEC FATAL ERROR Not a JBIG2 file header." Once an image is displayed, if you go to the next image (page down), multiple command windows pop-up again displaying the same error, and this behavior continues each time you go to "Next Image." This does not occur when going to previous images. I also receive no command window pop-ups when using "Full Screen" mode.

The number of command windows that pop-up is a function of how many files are in the directory (lots of files => lots of pop-ups). As you progress through the directory, fewer JBIG2DEC Command Windows pop-up, and none pop-up when at the last image in directory (folder) is selected.

I'm running XnView Version 1.80.1 en on Windows 98SE; 2.8 GHz Pentium 4 w/1 GB RAM; Video card is ATI AIW 9000 Pro 64MB w/latest driver updates.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: JBIG2DEC Error when opening images

Post by xnview »

dawog wrote:When opening any images (gif, bmp, jpg, etc.) in image view (from either the browser or File=>Open), I get multiple command window pop-ups, each of which displays multiple lines of "JBIG2DEC FATAL ERROR Not a JBIG2 file header." Once an image is displayed, if you go to the next image (page down), multiple command windows pop-up again displaying the same error, and this behavior continues each time you go to "Next Image." This does not occur when going to previous images. I also receive no command window pop-ups when using "Full Screen" mode.
Strange, and if you remove Plugins/jbig2dec.exe?
Anyone has the same problem??
Pierre.
User avatar
dawog
Posts: 11
Joined: Sat Jul 30, 2005 12:03 am
Location: Colorado Springs, CO
Contact:

RE: JBIG2DEC Error when opening images

Post by dawog »

If I remove the "jbig2dec.exe" plugin, the pop-up command windows go away.
User avatar
dawog
Posts: 11
Joined: Sat Jul 30, 2005 12:03 am
Location: Colorado Springs, CO
Contact:

RE: JBIG2DEC Error when opening images

Post by dawog »

I replaced the "jbig2dec.exe" plug-in & rebooted, and the problem is still gone.

I originally thought the error might be related to the fact that I use Paint Shop Pro and all my image directories have a Paint Shop Pro "Browser" file (type "jbf") present. I removed that file from several directories & experimented w/XnView, but the JBIG2DEC command windows still popped up -- even in those directories that did not have "pspbrwse.jbf" present.

As mentioned in previous post, I removed (renamed, actually) the jbig2dec.exe plug-in and the problem disappeared. I've since restored the jbig2dec.exe plug-in, and the problem now no longer occurs.

Wierd, eh? Yet another W98-ism, eh?

Thanks for your assistance! (BTW, Great Program!!!)
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: RE: JBIG2DEC Error when opening images

Post by xnview »

dawog wrote:As mentioned in previous post, I removed (renamed, actually) the jbig2dec.exe plug-in and the problem disappeared. I've since restored the jbig2dec.exe plug-in, and the problem now no longer occurs.

Wierd, eh? Yet another W98-ism, eh?
Yes, very strange....
Pierre.
User avatar
dawog
Posts: 11
Joined: Sat Jul 30, 2005 12:03 am
Location: Colorado Springs, CO
Contact:

RE: JBIG2DEC Error when opening images

Post by dawog »

I erred in my last post. The JBIG2DEC error is still present. In addition, it also occasionally occurs in Full Screen view when cycling to "Next" image.

Before going any further, I just want to make it clear that this isn't an issue for me. I seldom (if ever) use JBIG2, so removing it from the plug-in folder solves the problem.

However, if you wish to further debug the issue, I'll be happy to help.

I'm at a loss as to what else to try. I can find no correlation as to why the JBIG2DEC error occurs in most of my image folders, but not all. I have over 5 GB of images, 80% of which were taken with my digital cameras and those are jpegs. The other 20% are a mixture of scanned images; images from friends/family; images from work; and images downloaded from the web. They are a mixture of jpegs, gifs, bmps, pngs and tiffs, and the JBIG2DEC error occurs when viewing these images, too. There seems to be no relationship as to whether or not a Paint Shop Pro "Browser" file (pspbrwse.jbf) is present in a folder. It doesn't seem to matter whether XnView Browser caching is enabled or not. I also killed all unnecessary processes running in background, but that had no effect on whether the error still occurred.

When I first powered up this morning (with the JBIG2DEC plug-in still present), I was able to browse & view images in four image folders (that previously incurred errors) without incurring the JBIG2DEC Command Window pop-up. Then all of a sudden it began occurring and continued for the rest of the session. Puzzling, to say the least!
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

Sample ?

Post by Clo »

:) Hello !

- I work mainly under Win 98SE also, hence maybe I could help to enlighten the mystery…

- I've jbig2dec.exe - 140 KB - July, 17th. 2004

:( But I've not any file to test. Please, could you put such (a) file(s) reachable somewhere ?

:mrgreen: Kind regards,
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice
User avatar
dawog
Posts: 11
Joined: Sat Jul 30, 2005 12:03 am
Location: Colorado Springs, CO
Contact:

RE: JBIG2DEC Error when opening images

Post by dawog »

Hi Claude...

I've done some further debugging & have come to the conclusion that this error has nothing to do with any of my image files. Rather, it appears to be related to what folders/directories I happen to browse. For example, if I browse a folder that has an html file in it, that seems to trigger the JBIG2DEC Command Window pop-ups for the remainder of my XnView session -- no matter what other images I try to view, in whatever folders I go to. So far this is the only file type I've found that triggers the JBIG2DEC error. It doesn't matter whether there are images present in the folder or not. Once I browse a folder which has one or more HTML files present, the JBIG2DEC error is present until I exit out of XnView and restart.

If you want to try a test, place an HTML file in one of your image folders; browse that folder w/XnView; then double-click on an image (or open it in image view). Make sure you have quite a few images in the folder, and double-click on one near the top of the browser list. How many JBIG2DEC command windows pop-up is a function of how many images that are in the folder and how far down the browser list of images you are. The closer you are to the bottom of the browser list (with respect to viewing images), the fewer pop-up windows you'll get.

Good luck!
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

Nothing happens, but normal…

Post by Clo »

:arrow: dawog

:) Hello !
- Easy to test for me, since I make a lot of help folders and tutorials; hence, I've directories which contain HTML files and pictures, mainly GIFs and PNGs, and also some small BMPs… In small (and old) folders, HTML and pic-files are mixed in the same main directory.
- I can browse such directories without any problem, impossible to trigger the message you talk about…
- Launching pic-files from T.C. in the list of a directory to open in XnView “View” : nothing happens but normal, that works,
- Browsing such a directory as thumb-nails, then opening any picture in “View”, watching the rest with Next file button : no message…
P4 - 2.4 GHz - 512 MB DD-RAM - Win 98 SE (Fr) - XnView 1.80.1

¤ I have an idea { it's not the only :P } :
- I guess that your HTML files could contain some scripts (JS or so…) that trigger the message. My HTML files do not contain scripts, I don't use to write them in that way… Maybe could you try with simple HTML files having no script ?
- It's worth to test…

:mrgreen: Kind regards,
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: RE: JBIG2DEC Error when opening images

Post by xnview »

dawog wrote:Hi Claude...

I've done some further debugging & have come to the conclusion that this error has nothing to do with any of my image files. Rather, it appears to be related to what folders/directories I happen to browse. For example, if I browse a folder that has an html file in it, that seems to trigger the JBIG2DEC Command Window pop-ups for the remainder of my XnView session -- no matter what other images I try to view, in whatever folders I go to. So far this is the only file type I've found that triggers the JBIG2DEC error. It doesn't matter whether there are images present in the folder or not. Once I browse a folder which has one or more HTML files present, the JBIG2DEC error is present until I exit out of XnView and restart.

If you want to try a test, place an HTML file in one of your image folders; browse that folder w/XnView; then double-click on an image (or open it in image view). Make sure you have quite a few images in the folder, and double-click on one near the top of the browser list. How many JBIG2DEC command windows pop-up is a function of how many images that are in the folder and how far down the browser list of images you are. The closer you are to the bottom of the browser list (with respect to viewing images), the fewer pop-up windows you'll get.

Good luck!
If you have a folder with only one HTML file, you have the problem?
Pierre.
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

Something in the HTML…

Post by Clo »

:arrow: Pierre

:) Hello Pierre !

- I tested again with a folder containing 57 HTML files, plus CSS, plus HHC, etc. … plus all pictures mixed there, and I cannot reproduce the problem under Win 98SE… So, there is certainly something in the dawog's HTML files that triggers the message… Whether the issue'ld be related to any HTML file, I might be able to reproduce this.

:mrgreen: Kind regards,
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice
User avatar
dawog
Posts: 11
Joined: Sat Jul 30, 2005 12:03 am
Location: Colorado Springs, CO
Contact:

RE: JBIG2DEC Error when opening images

Post by dawog »

Claude/Pierre...

Yes -- even if a folder has only one file & it's a simple html file (no scripts or Java code, etc.). If I select that folder in XnView (Browse-mode), then when I browse to another folder with images, every image I double-click on (to view) triggers the JBIG2DEC command window pop-ups. That is, every image I double-click on except the last one in the Browser window. A JBIG2DEC command window pops up for every file remaining in the browser list -- the closer to the end of the list of files, the fewer pop-ups there are. It doesn't matter if I double-click on the image in the Browser, or press "Next Image" once in view mode. As stated previously, when going to "Previous" images, no command window pop-ups occur. This behavior continues, no matter what folder I go to & or which image I try to view, until I exit out of XnView & restart. Everything is then fine... until I browse a folder that has one or more html files present. I don't have to select the html file. Just browsing to a folder with an html file seems to trigger the JBIG2DEC pop-ups.

None of my html files are complex nor do they include any scripts or code. Most are just simple documents. I've tried numerous html examples in a test folder with just one html file, and all have triggered the JBIG2DEC pop-ups after I've "browsed" that folder w/XnView. Usually, if I view the image in "Fullscreen" mode, the JBIG2DEC pop-ups do not occur... but they have on occasion. I haven't been able to duplicate the conditions in which the command windows pop-up during Fullscreen mode. I'd be happy to send you or post one of my html files that triggers the pop-up command windows if you like.

As I stated before, since I have no JBIG2 files on my computer, this is not an issue for me. I've been writing/testing/debugging software for years so it is just a natural curiousity of mine to investigate why programs behave in an unexpected manner. Quite often I find a problem in my own PC's configuration, which I suspect may be the case this time. I wonder if "zeugma", who originally posted this under "General Support", is still experiencing this behavior?

Thanks again for all your assistance & suggestions!
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

Other thoughts---

Post by Clo »

:) Hello !
- Well, most certainly, weird things occur in our PCs, especially under Win 98 SE…

- I complemented the tests :
- I tested a dir containing HTML, pics and an awful <thumbs.db> file coming from an I.P. for a friend's site I maintain, nothing happens…

- I tried in an old PC P1 166-MMX under the same Win 98 SE and the same XnView 1.80.1 - the same <jbig2dec.exe> being in the <Plugins> sub-dir - nothing happens…

- Do you display hidden files ? I thought to some crappy hidden file, made by a clever virus / worm that could come with each HTML file… ?
- What does occur for you in the reverse case : several HTML files in a dir, and one pic, when you click on the pic ?

- Could you test in another PC under Win 98 SE following the same conditions, if you could reach any around ?

- Of course, it should be interesting to get a HTML file from yours, maybe could you pack one as ZIP or RAR, then display it here as coded MIME or UUE / XXE text ? Needs the "Code" marking, indeed…
- Further, I don't see anything else, except incantations, candles and holy water… :P

:mrgreen: Kind regards,
Claude
Clo
Last edited by Clo on Wed Aug 03, 2005 4:42 am, edited 1 time in total.
Old user ON SELECTIVE STRIKE till further notice
User avatar
ouistiti
Posts: 353
Joined: Mon Oct 25, 2004 7:28 pm
Location: Belgique
Contact:

Post by ouistiti »

Just two questions:

1° Which navigator do you use?
2° Which program is associated with HTM/HTML ?
L'important n'est pas de convaincre, mais de donner à réfléchir.
The important thing is not to convince, but to incite to think.

1,77245385090552...
User avatar
dawog
Posts: 11
Joined: Sat Jul 30, 2005 12:03 am
Location: Colorado Springs, CO
Contact:

RE: JBIG2DEC Error when opening images

Post by dawog »

Claude...

I always display hidden files, and none are present in any of the image folders I've displayed w/XnView.

I tried several html files in a folder w/one image and the error doesn't occur. But then again, it has never occurred when only one image is in the folder. If I add two images & double-click on the 1st image in Browse-mode, I get one JBIG2DEC command window pop-up. As has been the case all along, if I double-click on the last image in the Browser window, there are no pop-ups.

I tried XnView on my 2.4 GHz P4, also running W98SE, and it behaves much worse. I get the JBIG2DEC Command Window pop-ups continuously, whether or not I've browsed a folder with an html file. I could not find any way (short of removing the "jbig2dec.exe" plug-in) to view images without the JBIG2DEC command window pop-ups occurring. I built the 2.4 GHz six months before the 2.8 GHz P4 that all my previous posts refer to. In fact, I cloned the 2.4 GHz C-drive & used that when first starting up my 2.8 GHz, so they both have similar configurations, including same motherboard (ABIT IS7). I use Mozilla & Opera on both, with Mozilla being the default web browser & associated with htm/html files.

I also tried XnView on my 400 MHz P-II PC w/W98SE. XnView works flawlessly on this PC, which is over 7 yrs old. I browsed numerous folders with XnView, many of which had the same html files as on my 2.8 GHz P4, and COULD NOT reproduce the JBIG2DEC Command Window pop-up error. The 400 MHz has much of the same software as my 2.4 and 2.8 GHz P4's have installed, with the major exception of Mozilla. The 400 MHz has Netscape & Opera installed, with Opera being the default web browser.

If you'd like a sample of my html files, you could probably just save one from my web page (i.e., index.htm) @ members.toast.net/dawog. I used "index.htm" as one of the samples that triggers the JBIG2DEC error on my 2.8 GHz PC.

Ouistiti...

I use both Mozilla and Opera web browsers, with Mozilla being the default web browser & associated with HTM/HTML file types.

All...
Do you think it's worth uninstalling Mozilla & seeing if that has an effect?

Thanks again for your inputs!
Post Reply