I have upload a file 2.png when I try to segment the image with make_SegmentPageByRAST(), it throw an exception something like std::bad_alloc or something, but on other images the exception can be capture by pcall() in Lua, I am not quite sure what happen, maybe 2GB of ram is not sufficient to segment the image, but shouldn't pcall() capture all the exception even the function called is implemented in C++ ?
Can someone please segment the file by RAST and see if any exception occur for me? Cheers, Leo On 3月18日, 上午1時52分, Thomas Breuel <[email protected]> wrote: > It's supposed to catch the exception all the time. > > Can you write a small test case that reproduces the problem (it may have to > trigger exceptions repeatedly until it fails) and submit it as an issue to > the issue tracker, please? > > Tom > > On Tue, Mar 17, 2009 at 04:43, Leo <[email protected]> wrote: > > > Hi there > > > I try to catch the exception in Lua when I call some of the function > > from Ocropus such as estimate_skew_by_rast(), make_SegmentPageByRAST > > (),make_DeskewPageByRAST() as it might throw back an exception that > > cause the script to stop. > > I try use pcall() function in Lua, but it didn't seems to work all the > > time, is there any other way to catch such error? > > > Cheers, > > Leo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ocropus" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ocropus?hl=en -~----------~----~----~----~------~----~------~--~---
