Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagebreaking with large text causes system crashing #113

Open
chiehan1 opened this issue Feb 25, 2016 · 17 comments
Open

Pagebreaking with large text causes system crashing #113

chiehan1 opened this issue Feb 25, 2016 · 17 comments
Assignees

Comments

@chiehan1
Copy link
Contributor

sample for test
https://drive.google.com/file/d/0BwIL9c-GJgOZbnBVUUZDZVd2VTg/view?usp=sharing

steps:

  1. import the sample in the link above.
  2. add about 30 empty pages. (make the text remain at first page)
  3. start selecting the text randomly and click 'ctrl + enter' to pagebreak.
  4. repeat 3 about 20 - 30 times => screen of ketaka-lite go blank.

test in version v0.1.57 in windows8 with SSD and 8G RAM

@chiehan1 chiehan1 added the bug label Feb 25, 2016
@chiehan1 chiehan1 changed the title Select-pagebreaking causes system crashing Select-pagebreaking with large text causes system crashing Feb 25, 2016
@chiehan1
Copy link
Contributor Author

It has to be commented that the testing file given to the developer in the beginning of this project is too small and doesn't match the real situation of the user.

@kmsheng
Copy link
Contributor

kmsheng commented Mar 1, 2016

Tested in mac this morning and didn't find anything weird, I will test windows later on.

@chiehan1
Copy link
Contributor Author

chiehan1 commented Mar 1, 2016

It turns like this in windows.

capture

@kmsheng
Copy link
Contributor

kmsheng commented Mar 1, 2016

@chiehan1 我用 v0.1.58 在 windows7 測試, 發現要累積到接近 30 頁再存才會當。
如果做一頁就存一頁似乎就沒這問題 ? 你那邊的環境也是這樣嗎 ?

@chiehan1
Copy link
Contributor Author

chiehan1 commented Mar 2, 2016

v0.1.58 在 windows8 測試,
累積約 20 - 30 頁,或,
做一頁存一頁,
都有問題,

累積 20 - 30 頁不存檔,
按完 ctrl + enter,出現的問題是:

pagebreak3

做一頁存一頁,
做到約超過 10 頁,
在按 ctrl + s 存檔的動作時,會出現:

pagebreak4

繼續做一頁存一頁,
過了幾頁以後,
按 ctrl + s 存檔,會出現:

pagebreak5

順帶一提,
import 現在測試的這個檔案時,
https://drive.google.com/file/d/0BwIL9c-GJgOZbnBVUUZDZVd2VTg/view?usp=sharing

v0.1.57 大約在 10 秒以內完成,
v0.1.58 的 import 時間約超過 20 秒。

@chiehan1
Copy link
Contributor Author

chiehan1 commented Mar 2, 2016

v0.1.57 在 windows8 測試做一頁存一頁,也有和 v0.1.58 相同的問題

@chiehan1
Copy link
Contributor Author

chiehan1 commented Mar 2, 2016

做一頁存一頁的流程是:

  1. import 文字檔後,新增約 30 頁空白頁,文字部分需在第一頁,
  2. 用滑鼠隨機選取一段文字,
  3. 按 ctrl + enter 分頁,
  4. 按 ctrl + s 存檔,
  5. 重複步驟 2 - 4,
  6. 在約第 10 頁的時候按 ctrl + s,developer tools 的 console 會先出現錯誤訊息,
  7. 不理它,繼續重複步驟 2 - 4,幾頁以後,按 ctrl + s,畫面就會整個轉黑。

@kmsheng
Copy link
Contributor

kmsheng commented Mar 2, 2016

如果不做選取文字做分頁和存檔會有問題嗎?
chiehan1 [email protected]於 2016年3月2日 週三,上午10:57寫道:

做一頁存一頁的流程是:

  1. import 文字檔後,新增約 30 頁空白頁,文字部分需在第一頁,
  2. 用滑鼠隨機選取一段文字,
  3. 按 ctrl + enter 分頁,
  4. 按 ctrl + s 存檔,
  5. 重複步驟 2 - 4,
  6. 在約第 10 頁的時候按 ctrl + s,developer tools 的 console 會先出現錯誤訊息,
  7. 不理它,繼續重複步驟 2 - 4,幾頁以後畫面就會整個轉黑。


Reply to this email directly or view it on GitHub
#113 (comment)
.

@chiehan1
Copy link
Contributor Author

chiehan1 commented Mar 2, 2016

去掉選取的步驟後,問題依舊
in windows8

pagebreakall

@chiehan1 chiehan1 changed the title Select-pagebreaking with large text causes system crashing Pagebreaking with large text causes system crashing Mar 2, 2016
@kmsheng
Copy link
Contributor

kmsheng commented Mar 2, 2016

electron/electron#3832

@kmsheng
Copy link
Contributor

kmsheng commented Mar 2, 2016

v0.1.59-3 已修正 eventemitter 的 warning, 但是 crash 還是存在

@chiehan1
Copy link
Contributor Author

chiehan1 commented Mar 2, 2016

看來要等 electron 那邊修正問題了

@kmsheng
Copy link
Contributor

kmsheng commented Mar 2, 2016

@chiehan1 請試試 v0.1.59-4 有無改善, 我將 electron 升到 0.36.9 了

@chiehan1
Copy link
Contributor Author

chiehan1 commented Mar 2, 2016

沒有改善

@chiehan1
Copy link
Contributor Author

chiehan1 commented Mar 2, 2016

v0.1.59 在 import 專案、關掉專案、或是 open 專案的速度比起 v0.1.57 慢很多

@kmsheng
Copy link
Contributor

kmsheng commented Mar 3, 2016

已在 v0.1.60 改為之前用的 react-codemirror 版本, 速度問題應該有解決。
至於 crash 問題我還要再研究一下, 先把 crash reporter log server 建好收 log,
最壞打算就是限制使用者的文字大小。

@chiehan1
Copy link
Contributor Author

chiehan1 commented Mar 4, 2016

今天碰到 pagebreak 完,畫面變黑之後,使用者把 ketaka-lite 關掉重開,點選 open 想叫出原來正在作業的專案的時候,專案打不開

進入 appdata/.../doc 看這個專案資料夾,發現 json 檔的內容是空白的

這個情形不常發生,沒辦法穩定複製

目前使用者用的是 v0.1.57 win8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants