typora / typora-issues

Bugs, suggestions or free discussions about the minimal markdown editor — Typora
https://typora.io
1.53k stars 58 forks source link

crash when open #2972

Closed conn4575 closed 3 years ago

conn4575 commented 4 years ago

Always blank when I open it

默认  20:04:13.229268 +0800   Typora  error on exec js: Error Domain=WKErrorDomain Code=4 "发生了 JavaScript 异常" UserInfo={WKJavaScriptExceptionLineNumber=1, WKJavaScriptExceptionMessage=TypeError: undefined is not an object (evaluating 'File.editor.undo.hasUndo'), WKJavaScriptExceptionColumnNumber=1206244, WKJavaScriptExceptionSourceURL=file:///Applications/Typora.app/Contents/Resources/TypeMark/app/main.js, NSLocalizedDescription=发生了 JavaScript 异常}
默认  20:04:15.061780 +0800   Typora  callHandler: File.getContent, but webview is loading...
默认  20:04:15.065378 +0800   Typora  error on exec js: Error Domain=WKErrorDomain Code=4 "发生了 JavaScript 异常" UserInfo={WKJavaScriptExceptionLineNumber=1, WKJavaScriptExceptionMessage=TypeError: undefined is not an object (evaluating 'b.editor.undo.lastRegisteredOperationCommand'), WKJavaScriptExceptionColumnNumber=176113, WKJavaScriptExceptionSourceURL=file:///Applications/Typora.app/Contents/Resources/TypeMark/app/main.js, NSLocalizedDescription=发生了 JavaScript 异常}
默认  20:04:18.079544 +0800   Typora  Removing presenter D72651BB-1E87-4ECB-8F25-0039E7215386
默认  20:04:18.079653 +0800   Typora  Removing presenter D72651BB-1E87-4ECB-8F25-0039E7215386
默认  20:04:18.091404 +0800   Typora  error on exec js: Error Domain=WKErrorDomain Code=4 "发生了 JavaScript 异常" UserInfo={WKJavaScriptExceptionLineNumber=1, WKJavaScriptExceptionMessage=TypeError: undefined is not an object (evaluating 'File.editor.undo.hasUndo'), WKJavaScriptExceptionColumnNumber=1206244, WKJavaScriptExceptionSourceURL=file:///Applications/Typora.app/Contents/Resources/TypeMark/app/main.js, NSLocalizedDescription=发生了 JavaScript 异常}
xjf729 commented 4 years ago

also has this problem

When I change to 0.9.9.28.5, it seems be ok.

leewi9 commented 4 years ago

@abnerlee this is a serious problem , can you fix it asap, if you can not, please opensource it.

abnerlee commented 4 years ago

Does clear Typora config / cache using 3rd apps like AppCleaner works?

PRESIDENT810 commented 4 years ago

Same here, blank screen and cannot type anything

abnerlee commented 4 years ago

Does clear Typora config / cache using 3rd apps like AppCleaner works?

Please tell me if it works or not.. Or try #2923

If not resolve, please provide necessary error logs which you can get from Console.app

zrfrank commented 4 years ago

My problem is the entire UI is freezed,

I've completely uninstalled Typora including files in /var, and reinstalled it freshly. However, the issue persisted.

I believe it's still related to macOS Catalina update. And I guess there is some problem of the javascript engine while launching.

leewi9 commented 4 years ago

same here.

pls solve it asap.

abnerlee commented 4 years ago

relates #3030 But I never met this.

@zrfrank have you try use OS 10.15.1, and give Typora "Full Disk Access" in "Security & Privacy (remove then add again) , and restart macOS.

If still happens, could enable debug mode in help menu, and see if there are "inspect element" in context menu, click it and grab some console errors.

zss0329 commented 4 years ago

Always blank when I open it

  • OS version: 10.13.6
  • Typora version: 0.9.9.30.1
默认    20:04:13.229268 +0800   Typora  error on exec js: Error Domain=WKErrorDomain Code=4 "发生了 JavaScript 异常" UserInfo={WKJavaScriptExceptionLineNumber=1, WKJavaScriptExceptionMessage=TypeError: undefined is not an object (evaluating 'File.editor.undo.hasUndo'), WKJavaScriptExceptionColumnNumber=1206244, WKJavaScriptExceptionSourceURL=file:///Applications/Typora.app/Contents/Resources/TypeMark/app/main.js, NSLocalizedDescription=发生了 JavaScript 异常}
默认    20:04:15.061780 +0800   Typora  callHandler: File.getContent, but webview is loading...
默认    20:04:15.065378 +0800   Typora  error on exec js: Error Domain=WKErrorDomain Code=4 "发生了 JavaScript 异常" UserInfo={WKJavaScriptExceptionLineNumber=1, WKJavaScriptExceptionMessage=TypeError: undefined is not an object (evaluating 'b.editor.undo.lastRegisteredOperationCommand'), WKJavaScriptExceptionColumnNumber=176113, WKJavaScriptExceptionSourceURL=file:///Applications/Typora.app/Contents/Resources/TypeMark/app/main.js, NSLocalizedDescription=发生了 JavaScript 异常}
默认    20:04:18.079544 +0800   Typora  Removing presenter D72651BB-1E87-4ECB-8F25-0039E7215386
默认    20:04:18.079653 +0800   Typora  Removing presenter D72651BB-1E87-4ECB-8F25-0039E7215386
默认    20:04:18.091404 +0800   Typora  error on exec js: Error Domain=WKErrorDomain Code=4 "发生了 JavaScript 异常" UserInfo={WKJavaScriptExceptionLineNumber=1, WKJavaScriptExceptionMessage=TypeError: undefined is not an object (evaluating 'File.editor.undo.hasUndo'), WKJavaScriptExceptionColumnNumber=1206244, WKJavaScriptExceptionSourceURL=file:///Applications/Typora.app/Contents/Resources/TypeMark/app/main.js, NSLocalizedDescription=发生了 JavaScript 异常}

I also like this, how to sove it ?

zrfrank commented 4 years ago

@abnerlee I've retried full uninstall and reinstall. Once it reinstalled, it worked fine. Until I adjust Typora's preference, then reopen, the app freezes. Could the problem be caused by i/o preference file?

I can enable debug mode from the menu bar, however, the context menu won't show anything besides "insert from iphone or ipad".

I use 10.15.1, while the app itself won't pop up full disk access request. (i could ofc manually give such permission). Generally, I don't understand why you would request such permission, and I am not conformable either to give any app full disk access permission.

valicsek commented 4 years ago

Same here. I tried to reinstall it. When I open the typora, I cannot type, or open anything at all. If I try to open something (.md) file, it's freezing.

If you change the theme, it will not reload it. I also tried to give Full Disk Access but it did not help.

Quick edit: I downloaded the Typora-0.9.9.22.dmg version and it works.

Mac: Version 10.15.1 (macOS Catalina) Typora: Version 0.9.9.30.1 (3794)

abnerlee commented 3 years ago

updated older macOS support info -> https://support.typora.io/Older-macOS-Support/

unfortunately, 10.13 are no longer supported.