Caboodle icon Caboodle
Lean, clean snippet machine

HTML export problem (1.3b2)

When I try to export to HTML, a new folder is created, but the progress hangs with the message "Time Remaining: about 5 seconds". RTFD export works fine. Thanks.

David Sinclair's picture

Re: HTML export problem (1.3b2)

Interesting. Does that occur when exporting all entries, or just some? If you export just one entry, does it work? Do the selected entries have any attachments in them?

I'd like to be able to narrow down the cause to determine a fix.

Re: HTML export problem (1.3b2)

I've only tried with single entries, some of which have attachments, some of which don't. I've only tried 3 or 4 times, because I always eventually have to force quit Caboodle after attempting the export.

David Sinclair's picture

Re: HTML export problem (1.3b2)

Hmm. It'd be helpful if you could provide an example of an entry that won't export. Perhaps send a screenshot.

It isn't failing for any of my entries, but this is a new feature, so I could imagine there might be a bug.

I'd also be interested to know if you can export those failing entries as Web Archives, since that's a similar format. (And if you can, please send me one.)

Re: HTML export problem (1.3b2)

If I create a new entry at root level entitled "Try to export" and enter "try" into its contents, exporting as HTML works.

But if I try to export the default Dejal logo entry inside the default Pictures entry, I have the problem I've described.

Exporting as Web Archive also fails for the default Dejal logo entry.

David Sinclair's picture

Re: HTML export problem (1.3b2)

Weird. I am able to export the default Dejal logo entry, and other combinations.

Are there any errors listed in the Console log when you try the export?

Does anyone else have difficulty exporting to HTML?

Re: HTML export problem (1.3b2)

Yep.

5/14/09 5/14 - 10:29:50 PM Caboodle[874] Caboodle 874 Warning An uncaught exception was raised

5/14/09 5/14 - 10:29:50 PM Caboodle[874] Caboodle 874 Warning objc_object* -[WebResource(WebResourcePrivate) _initWithData:URL:MIMEType:textEncodingName:frameName:response:copyData:](WebResource*, objc_selector*, NSData*, NSURL*, NSString*, NSString*, NSString*, NSURLResponse*, BOOL) was called from a secondary thread
5/14/09 5/14 - 10:29:50 PM Caboodle[874] Caboodle 874 Warning WebKitThreadingException: objc_object* -[WebResource(WebResourcePrivate) _initWithData:URL:MIMEType:textEncodingName:frameName:response:copyData:](WebResource*, objc_selector*, NSData*, NSURL*, NSString*, NSString*, NSString*, NSURLResponse*, BOOL) was called from a secondary thread

5/14/09 5/14 - 10:29:50 PM Caboodle[874] Caboodle 874 Warning WebKitThreadingException: objc_object* -[WebResource(WebResourcePrivate) _initWithData:URL:MIMEType:textEncodingName:frameName:response:copyData:](WebResource*, objc_selector*, NSData*, NSURL*, NSString*, NSString*, NSString*, NSURLResponse*, BOOL) was called from a secondary thread

5/14/09 5/14 - 10:29:52 PM [0x0-0x63063].com.dejal.caboodle[874] [0x0-0x63063].com.dejal.caboodle 874 Notice 1 +[NSException raise:format:arguments:] (in CoreFoundation) + 155
5/14/09 5/14 - 10:29:52 PM [0x0-0x63063].com.dejal.caboodle[874] [0x0-0x63063].com.dejal.caboodle 874 Notice 2 +[NSException raise:format:] (in CoreFoundation) + 58
5/14/09 5/14 - 10:29:52 PM [0x0-0x63063].com.dejal.caboodle[874] [0x0-0x63063].com.dejal.caboodle 874 Notice 3 WebCoreReportThreadViolation (in WebCore) + 257
5/14/09 5/14 - 10:29:52 PM [0x0-0x63063].com.dejal.caboodle[874] [0x0-0x63063].com.dejal.caboodle 874 Notice 4 -[WebResource(WebResourcePrivate) _initWithData:URL:MIMEType:textEncodingName:frameName:response:copyData:] (in WebKit) + 97
5/14/09 5/14 - 10:29:52 PM [0x0-0x63063].com.dejal.caboodle[874] [0x0-0x63063].com.dejal.caboodle 874 Notice 5 -[WebResource initWithData:URL:MIMEType:textEncodingName:frameName:] (in WebKit) + 85
5/14/09 5/14 - 10:29:52 PM [0x0-0x63063].com.dejal.caboodle[874] [0x0-0x63063].com.dejal.caboodle 874 Notice 6 -[NSHTMLWriter _appendAttachment:atIndex:toString:] (in AppKit) + 1491
5/14/09 5/14 - 10:29:52 PM [0x0-0x63063].com.dejal.caboodle[874] [0x0-0x63063].com.dejal.caboodle 874 Notice 7 -[NSHTMLWriter _generateHTML] (in AppKit) + 8370
5/14/09 5/14 - 10:29:52 PM [0x0-0x63063].com.dejal.caboodle[874] [0x0-0x63063].com.dejal.caboodle 874 Notice 8 -[NSHTMLWriter HTMLFileWrapper] (in AppKit) + 46
5/14/09 5/14 - 10:29:52 PM [0x0-0x63063].com.dejal.caboodle[874] [0x0-0x63063].com.dejal.caboodle 874 Notice 9 -[NSAttributedString(NSAttributedStringKitAdditions) fileWrapperFromRange:documentAttributes:error:] (in AppKit) + 427
5/14/09 5/14 - 10:29:52 PM [0x0-0x63063].com.dejal.caboodle[874] [0x0-0x63063].com.dejal.caboodle 874 Notice 10 -[HTMLExportController saveText:fromEntry:toPath:] (in Caboodle) + 142
5/14/09 5/14 - 10:29:52 PM [0x0-0x63063].com.dejal.caboodle[874] [0x0-0x63063].com.dejal.caboodle 874 Notice 11 -[ExportController threadedExportEntries] (in Caboodle) + 381
5/14/09 5/14 - 10:29:52 PM [0x0-0x63063].com.dejal.caboodle[874] [0x0-0x63063].com.dejal.caboodle 874 Notice 12 -[ExportController threadedStartExport] (in Caboodle) + 396
5/14/09 5/14 - 10:29:52 PM [0x0-0x63063].com.dejal.caboodle[874] [0x0-0x63063].com.dejal.caboodle 874 Notice 13 -[NSThread main] (in Foundation) + 45
5/14/09 5/14 - 10:29:52 PM [0x0-0x63063].com.dejal.caboodle[874] [0x0-0x63063].com.dejal.caboodle 874 Notice 14 __NSThread__main__ (in Founda
5/14/09 5/14 - 10:29:52 PM [0x0-0x63063].com.dejal.caboodle[874] [0x0-0x63063].com.dejal.caboodle 874 Notice tion) + 308

David Sinclair's picture

Re: HTML export problem (1.3b2)

Aha... looks like the HTML writer doesn't like being called from a secondary thread — the export uses multiple work threads so the UI doesn't stall during the export.

Okay, I can work around that. I'll get a fix out tomorrow (Friday); please check back around noon PDT and try version 1.3b3 to see if it fixes the issue for you, since I haven't been able to recreate it.

Thanks for that info!

David Sinclair's picture

Re: HTML export problem (1.3b2)

Version 1.3b3 now released. Please let me know if this fixes it for you.