Author Topic: Tracking errors in loading f3d and .dae objects  (Read 172 times)

Arun V   «   on: January 24, 2012, 07:32:02 AM »
Hi,
    Is there any way to track the errors in loading a collada object or a flare3D object. Suppose I am trying to load an invalid collada file( rename a notepad or any file with .dae extension) and trying to load that file to the Flare3D engine then it generates following error

TypeError: Error #1006: value is not a function.
    at flare.loaders::ColladaLoader/start()[Z:\projects\flare3d 2\src\flare\loaders\ColladaLoader.as:170]
    at flare.loaders::ColladaLoader/completeEvent()[Z:\projects\flare3d 2\src\flare\loaders\ColladaLoader.as:139]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()

I want to display my own error message instead of this. Same for f3d objects also in that case it won't even generate an error it displays nothing.

Thanks

Ariel Nehmad   «   Reply #1 on: January 25, 2012, 09:51:56 AM »
Hi Arun, did you tried using try catch?

Arun V   «   Reply #2 on: January 27, 2012, 01:51:12 AM »
Yes Ariel I tried the try-catch method. But it returns the same error..:(. Means the error won't get in the catch method.

Arun V   «   Reply #3 on: February 13, 2012, 09:48:43 AM »
no solutions?..:(

Ariel Nehmad   «   Reply #4 on: February 13, 2012, 10:45:13 AM »
Hi Arun, 

the f3d is a compressed and binary format, so it is more complicated, but for the dae files, we could open the code of the collada loader to the community so you can change, extend, destroy or whatever you want ;)

also it could be useful as an example.

collada specs are really flexible, and each software implements it in different ways, to it is really hard to get an efficient and indestructible collada parser :/

Arun V   «   Reply #5 on: July 06, 2012, 02:52:45 AM »
Hi,
Is there any update for this issue. I tried to load an invalid flare3D file and got this error:

Error: Invalid file format.
    at flare.loaders::Flare3DLoader2/loadBytes()[Z:\\projects\\flare3d 2\\src\\flare\\loaders\\Flare3DLoader2.as:191]
   at flare.loaders::Flare3DLoader2/completeEvent()[Z:\\projects\\flare3d 2\\src\\flare\\loaders\\Flare3DLoader2.as:151]

I had given it inside the try catch block but its not working. Is there any way to catch this error

Arun V   «   Reply #6 on: July 16, 2012, 06:02:45 AM »
Not solved yet..:(

Ivan Vodopiviz   «   Reply #7 on: July 16, 2012, 11:10:41 AM »
Hi,

Please check the following thread: http://www.flare3d.com/support/index.php?topic=1353

Regards,