Losing Preference settings

Phil's Avatar

Phil

11 Oct, 2017 12:55 PM

Second time this has happened recently, but all my preferences have been lost/reset for Marked - they look like they have been reset to default. This includes “losing” of custom style sheet setting, export headers and footers and various other preferences I had turned off/on

// Please enter a list of steps required to reproduce the issue // Steps to reproduce:

  1. Open Marked 2 preferences are gone - I usually open Marked by dragging the icon from the header bar of my editor to the Marked Icon in my doc

// If applicable please attach a sample document that causes the issue for you.

// Configuration (do not edit) Marked 2 930 (Direct)

OS X Version: 10.13

additionalMathJaxConfig:
allowPageBreakInCode: 1
bookTxtIsLeanpub: 0
summaryMdIsGitBook: 0
codeIsPoetry: 0
collapsibleHeadlines: 0
convertGithubCheckboxes: 1
convertYAMLToMMD: 0
defaultMathJaxConfig: TeX-AMS-MML_HTMLorMML
defaultPreviewStyle: 0
defaultProcessor: MultiMarkdown
enableMiniMap: 0
excludeBlockQuotesFromCounts: 0
excludeFootnotesFromCounts: 0
excludeVerbatimFromCounts: 0
excludeCaptionsFromCounts: 0
folderPreviewExtensionsArray: md, markdown, txt, mdown, html, opml
githubNewlines: 1
h1IsPageBreak: 0
h2IsPageBreak: 0
hrIsPageBreak: 0
includeMathJax: 0
limitTextWidth: 0
minimalJavaScript: 0
outlineModeExtensions:
permissionGranted: 0
printHeaderBottomLeft:
printHeaderBottomRight:
printHeaderFooterFirstPage: 0
printHeaderTopLeft:
printHeaderTopRight:
processHTMLFiles: 1
removeMetadataForPreview: 0
removeYAMLHeaders: 0
scrollToEdit: 1
shouldDetectCritic: 1
shouldHighlightMarkupErrors: 0
shouldLoadCritic: 0
syntaxHighlight: 1

  1. Support Staff 1 Posted by Brett on 11 Oct, 2017 01:12 PM

    Brett's Avatar

    Hi Phil,

    This sounds like preference files are being corrupted. Have you run a repair in disk utility recently? I ask because I don't recall ever having this issue reported before, so I'm guessing there's probably an issue outside of Marked.

    - Brett

  2. 2 Posted by tzegin on 11 Oct, 2017 01:36 PM

    tzegin's Avatar

    Happened to me twice since upgrading to 10.13.

    Initially I thought the 10.13 upgrade somehow reset Marked 2 preferences, but it happened again yesterday.

  3. 3 Posted by tzegin on 11 Oct, 2017 01:50 PM

    tzegin's Avatar

    Now, this has become interesting.

    After the preference was lost yesterday, because I was busy, I only changed a few settings, namely General, Preview and Style, including adding a custom CSS. When I click on the Apps tab, I did not choose a text editor and just stopped there and went back to my work.

    Looking at the Preferences now, everything is how they should be, including Apps, Proofing, Export and Advanced, i.e. the preferences have been restored.

  4. Support Staff 4 Posted by Brett on 11 Oct, 2017 03:19 PM

    Brett's Avatar

    I would definitely do a disk repair. Preferences are cached pretty
    heavily by the system, so they could easily have been re-written to disk
    from the cache at some point if the preference file had become
    unreadable.

    -Brett

  5. 5 Posted by Phil Shrimpton on 11 Oct, 2017 03:30 PM

    Phil Shrimpton's Avatar

    Hi Brett,

    Checked disk and carried out a “full Onyx”, no problems identified and nothing to repair.

    Been a Marked user for a number of years and the problem has only happened twice and both of those are quite recent, but can’t confirm if they both happened after “upgraded” to High Sierra or not, today’s one was.

    I have carried out a full clean of everything cache related and “disk repair” related - I will see if it happens again from now.

    Phil

  6. 6 Posted by tzegin on 11 Oct, 2017 11:32 PM

    tzegin's Avatar

    First Aid of Disk Utility in recovery mode reported no issue with my startup disk. Will report back if preference is lost again.

    -tzegin

  7. 7 Posted by tzegin on 26 Oct, 2017 06:56 AM

    tzegin's Avatar

    Had a document opened in Marked 2 this morning. Everything was fine. After leaving the document for a while, when I came back to it, preferences were lost.

    Quit Marked 2 and opened the document again, and preferences were restored.

  8. 8 Posted by Phil on 26 Oct, 2017 01:25 PM

    Phil's Avatar

    It has happened to be twice again since the original report, both time the preferences were lost whilst Marked was open. Quitting and restarting Marked restored most of the preferences both times (basically everything apart from my custom CSS file).

    May not be related and might be a different issue, but both times I was editing a document and exporting to a paginated PDF and the PDF created did not contain all the pages, it exported 13-15 pages of a 19 page document.

  9. 9 Posted by tzegin on 26 Oct, 2017 11:05 PM

    tzegin's Avatar

    Now that you mentioned it, I did export a document to a paginated PDF.

    However, the PDF created was perfect, and quitting and restarting Marked restored all preferences including my custom CSS.

  10. Support Staff 10 Posted by Brett on 27 Oct, 2017 06:15 PM

    Brett's Avatar

    This sounds like a failure to write to the preference storage. I'd
    highly recommend trashing the current preference file:

    - Direct version: ~/Library/Preferences/com.brettterpstra.marked2
    - MAS version:
    ~/Library/Containers/com.brettterpstra.marked2/Data/Library/Preferences/com.brettterpstra.marked2.plist

    You'll have to rebuild your preferences, but if that file is corrupted
    in any way, it could easily cause the symptoms you're seeing.

    Please let me know if that helps.

    -Brett

  11. 11 Posted by tzegin on 28 Oct, 2017 04:00 AM

    tzegin's Avatar

    I believe the preference file was corrupted. After upgrading to 10.13, I had to change the top margin to 50 (which was huge) to get the margin I wanted for PDF export.

    After trashing the preference file, I have to set the top margin to 25, which to me is the correct figure.

  12. 12 Posted by Ralf Papenkordt on 29 Oct, 2017 11:51 PM

    Ralf Papenkordt's Avatar

    It seems that apps losing its preferences is a common problem in macOS High Sierra. I have this problem from time to time with Path Finder, Launchbar and IINA. Others have this problem too, see e.g. https://forums.macrumors.com/threads/high-sierra-os-apps-losing-the... .

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