BoostIO / BoostNote-Legacy

This repository is outdated and new Boost Note app is available! We've launched a new Boost Note app which supports real-time collaborative writing. https://github.com/BoostIO/BoostNote-App
Other
17.06k stars 1.46k forks source link

White screen on start up #3232

Closed sssstar closed 5 years ago

sssstar commented 5 years ago

正在写着突然就白屏了,卸载重装都没用 image

sssstar commented 5 years ago

Don't know why the software's window is white. Uninstalling reloading is useless.

Flexo013 commented 5 years ago

@sssstar Please provide all the information that was in the original template for creating an issue (in English). Otherwise we can't really help you.

hikerpig commented 5 years ago

@sssstar Could you open the devtools ('View' -> 'Toggle Developer Tools') and see what's going wrong?

XXXXXiang commented 5 years ago

@sssstar Did you just type reserved word (keyword) like </a href/> or something in your note? (actually there should be no slash in the bracket above, but i should type them or they will be deemed as a keyword and you won't see them) If you type </a href/> after any word in your boostnote, you will cause a white screen because boostnote will also deem that as a keyword. If you have done this before, find that file (you can open them as a txt type file to check ), remove or edit (delete that keyword) it.

sssstar commented 5 years ago

react-dom.production.min.js:117 TypeError: Cannot read property 'replace' of undefined at naughtyHRef (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/compiled/main.js:65369:16) at sanitizeInline (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/compiled/main.js:65340:16) at Array. (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/compiled/main.js:65298:47) at Core.process (C:\Users\Administrator\AppData\Local\boost\app-0.12.1\resources\app\node_modules\markdown-it\lib\parser_core.js:51:13) at MarkdownIt.parse (C:\Users\Administrator\AppData\Local\boost\app-0.12.1\resources\app\node_modules\markdown-it\lib\index.js:519:13) at MarkdownIt.render (C:\Users\Administrator\AppData\Local\boost\app-0.12.1\resources\app\node_modules\markdown-it\lib\index.js:539:36) at Markdown.render (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/compiled/main.js:34526:23) at MarkdownPreview.rewriteIframe (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/compiled/main.js:33357:41) at MarkdownPreview.componentDidMount (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/compiled/main.js:33220:13) at qi (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/node_modules/react-dom/umd/react-dom.production.min.js:130:198) at ui (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/node_modules/react-dom/umd/react-dom.production.min.js:133:320) at file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/node_modules/react-dom/umd/react-dom.production.min.js:158:377 at unstable_runWithPriority (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/node_modules/react/umd/react.production.min.js:27:36) at Vc (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/node_modules/react-dom/umd/react-dom.production.min.js:158:360) at Sc (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/node_modules/react-dom/umd/react-dom.production.min.js:158:144) at Z (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/node_modules/react-dom/umd/react-dom.production.min.js:156:492) at Kc (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/node_modules/react-dom/umd/react-dom.production.min.js:155:69) at ya (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/node_modules/react-dom/umd/react-dom.production.min.js:153:185) at Object.enqueueSetState (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/node_modules/react-dom/umd/react-dom.production.min.js:202:409) at DebouncedContainer.t.setState (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/node_modules/react/umd/react.production.min.js:20:433) at DebouncedContainer. (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/compiled/main.js:212388:21) at invokeFunc (C:\Users\Administrator\AppData\Local\boost\app-0.12.1\resources\app\node_modules\lodash\lodash.js:10333:23) at trailingEdge (C:\Users\Administrator\AppData\Local\boost\app-0.12.1\resources\app\node_modules\lodash\lodash.js:10382:18) at timerExpired (C:\Users\Administrator\AppData\Local\boost\app-0.12.1\resources\app\node_modules\lodash\lodash.js:10370:18)

Bg @ react-dom.production.min.js:117 react-dom.production.min.js:157 Uncaught TypeError: Cannot read property 'replace' of undefined at naughtyHRef (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/compiled/main.js:65369:16) at sanitizeInline (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/compiled/main.js:65340:16) at Array. (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/compiled/main.js:65298:47) at Core.process (C:\Users\Administrator\AppData\Local\boost\app-0.12.1\resources\app\node_modules\markdown-it\lib\parser_core.js:51:13) at MarkdownIt.parse (C:\Users\Administrator\AppData\Local\boost\app-0.12.1\resources\app\node_modules\markdown-it\lib\index.js:519:13) at MarkdownIt.render (C:\Users\Administrator\AppData\Local\boost\app-0.12.1\resources\app\node_modules\markdown-it\lib\index.js:539:36) at Markdown.render (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/compiled/main.js:34526:23) at MarkdownPreview.rewriteIframe (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/compiled/main.js:33357:41) at MarkdownPreview.componentDidMount (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/compiled/main.js:33220:13) at qi (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/node_modules/react-dom/umd/react-dom.production.min.js:130:198) at ui (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/node_modules/react-dom/umd/react-dom.production.min.js:133:320) at file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/node_modules/react-dom/umd/react-dom.production.min.js:158:377 at unstable_runWithPriority (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/node_modules/react/umd/react.production.min.js:27:36) at Vc (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/node_modules/react-dom/umd/react-dom.production.min.js:158:360) at Sc (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/node_modules/react-dom/umd/react-dom.production.min.js:158:144) at Z (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/node_modules/react-dom/umd/react-dom.production.min.js:156:492) at Kc (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/node_modules/react-dom/umd/react-dom.production.min.js:155:69) at ya (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/node_modules/react-dom/umd/react-dom.production.min.js:153:185) at Object.enqueueSetState (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/node_modules/react-dom/umd/react-dom.production.min.js:202:409) at DebouncedContainer.t.setState (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/node_modules/react/umd/react.production.min.js:20:433) at DebouncedContainer. (file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/compiled/main.js:212388:21) at invokeFunc (C:\Users\Administrator\AppData\Local\boost\app-0.12.1\resources\app\node_modules\lodash\lodash.js:10333:23) at trailingEdge (C:\Users\Administrator\AppData\Local\boost\app-0.12.1\resources\app\node_modules\lodash\lodash.js:10382:18) at timerExpired (C:\Users\Administrator\AppData\Local\boost\app-0.12.1\resources\app\node_modules\lodash\lodash.js:10370:18)

DevTools failed to parse SourceMap: file:///C:/Users/Administrator/AppData/Local/boost/app-0.12.1/resources/app/node_modules/@rokt33r/js-sequence-diagrams/dist/sequence-diagram.js

hikerpig commented 5 years ago

@sssstar This bug is fixed by a47dac285, you can wait for next release, or try to fix your source file which contains <a href> as @XXXXXiang describes

sssstar commented 5 years ago

@hikerpig Thank you for your reply!

Flexo013 commented 5 years ago

Fixed by #3179

changyuanchn commented 4 years ago

is anyone know how to save my notes?I came across the same problem and cannot visit my notes before.

hikerpig commented 4 years ago

@changyuanchn what is your os and version of boostnote ?

Flexo013 commented 4 years ago

@changyuanchn Feel free to make a new issue and reference this one with #3232. Since it is unlikely that the cause of this issue is the same as yours.

changyuanchn commented 4 years ago

@changyuanchn what is your os and version of boostnote ? os:win10 version: 0.1.2.0 image

I want to know how to save the file before, I cannot open that folder and seems lost all my notes int that folder, thanks!

hikerpig commented 4 years ago

You seem to be using the developing new version of new boostnote, it's not yet compatible with the current version yet (I guess).

You should open a new issue in the new repo.

hikerpig commented 4 years ago

@changyuanchn And also, please provide some error info to help us addressing the problem.

Could you open the devtools ('View' -> 'Toggle Developer Tools') and see what's going wrong?

changyuanchn commented 4 years ago

I download a new version (0.1.4.0) and install it. Then I can open that folder. thanks all. It seems that the bugs is fixed.

kg16 commented 4 years ago

I am on the latest version, still when I type ``` or paste code from internet, the screen goes blank. image

Flexo013 commented 4 years ago

@KG16 Could you provide the version number? There are two Boostnote applications that work differently, so we need to know which one you are running.