Freezing when clicking to edit "Additional CSS"
I've configured my preferences in Marked 2 to include some additional CSS. I don't remember what I added – I made these edits many months ago. I can't change the additional CSS without Marked 2 freezing. It freezes as soon as I click the "Edit CSS" button, before the little popup window with the CSS code opens, so I can't even see what I've added, much less make changes to it. Is there a way to view/edit my additional CSS without freezing the app? Perhaps there's an "hidden" way to edit the additional CSS from the command line or a preference file somewhere?
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
1 Posted by daniel on 26 Aug, 2024 11:25 PM
following up on this... any clue for solutions?
Using a utility called PrefsEditor, I was able to inspect my current Additional CSS outside the Marked app. Here is what I have:
Support Staff 2 Posted by Brett on 27 Aug, 2024 04:25 PM
I haven't run into this myself, but you might try using PrefsEditor to completely delete that key and see if the Additional CSS window will then open. I don't think the issue has anything to do with the content of your CSS, but I have no idea what's choking the app. I've tested with your CSS content and the window doesn't fail to open for me...
3 Posted by Gilles Bisson on 24 Oct, 2024 07:36 PM
I have the same problem: when I click on Edit CSS, the application freezes. Maybe there's something wrong with this CSS, but I can't even find it in my user library. What is its current location and the default name?
4 Posted by Gilles Bisson on 25 Oct, 2024 07:39 AM
In addition, Marked2 crashes, but if you don't kill the process, it allocates all the computer's memory. I left it running last night and this morning it had allocated 190 GB!! The problem is therefore accompanied by a severe memory leak.
Support Staff 5 Posted by Brett on 25 Oct, 2024 01:07 PM
Any hung process will continue to gather memory. It doesn't necessarily
represent a leak in Marked.
Additional CSS is stored in Preferences, not on disk. You'll need to
delete your Preferences and start fresh if you want to modify it.
However, errors in the CSS would only affect its ability to display in
the preview, it wouldn't cause a crash, as Marked does no parsing or
formatting of that text. This issue remains a mystery, and has only been
reported a few times in the last decade. I'm unable to reproduce it,
which makes it really hard to track down.To delete your preferences with
the direct (non-MAS) version of Marked 2:
To delete preferences:
1. Quit Marked 2
2. Delete the file at
~/Library/Preferences/com.brettterpstra.marked2.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
The location of the plist file in step 2 may be different depending on
which version of Marked you're using. If you're using MAS or Setapp and
can't locate the file, let me know.
-Brett
On 25 Oct 2024, at 2:39, Gilles Bisson wrote:
6 Posted by Gilles Bisson on 25 Oct, 2024 02:44 PM
Hi Brett
Thank you for your quick reply
I'm using a version purchased from the Apple Store and I can't find the file you're talking about in my preferences (see screenshot). I use:
Version 2.6.44 (1067) of Marked2
macOS version is 14.7 (23H124)
Computer : Apple M1 Pro 14"
Gilles