MacDownApp / MacDownApp/macdown

Crash when scrolling on initial Markdown preview render (MacOS Sierra)

Open
#716 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug help wanted
Dominant language
Rich Text Format
Stars
9.8k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

I noticed today that when I opened a rather large Markdown file in Macdown, and tried to scroll down immediately, before the preview finished rendering, the application would crash. This happened a couple of times, also with some smaller files. I successfully managed to replicate it just before writing this report (to get the crash log). It seems to be an issue with the main view trying to scroll the preview view before it has any content. Here is an image of the crash log:
![image](https://cloud.githubusercontent.com/assets/7686840/21451429/5bd051e0-c8ff-11e6-9853-703a2e8bc4df.png)

Here is the full log:
http://pastebin.com/EenjhawV

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the crash by opening a large Markdown file in MacDown and scrolling before the preview finishes rendering; the issue includes a crash image and full log for comparison. Trace the main view and preview view interaction during initial rendering, then verify that scrolling before rendering completes no longer crashes.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, objective-c
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.