MacDownApp / MacDownApp/macdown

Opening large files causes editor to white screen

Open
#788 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

It's not the most easily reproducible issue, but it may have something to do with scrolling.

If I create a new file, everything works okay. Put in a few lines of text, save, close, open the file, everything's fine.

Try the same thing but with a file with many new lines (I experimented with lipsum and the like, and the word count seems to not affect it as much as the vertical length). Save, close, open the file- now the preview pane works fine as always, but the editor comes up as purely a white screen (or the background colour of the theme) and doesn't show text, allow user input, etc.

I recently upgraded by a few versions as I hadn't used Macdown for a while. Definitely used to work, definitely doesn't now. I'm on Mavericks.

Cheers

Unsaved:
![image](https://cloud.githubusercontent.com/assets/3296828/24998842/6a182972-2033-11e7-8cce-4c3a9ab0a15a.png)

Saved and reopened:
![image](https://cloud.githubusercontent.com/assets/3296828/24998876/7cc843ae-2033-11e7-92ed-373fb76f2c14.png)

Macdown version:
![image](https://cloud.githubusercontent.com/assets/3296828/24998891/8750cd5a-2033-11e7-9b8a-cab684534cd6.png)

Mac version:
![image](https://cloud.githubusercontent.com/assets/3296828/24998905/90390572-2033-11e7-9f59-1a2062173374.png)

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

No source file or test is identified. First reproduce the failure in the editor by opening a saved file with many new lines on the reported MacDown/macOS setup, comparing it with an unsaved file; done means the reopened editor displays its text and accepts input while the preview pane continues to work.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.