Re: Help with fdo#60471
I tried using the catch/throw stuff in GDB for debugging, gave up, and now simply set a breakpoint in the constructor of the Exception object :-) Works for me. On 2013-02-13 03:11, Marcos Souza wrote: I tried to get the error message from uno::Exception using a SAL_WARN, but this is the message: [ line 4]: error This don't say anything to me : ) Disclaimer: http://www.peralex.com/disclaimer.html ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: Help with fdo#60471
On 02/12/2013 07:04 PM, Marcos Souza wrote: And one more thing, there is a place for learn how UNO works and how this is used inside LO? See the Developer's Guide at http://wiki.openoffice.org/wiki/Documentation/DevGuide/OpenOffice.org_Developers_Guide. Stephan ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: Help with fdo#60471
Hi Marcos, Michael, Marcos Souza píše v Út 12. 02. 2013 v 23:11 -0200: I tried to get the error message from uno::Exception using a SAL_WARN, but this is the message: [ line 4]: error This don't say anything to me : ) Yes - unhelpful ;-) I've had a better look, and it is down to throwing SaxExpatParser: internal entity declaration, stopping, added by Michael S.: http://lists.freedesktop.org/archives/libreoffice-commits/2012-May/031218.html Michael, can you please have a look? The SVG.odp from fdo#60471 throws that when parsing Pictures/100020E19BE89C15.svg that contains !ENTITY ns_flows http://ns.adobe.com/Flows/1.0/; Thank you, Kendy ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: Help with fdo#60471
On 13/02/13 10:53, Jan Holesovsky wrote: Yes - unhelpful ;-) I've had a better look, and it is down to throwing SaxExpatParser: internal entity declaration, stopping, added by Michael S.: http://lists.freedesktop.org/archives/libreoffice-commits/2012-May/031218.html Michael, can you please have a look? The SVG.odp from fdo#60471 throws that when parsing Pictures/100020E19BE89C15.svg that contains !ENTITY ns_flows http://ns.adobe.com/Flows/1.0/; both parsers in the sax module abort on the first XML entity encountered, to make the import filters robust against billion laughs kind of Denial of Service attacks. http://en.wikipedia.org/wiki/Billion_laughs how common is it anyway to have these internal entities in SVG files? ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: Help with fdo#60471
On 13/02/13 11:37, Michael Stahl wrote: On 13/02/13 10:53, Jan Holesovsky wrote: Yes - unhelpful ;-) I've had a better look, and it is down to throwing SaxExpatParser: internal entity declaration, stopping, added by Michael S.: http://lists.freedesktop.org/archives/libreoffice-commits/2012-May/031218.html Michael, can you please have a look? The SVG.odp from fdo#60471 throws that when parsing Pictures/100020E19BE89C15.svg that contains !ENTITY ns_flows http://ns.adobe.com/Flows/1.0/; both parsers in the sax module abort on the first XML entity encountered, to make the import filters robust against billion laughs kind of Denial of Service attacks. http://en.wikipedia.org/wiki/Billion_laughs how common is it anyway to have these internal entities in SVG files? apparently Adobe Illustrator is written by monkeys who thought the following gratuitous nonsense is a good way to define XML namespaces: !DOCTYPE svg PUBLIC [...] !ENTITY ns_flows http://ns.adobe.com/Flows/1.0/; !ENTITY ns_svg http://www.w3.org/2000/svg; !ENTITY ns_xlink http://www.w3.org/1999/xlink; ] svg [...] xmlns:xlink=ns_xlink; xmlns=ns_svg; [...] sigh... guess i'll have to add a parameter to the SAX parser so it can still ignore entities when reading ODF files... ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Help with fdo#60471
Hi guys! I was trying to solve this issue, but I need some code pointers... Can you guys point to me some places to start? And one more thing, there is a place for learn how UNO works and how this is used inside LO? I believe UNO is used in every case that we handle files right? Thanks since now! -- Att, Marcos Paulo de Souza Acadêmico de Ciencia da Computação - FURB - SC Github: https://github.com/marcosps/ Uma vida sem desafios é uma vida sem razão A life without challenges, is a non reason life ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: Help with fdo#60471
Hi Marcos, About code pointers, I can't help but here are some docs: http://api.libreoffice.org/ + this: https://wiki.documentfoundation.org/Development#General_Programming_Guidelines Julien -- View this message in context: http://nabble.documentfoundation.org/Help-with-fdo-60471-tp4036825p4036829.html Sent from the Dev mailing list archive at Nabble.com. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: Help with fdo#60471
Hi Marcos, Marcos Souza píše v Út 12. 02. 2013 v 16:04 -0200: I was trying to solve this issue, but I need some code pointers... Can you guys point to me some places to start? Yes - so please rebuild svgio with debugging info (make svgio.clean ; make debug=true svgio), and when you open the presentation from the bug, it seems to produce: warn:legacy.osl:52198:1:svgio/source/svguno/xsvgparser.cxx:147: Parse error (!) I guess it might be related - I'd put a breakpoint in svgio/source/svguno/xsvgparser.cxx and I'd try to catch the exception that is being thrown there during the parsing - hopefully that will lead you to the cause; if not, please poke for more pointers :-) All the best, Kendy ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: Help with fdo#60471
Hi Kendy and list! This is the point where we get this issue: // finally, parse the stream to a hierarchy of // SVGGraphicPrimitive2D which will be embedded to the // primitive sequence. Their decompositions will in the // end create local low-level primitives, thus SVG will // be processable from all our processors xParser-parseStream(myInputSource); I will take a look at this more closer, and try to understand why this happens Thanks a lot Kendy for the tip about debug=true!! 2013/2/12 Jan Holesovsky ke...@suse.cz Hi Marcos, Marcos Souza píše v Út 12. 02. 2013 v 16:04 -0200: I was trying to solve this issue, but I need some code pointers... Can you guys point to me some places to start? Yes - so please rebuild svgio with debugging info (make svgio.clean ; make debug=true svgio), and when you open the presentation from the bug, it seems to produce: warn:legacy.osl:52198:1:svgio/source/svguno/xsvgparser.cxx:147: Parse error (!) I guess it might be related - I'd put a breakpoint in svgio/source/svguno/xsvgparser.cxx and I'd try to catch the exception that is being thrown there during the parsing - hopefully that will lead you to the cause; if not, please poke for more pointers :-) All the best, Kendy -- Att, Marcos Paulo de Souza Acadêmico de Ciencia da Computação - FURB - SC Github: https://github.com/marcosps/ Uma vida sem desafios é uma vida sem razão A life without challenges, is a non reason life ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: Help with fdo#60471
I tried to get the error message from uno::Exception using a SAL_WARN, but this is the message: [ line 4]: error This don't say anything to me : ) 2013/2/12 Marcos Souza marcos.souza@gmail.com Hi Kendy and list! This is the point where we get this issue: // finally, parse the stream to a hierarchy of // SVGGraphicPrimitive2D which will be embedded to the // primitive sequence. Their decompositions will in the // end create local low-level primitives, thus SVG will // be processable from all our processors xParser-parseStream(myInputSource); I will take a look at this more closer, and try to understand why this happens Thanks a lot Kendy for the tip about debug=true!! 2013/2/12 Jan Holesovsky ke...@suse.cz Hi Marcos, Marcos Souza píše v Út 12. 02. 2013 v 16:04 -0200: I was trying to solve this issue, but I need some code pointers... Can you guys point to me some places to start? Yes - so please rebuild svgio with debugging info (make svgio.clean ; make debug=true svgio), and when you open the presentation from the bug, it seems to produce: warn:legacy.osl:52198:1:svgio/source/svguno/xsvgparser.cxx:147: Parse error (!) I guess it might be related - I'd put a breakpoint in svgio/source/svguno/xsvgparser.cxx and I'd try to catch the exception that is being thrown there during the parsing - hopefully that will lead you to the cause; if not, please poke for more pointers :-) All the best, Kendy -- Att, Marcos Paulo de Souza Acadêmico de Ciencia da Computação - FURB - SC Github: https://github.com/marcosps/ Uma vida sem desafios é uma vida sem razão A life without challenges, is a non reason life -- Att, Marcos Paulo de Souza Acadêmico de Ciencia da Computação - FURB - SC Github: https://github.com/marcosps/ Uma vida sem desafios é uma vida sem razão A life without challenges, is a non reason life ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice