Announcement

Collapse
No announcement yet.

v4.22: Ansi2Unicode.dll crashed IrfanView

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Reported v4.22: Ansi2Unicode.dll crashed IrfanView

    Hello, recently i have very often crashes, so i remove all plugins and after that add them one by one, as result i found problem - Ansi2Unicode.dll

    After that i create test folder, moved there "problem" picture and open it again - all works fine. So problem not with picture, next i begin adding other files from original folder to that test one. As result, i found file, which name cause crashes. So, i can take any picture, create empty file with specific name and IrfanView will crash

    I have same problems before, so looks like that not only one name, that cause problems.

    File name in Cyrilic, i add attachment with zip archive, it contain test folder with picture from your site inside and empty file with specific name.
    To test it just activate Ansi2Unicode.dll plugin (Options->Properties/Settings->Misc.1->Use Unicode Plugin).

    Operating System: Microsoft Windows 2003 R2 [version: 5.2.3790 Service Pack 2]
    OS Languages: (UI | Locale (User/System)) : English/English | Russian/Russian

    I can't disable that plugin, because i very often view files with unicode names.
    Thanks in advance for help.

    P.S. Sorry for bad english
    Attached Files

    #2
    Who needs a filename like:

    Производители рам - ВелоТур - велосипеды, велоэкипировка, турснаряжение, палатки, спальники, термобелье, мембранная одежда, треккинговая обувь, альпинизм
    The orignal filename doesn't even parse correctly on the forum, so that extra period after рам. may be the cause of the IrfanView plugin problem.
    Code:
    Производители рам. - ВелоТур - велосипеды, велоэкипировка, турснаряжение, палатки, спальники, термобелье, мембранная одежда, треккинговая обувь, альпинизм
    IrfanView does crash when I attempt to open it, with the Unicode Plugin enabled, but it is not a valid image format, it has a stupidly long name, and it has no file extension.

    Do you really need to use filenames like this?
    Before you post ... Edit your profile • IrfanView 4.67 • Windows 10 Home 19045.2486

    Irfan PaintIrfan View HelpIrfanPaint HelpRiot.dllMore SkinsFastStone CaptureUploads

    Comment


      #3
      But the point is that if a file has a valid filename, no matter how much stupidly long it is, IrfanView must be able to handle it without crashing.
      IrfanPaint developer
      The latest stable IrfanPaint version is the 0.4.13.70.
      IrfanPaint is now open-source (released under BSD license).

      Comment


        #4
        Originally posted by Bhikkhu Pesala View Post
        Who needs a filename like...
        Originally that was just link to website, and i take name from that link.

        But:
        1) Should i care about file names to avoid crashes? And should i check all file names? Did you think, what that normal behavior? Did you seen file names inside "Temporary Internet Files" folder, for example?
        2) Why IrfanView should care about files, that it didn't handle, and that i even didn't try open and crash?
        3) Like i pointed i have very often crashes, after i enable that plugin, so to see some image i should rename all other files inside that folder, to avoid crashes? :-D


        Originally posted by Bhikkhu Pesala View Post
        The orignal filename doesn't even parse correctly on the forum, so that extra period after рам. may be the cause of the IrfanView plugin problem.
        Should we discuss forum engine problems here?

        Actually problem, why that plugin crash - just long name (if file name use Cyrillic and it longer that 143 symbols, IrfanView will crash). I found that after i make some more tests. For example that file name cause same crash:
        Code:
        Тест Тест Тест Тест Тест Тест Тест Тест Тест Тест Тест Тест Тест Тест Тест Тест Тест Тест Тест Тест Тест Тест Тест Тест Тест Тест Тест Тест Тест
        So to use IrfanView, i should avoid long file names, IMHO that bug, and not "feature".


        Originally posted by Bhikkhu Pesala View Post
        IrfanView does crash when I attempt to open it, with the Unicode Plugin enabled, but it is not a valid image format, it has a stupidly long name, and it has no file extension.
        You should not try open empty file, just put any file with long Cyrillic name (longer then 143 symbols) and put any image to that folder, try open image (not that file with long name) and you will got crash.

        Originally posted by Bhikkhu Pesala View Post
        Do you really need to use filenames like this?
        Like i pointed it crash, when it see long name in same folder, and yes, i need long names, like many others
        Last edited by Soip; 29.12.2008, 09:28 PM.

        Comment


          #5
          If you try a search for "filename" you will find other related problems.
          Originally posted by Soip View Post
          1) Should i care about file names to avoid crashes?
          Of course. If a very long filename causes a crash, don't use very long filenames.
          Why IrfanView should care about files, that it didn't handle, and that i even didn't try open and crash?
          A warning would be better than just crashing, but the question is how long a filename should be allowed? 63 characters? 65,535 characters? I think there has to be a limit somewhere. The behaviour when that limit is exceeded could definitely be improved, but IMO people should expect to work within sensible limits.
          i should rename all other files inside that folder, to avoid crashes? :-D
          You should not use very long filenames. If it doesn't cause a problem here, it may do somewhere else. Accept a reasonable limitation. Clearly 8+3 is unreasonable, but 63 is surely sufficient for anyone.
          Should we discuss forum engine problems here?
          Yes. If it is relevant to the problem. It seemed to me that something about that particular filename was not being handled correctly by the forum software. It could hardly be the length of the text string.

          It is possible that IrfanView was doing the same thing, and therefore generating an error. It seems that filename length is the main cause here, however, and not the file name pattern itself.
          So to use IrfanView, i should avoid long file names, IMHO that bug, and not "feature".
          It was never advertised as a “feature” that you could use unlimited long filenames in IrfanView. It would be more useful if it could handle images of unlimited size than filenames of unlimited size, but there are always limits.
          You should not try open empty file
          I tried to open the file that you attached. Why did you attach an empty file instead of an image file?

          The bottom line is: This is obviously a bug, but not one I would rate as important. Just how long does a filename need to be? If you had to type the filename, how long would it be? Less than 63 characters should be adequate.

          The Sly Brown Fox Jumped Over the Lazy Dog.jpg (42 characters + extension)
          Last edited by Bhikkhu Pesala; 29.12.2008, 10:22 PM.
          Before you post ... Edit your profile • IrfanView 4.67 • Windows 10 Home 19045.2486

          Irfan PaintIrfan View HelpIrfanPaint HelpRiot.dllMore SkinsFastStone CaptureUploads

          Comment


            #6
            Originally posted by Bhikkhu Pesala View Post
            If you try a search for "filename" you will find other related problems.
            I made search, but i search for specific plugin, that cause crashes. I check that link and that problem totally different (i can use long english file names without any problems).

            Originally posted by Bhikkhu Pesala View Post
            A warning would be better than just crashing, but the question is how long a filename should be allowed? 63 characters? 65,535 characters? I think there has to be a limit somewhere. The behaviour when that limit is exceeded could definitely be improved, but IMO people should expect to work within sensible limits.
            I don't understand, why here should be any problems. IrfanView - application for Microsoft Windows OS, so why IrfanView should try implement any specific standarts and have some specific limits?
            Both NTFS and FAT support long file names - up to 255 characters. That more than well known information - http://technet.microsoft.com/en-us/l.../bb727004.aspx
            That limit exist since Microsoft implement LFN support. And when i use any application for specific OS, i expect, what that application follow OS standards. Any specific file name length limits totally unexpected for me here.

            So if IrfanView - Windows application, it should follow Windows standards, am i wrong here?

            Originally posted by Bhikkhu Pesala View Post
            You should not use very long filenames. If it doesn't cause a problem here, it may do somewhere else. Accept a reasonable limitation. Clearly 8+3 is unreasonable, but 63 is surely sufficient for anyone.
            Even if i will use only short file names (and actually i don't use very long file names), other peoples may use longer file names and use them. As result i should allways check all files inside folder, rename them, and only after that i can begin view pictures, inside that folder. And if i have only read permissions? (network file share, for example) I should copy those files, rename them etc.

            And don't forget, what IrfanView - graphic viewer, so using it i should able to view any file, which i need, without any additional manipulation.

            Originally posted by Bhikkhu Pesala View Post
            I tried to open the file that you attached. Why did you attach an empty file instead of an image file?)
            Because it's name cause IrfanView crash, and i wrote that in my initial message:
            Originally posted by Soip View Post
            So, i can take any picture, create empty file with specific name and IrfanView will crash
            If i didn't attach it, you can't duplicate that problem and my bug report would be totally pointless.

            P.S. I use IrfanView since 1997 year, but i can't use it anymore, since i need unicode support Any chances to fix that problem, or should i begin search for alternative image viewer?
            P.P.S. IMHO we should stop discussion about file names length and thanks for any help

            Comment


              #7
              BUMP!
              Near half year gone, version 4.25 here, but that bug stil didn't solved

              Originally posted by Soip View Post
              Any chances to fix that problem, or should i begin search for alternative image viewer?
              And still no reply to my question, could i get any reply on it, please?

              Comment


                #8
                Bump

                Bump!! Still no resolution to this bug. I have 4.27 and it still crashes even without ridiculously long filenames.

                Comment


                  #9
                  The latest version is 4.30.
                  Before you post ... Edit your profile • IrfanView 4.67 • Windows 10 Home 19045.2486

                  Irfan PaintIrfan View HelpIrfanPaint HelpRiot.dllMore SkinsFastStone CaptureUploads

                  Comment


                    #10
                    Hi,

                    a textfile named:

                    Code:
                    Производители рам.*-*ВелоТур - .txt
                    IrfanView 4.30 with unicode plugin can handle it without any error messages or crashes!

                    Stefan

                    EDIT: Even 7z can extract your file given in your example upload. It's simply "too long"!

                    Comment

                    Working...
                    X