Menu

#40 lockup with odd url

closed
None
2017-01-24
2017-01-23
simon
No

below vrml (cut down to min from original file.) causes a lockup with:

view3dscene: Exception EAccessViolation : 
Access violation

Note: various messings with the url fixes.

#VRML V2.0 utf8

Shape {
    appearance Appearance { 
        texture ImageTexture { url "file://C:/MASK.GIF" }
         material Material {
     }
    }
    geometry IndexedFaceSet {
        coord Coordinate { 
            point [0 0 0, 1 1 0,1 0 0]
        }
        coordIndex [0 1 2]
    }
}

Discussion

  • Michalis Kamburelis

    • status: open --> pending
    • assigned_to: Michalis Kamburelis
     
  • Michalis Kamburelis

    The latest view3dscene for GitHub or snapshots works fine for me.

    On Linux, it complains that it cannot find the "/MASK.GIF".

    On Windows, it warns that URL is incorrect, without crashing.

    $ ./view3dscene-snapshots.exe a.wrl
    view3dscene: URL warning: Error when parsing URL. This usually indicates an incorrect Windows "file:" URL (it should have *three* slashes, like "file:///c:/blah..."): "file://C:/MASK.GIF"
    view3dscene: URL warning: Error when parsing URL. This usually indicates an incorrect Windows "file:" URL (it should have *three* slashes, like "file:///c:/blah..."): "file://C:/MASK.GIF"
    view3dscene: Texture warning: Error EDownloadError when loading texture from URL "file://C:/MASK.GIF": Cannot convert URL "file://C:/MASK.GIF" to filename
    

    We repeat the warning "Error when parsing URL..." two times, due to the way we do things internally (we parse URL two times...). Other than that, it's a perfect message:)

    I tested with view3dscene from GitHub, and snapshots http://michalis.ii.uni.wroc.pl/castle-engine-snapshots/ .

    view3dscene stable indeed fails, but with different message (and no lockup) for me. It crashes with

    view3dscene: Exception EConvertError : 
    "" is an invalid integer
    

    (on both Linux and Windows). This was fixed in the meantime, since last view3dscene release.

    Can you test the latest view3dscene from http://michalis.ii.uni.wroc.pl/castle-engine-snapshots/ on your system? If it still crashes, please write what is your OS and architecture. You can also attach the faulty file, in case there are some weird invisible UTF-8 zero-width-spaces inside, and they didn't get copied to the message OK.

     
  • simon

    simon - 2017-01-23

    ummm,

    i've cut/paste back from the above , no change.

    and i have tested in many released versions, (latest 3.15) and a recent build i found in a ubuntu package, (aug 2016) and get the same issue in all EXCEPT 3.12 which works, and gives;

    view3dscene: VRML/X3D warning: Exception EFOpenError occurred when trying to load texture from URL "???/Desktop/C:/MASK.GIF": Unable to open file "???/Desktop/C:/MASK.GIF"
    

    this is on ubuntu mate 16.04 (64 bit)

    (unfortunatly you arn't building snapshots for 64bit linux.)

     
  • Michalis Kamburelis

    (unfortunatly you arn't building snapshots for 64bit linux.)

    Indeed, the machine creating the snapshots is a 32-bit Linux, and I didn't yet have the time to setup proper cross-compiling from 32-bit Linux to 64-bit Linux.

    But my current dev machine runs 64-bit Linux (Debian) :)

    I have build and uploaded snapshot for 64-bit Linux to http://michalis.ii.uni.wroc.pl/castle-engine-snapshots/2017-01-24-linux-x86_64/ . Can you test it?

     
  • simon

    simon - 2017-01-24

    that works, giving the three log entreis you indicated above.

     
    • Michalis Kamburelis

      that works, giving the three log entreis you indicated above.

      Cool, thanks! So it seems that the problem is fixed in GitHub version already:)

      I plan to have a grand new release within a week, so a new stable view3dscene will be released with the fix very soon now:)

       
  • Michalis Kamburelis

    that works, giving the three log entreis you indicated above.

    Ah, and I see that the errors about "Error when parsing URL. This usually indicates..." are output when using FPC 3.0.0 for compilation, on both Linux and Windows.

    With FPC 3.1.1, they disappear, at least on Linux. I'll have to test with FPC 3.1.1 on Windows later.

    In any case, the latest view3dscene release will be build using FPC 3.0.0, so it will be perfect:)

     
  • Michalis Kamburelis

    • status: pending --> closed
     

Log in to post a comment.