MarsEdit Preview crashes. Setapp?
I'm using the setup versions of MarsEdit and Marked, and I can't get the MarsEdit Preview to work. Often the app crashes (see attached) instantly when I select Preview > MarsEdit Preview. Every once in a while it opens to a blank window, even though I have a MarsEdit Post open. One time I saw an error message saying MarsEdit cannot be found or MarsEdit is not running (I can't get this to show up again).
As an experiment, I downloaded the non-setapp trial of MarsEdit and Marked's preview worked. So there may be an incompatibility with the setapp version of MarsEdit?
As an interim hack, I've been manually using the clipboard preview, but I'd really like to get this working. I have a use case for a custom preprocessor that MarsEdit's built-in preview can't support.
The app works great with other files, just can't get MarsEdit to work reliably. Love the app!
- marked-crash.txt 115 KB
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
Support Staff 1 Posted by Brett on 18 Aug, 2020 12:24 PM
So I haven't tested the MarsEdit integration for a while. On my machine
it works with all 3 versions of Marked (MAS, Paddle, and Setapp), but it
actually works _best_ with the Setapp version. The other two don't seem
to be automatically updating.
The only thing I can think of is if the permissions dialog that would
allow Marked to control MarsEdit was denied and Marked isn't handling it
well. Do you know if you ever received that dialog?
My best suggestion would be to delete your preferences and see if a
clean start helps out. This would be done by:
To delete your preferences with the direct (non-MAS) version of Marked
2:
1. Quit Marked
2. Delete the file at
~/Library/Preferences/com.brettterpstra.marked-setapp.plist (and any
other files starting with com.brettterpstra.marked2). If you're not sure
how to access this folder, open Finder and press ⌘⇧G, then paste
"~/Library/Preferences" (without quotes) into the box.
3. Reboot the computer (this is important as OS X aggressively caches
preferences and may just restore the deleted file without your
knowledge.
4. Launch Marked
2 Posted by Jim Bagrow on 18 Aug, 2020 02:30 PM
Thanks. I deleted the preferences plists and rebooted but no luck.
99% sure I never received a permission dialog where Marked requested to
control MarsEdit. In System Preferences, I don't see Marked or MarsEdit
show up in the Security & Privacy > Privacy > Automation list (and I think
I can't manually edit that list).
As a sanity check I removed all the Marked permissions I could (Full Disk
Access, etc.) and no effect.
If it helps, attached is a new crash log. I think the main error message is:
**** Terminating app due to uncaught exception
'NSInvalidArgumentException', reason: '*** -[__NSCFString
stringByAppendingString:]: nil argument'terminating with uncaught exception
of type NSExceptionabort() called*
This message is different from the original crash report, but I've seen it
many times before.
Even if we can't get to the bottom of this, appreciate the help!
Support Staff 3 Posted by Brett on 18 Aug, 2020 03:13 PM
Can I see the contents of the blog post you're trying to preview? Marked
seems to be trying to extract some contents that seem to exist but are
returning empty responses, so I need to narrow down what's triggering
that to begin with.
-Brett
4 Posted by Jim Bagrow on 18 Aug, 2020 04:12 PM
It seems to happen for all posts. I just made one containing only a
paragraph of plain text lorem ipsum (see screenshot) and Marked crashed the
same way.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
> tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
> veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
> commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
> velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
> cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id
> est laborum.
>
I also have a custom preview template in MarsEdit. I thought Marked may be
seeing that somehow. But it still crashes even after restoring the default
template.
[image: CleanShot 2020-08-18 at 12.10.28.jpg]
Support Staff 5 Posted by Brett on 18 Aug, 2020 04:45 PM
Marked should be fully ignoring any custom templates. It attempts to get
the title, content, extended content, and any tags used. The crash seems
to be happening when it scans for embedded scripts, of which there
shouldn't be any in most MarsEdit posts. I have a that attempts to
catch that error and ignore it, would you be willing to run a test
build?
If so, download and unzip this version and see if it fixes the issue:
http://ckyp.us/ojxUZu
(this is a Setapp-specific build, should work with your existing
subscription setup)
-Brett
6 Posted by Jim Bagrow on 18 Aug, 2020 05:54 PM
Ok, the test version (running just from ~/Downloads) does not crash but the
MarsEdit Preview is blank.
Also, not sure if this is a clue: if I change "process markdown with:
Discount (GFM)" to "process markdown with MultiMarkdown", the test version
crashes but with a different message:
Application Specific Information:
> *** Terminating app due to uncaught exception
> 'NSInvalidArgumentException', reason: '*** -[NSRegularExpression
> enumerateMatchesInString:options:range:usingBlock:]: nil argument'
> terminating with uncaught exception of type NSException
> abort() called
>
The (non-test) setapp Marked crashes regardless of MMD or GFM.
Crash log attached.
Thanks!
Support Staff 7 Posted by Brett on 18 Aug, 2020 06:30 PM
Using MMD, does the preview update with actual content if you hit ⌘R?
Also, when you say blank, do you mean entirely blank, or with a message
displayed about launching MarsEdit or similar?
-Brett
Support Staff 8 Posted by Brett on 18 Aug, 2020 06:33 PM
Oh, I should have asked this a while ago, but which version of MarsEdit
are you using, and is it from the MAS?
-Brett
9 Posted by Jim Bagrow on 18 Aug, 2020 06:40 PM
WIndow is blank. Refreshing with Cmd+R it blinks for a second and I see a
spinner in the lower-right corner, but stays blank. (See attached)
If I have the blank MarsEdit preview open and then switch to MMD in
preferences, Marked crashes immediately when pressing 'refresh' or closing
the preferences window.
Also, as another experiment: If Marked is running but MarsEdit is *not*,
and I select MarsEdit preview in the test version of Marked, it opens the
same blank preview window. I think it should have a message about MarsEdit
but it doesn't.
Oh sorry this wasn't clear: Both MarsEdit and Marked are from Setapp. (I
started using Setapp to get MarsEdit actually. I've had a copy of Marked
for some time).
[image: CleanShot 2020-08-18 at [email blocked]]
10 Posted by Jim Bagrow on 21 Aug, 2020 02:04 PM
It looks like this thread's died out, but let me just say:
1) if there is any info I can provide that might help, please let me know!
2) if we can't figure this out, or you're too busy: *No big deal.* I'm a
very satisfied Marked user [1]. I'm sure this is some weird edge case,
likely my fault.
Love all the stuff you're putting online, keep up the great work!
[1] Desperately trying to find the time to wrap my head around Bunch as
well!
Support Staff 11 Posted by Brett on 21 Aug, 2020 02:20 PM
Not dead, was waiting to hear what version of MarsEdit you were using.
- Brett
12 Posted by Jim Bagrow on 21 Aug, 2020 02:59 PM
Oops, my bad! MarsEdit Version 4.4.2 (9294) Setapp Edition
Support Staff 13 Posted by Brett on 22 Aug, 2020 05:45 PM
Huh. On my machine my copy isn't even picking up the Setapp version
while it's running. If I hit ⌘E it opens the right version, but it's
not showing a preview at all. This might be related to what you're
seeing and will take some more digging on my part. I don't have an
immediate solution, I'm afraid.
-Brett