Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2024-03-28 12:37:09



Reply to topic  [ 7 posts ] 
Segfault when importing specific linkset xml files 
Author Message

Joined: 2009-09-08 01:27:46
Posts: 172
Reply with quote
When importing certain linkset XML files, Cool Viewer freezes for a second after selecting a file and then it segfaults. I've attached logs to this post, though I compressed them due to attachment size limits.


Attachments:
File comment: Old version of log, since I relogged right after the crash
SecondLife.old.tar.bz2 [14.99 KiB]
Downloaded 145 times
File comment: Crash report
SecondLifeCrashReport.log.tar.bz2 [19.63 KiB]
Downloaded 145 times
2009-12-23 19:42:11
Profile WWW

Joined: 2009-03-17 18:42:51
Posts: 5523
Reply with quote
In order to see what went wrong, I'd need the XML which triggered the crash...

From the crash report log, it however seems that the crash occurred in the viewer's standard (untouched by the Cool SL Viewer patch set) code (LLSD::operator[](std::string const&) const + 12). The importer uses the LLSD class to import XML files, but this class is not really coded to deal with malformed, truncated or corrupted XMLs, and processing such files usually results in crashes.

My guess is therefore that your XML is either corrupted, truncated, or was created by another viewer (the importer of the Cool SL Viewer can only import files that have been created by its own exporter...).


2009-12-23 21:19:27
Profile WWW

Joined: 2009-09-08 01:27:46
Posts: 172
Reply with quote
I did try to import an xml that Cool Viewer had created, just a minute before.


2009-12-23 21:21:17
Profile WWW

Joined: 2009-09-08 01:27:46
Posts: 172
Reply with quote
btw, just a theory: this crash occured when I tried to import a 1-prim object.


2009-12-23 21:35:07
Profile WWW

Joined: 2009-03-17 18:42:51
Posts: 5523
Reply with quote
Zauber Exonar wrote:
btw, just a theory: this crash occured when I tried to import a 1-prim object.
Perhaps the xml is empty ?... In any case, I need it in order to reproduce the bug here.


2009-12-23 22:26:44
Profile WWW

Joined: 2009-09-08 01:27:46
Posts: 172
Reply with quote
Oy, you were right on the money with that one! I opened it up and found this inside:
Code:
<llsd>
    <undef />
</llsd>


So it looks like there's a problem with the exporter code.


2009-12-23 22:32:01
Profile WWW

Joined: 2009-09-08 01:27:46
Posts: 172
Reply with quote
I've figured out the bug in the exporter. The semi-empty xml file is written if you decide to export a single linked prim while Edit Linked Parts is enabled. Whether it is a child prim or the root prim makes no difference. My suggestion for fixing it is to simply disable the export option when Edit Linked Parts is turned on.


2009-12-23 22:40:02
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users and 21 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.