lockup with odd url
Game engine supporting many 3D/2D formats and graphic effects
Brought to you by:
kambi
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]
}
}
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.
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
(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.
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;
this is on ubuntu mate 16.04 (64 bit)
(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?
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:)
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:)