Marked not updating from Byword and crashing repeatedly

dsmccormick's Avatar

dsmccormick

14 Sep, 2011 04:27 PM

Hi, Brett:

FIrst, thanks for all the great programs, tips, tricks, and services you have written and shared with all of us. I loved your interview on Mac Power Users this week, which induced me to get Byword and Marked.

I have been having some issues between Marked and Byword today. I am finding that using a Markdown file in Byword that has been dragged onto Marked, the Marked preview won't refresh after a save in Byword. I have been getting crashes as well. For example, see appended below.

Any suggestions appreciated.

Thanks, David.

[Edited, moving crash report to file]

  1. Support Staff 1 Posted by Brett on 14 Sep, 2011 04:53 PM

    Brett's Avatar

    I'm attaching your crash report as a file to make this thread easier to manage. I've seen this same crash a few times, on both Snow Leopard and Lion. I haven't been able to replicate it at all. I made some changes in the code for the next version that might help, but more information would be very useful.

    Could you attach any text file that Marked is crashing on? Also, let me know where the file is stored (Dropbox, main HD, external disk, etc.).

  2. 2 Posted by dsmccormick on 14 Sep, 2011 05:48 PM

    dsmccormick's Avatar

    Brett:

    Thanks for the quick reply. Please see attached Markdown file.

    I also notice that if I put the horizontal rule markdown characters
    ("***" or "___") on their own line, they won't necessarily render
    correctly: I need to pad the characters with 1 line of spacing on
    either side for them to render properly.

    Thanks, David.

  3. Support Staff 3 Posted by Brett on 14 Sep, 2011 06:03 PM

    Brett's Avatar

    Ok, I tested with your file and Byword and was able to edit without crashing and updates kept up, so there's something going on besides encoding issues or Byword incompatibilities.

    I gather that you're not using any kind of custom processor. Are the files you're editing stored on Dropbox or anything external?

    Also, do you mind if I make this conversation public so the debugging might help someone else?

  4. Support Staff 4 Posted by Brett on 14 Sep, 2011 06:18 PM

    Brett's Avatar

    Oh, and by the way, Marked uses the MultiMarkdown 3 implementation, which does require whitespace on both sides of a horizontal rule to work.

  5. 5 Posted by dsmccormick on 14 Sep, 2011 07:03 PM

    dsmccormick's Avatar

    Brett:

    Yes, the files are in Dropbox.

    Yes, you may make this public if you think it will help others. Just didn't want to expose anything particularly private in the crash dump file. You can judge better than I can whether that info has private information.

    Thanks, David

  6. 6 Posted by dsmccormick on 14 Sep, 2011 07:03 PM

    dsmccormick's Avatar

    ...and thanks for the tip on whitespace and horizontal line formatting in MM3.

  7. Support Staff 7 Posted by Brett on 14 Sep, 2011 07:06 PM

    Brett's Avatar

    Deleting the crash reports and your sample file before switching this to public.

    I think there may be an issue with Marked and files on Dropbox. I'll leave this ticket open while I do some further testing. If you could try moving the files out of your Dropbox folder and testing them for a while, it would be very helpful to know if the crashes still occur. Thanks.

  8. 8 Posted by dsmccormick on 14 Sep, 2011 07:11 PM

    dsmccormick's Avatar

    For what it's worth, I did install the Byword.css stylesheet as a custom style.

    I will move the file out of Dropbox and see what happens.

    Thanks, David

  9. 9 Posted by dsmccormick on 14 Sep, 2011 07:55 PM

    dsmccormick's Avatar

    Brett:

    I moved the file in question to my Documents directory, rebooted, and
    edited, and the symptoms persist: the document won't update upon
    Byword save and it intermittently crashes.

    Oh, well.

    David.

  10. Support Staff 10 Posted by Brett on 14 Sep, 2011 08:02 PM

    Brett's Avatar

    Ok, leaving this ticket open while I review the crash report some more. I'll get back to you as soon as I can.

    Have you tested with any other editors? Same results?

  11. 11 Posted by dsmccormick on 14 Sep, 2011 10:58 PM

    dsmccormick's Avatar

    I will try with TextEdit and TextWrangler and get back to you.

    Cheers, David

  12. 12 Posted by dsmccormick on 15 Sep, 2011 12:26 AM

    dsmccormick's Avatar

    Here's an update. I could not get it work with BBEdit. I could get it
    to work with TextWrangler, but it would not update on save in the
    editor: I had to go to Marked and hit Refresh.

    In TextWrangler, I noticed that if I switched styles a few time, it
    would no longer switch styles and it would no longer Refresh properly
    with updates. I would have to close the Markdown file, reopen, and go.
    Then after a few times of this close-and-reopen, Marked crashed. New
    crash report attached.

    In TextEdit, it seemed to work for a little bit, but then it got all
    funky, too. I noticed in TextEdit that there were some funky
    characters (non alpha). I deleted them, but it didn't help, other than
    make the rendered document look correct. Had several crashes; reports
    2 and 3 are from TextEdit.

    Note: I have the Byword CSS file installed as the Custom style.

    Is there any way to get back to the initial install state? Is there a
    *.plist file that I can delete to start again?

    For what it's worth, I see an "mds" process running furiously in the
    background. Spotlight indexing?

    Thanks, David.

  13. Support Staff 13 Posted by Brett on 15 Sep, 2011 12:32 AM

    Brett's Avatar

    I'll review the crash reports as quickly as possible. The `mds` process is of interest as it _is_ Spotlight indexing and could greatly affect Marked's performance in exactly the areas we're looking at. A couple of thoughts:

    1. To reset preferences, delete the file ~/Library/Preferences/com.brettterpstra.marky.plist
    2. Rebuilding the Spotlight index for your primary drive has helped several people. If you're willing to try this fix, you can use a number of utilities such as Onyx or Cocktail, but the easiest is just to open Terminal and type `mdutil -E /`

    I'll be back in touch soon.

  14. 14 Posted by Samuel on 15 Sep, 2011 09:14 AM

    Samuel's Avatar

    Yep, for me, too: "mdutil -E /" did the trick. Strange.

  15. 15 Posted by samuel on 15 Sep, 2011 09:17 AM

    samuel's Avatar

    Now, Spotlight indexes my *.md files and the auto-reload of a .md file I am editing in ByWord is working in marked.

  16. Support Staff 16 Posted by Brett on 15 Sep, 2011 09:20 AM

    Brett's Avatar

    Great! Apparently this is going to be my all-purpose solution…

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac