pulsar-edit / pulsar

A Community-led Hyper-Hackable Text Editor
https://pulsar-edit.dev
Other
3.33k stars 140 forks source link

App crashes on close - warnings and errors in DevTools #916

Open garrettboone opened 9 months ago

garrettboone commented 9 months ago

Thanks in advance for your bug report!

What happened?

App crashes when closing

Pulsar version

1.113.2024013007-win

Which OS does this happen on?

🪟 Windows

OS details

Windows 10 Pro

Which CPU architecture are you running this on?

x86_64/AMD64

What steps are needed to reproduce this?

Not sure how to reproduce, but I recall this happened in an earlier version as well.

Additional Information:

About 15 tabs open total, all saved, in two panes (left/right). Hit the Close red X to close the app and it crashed:

DevTools has errors: Right before errors, a warning shows: ![image](https://github.com/pulsar-edit/pulsar/assets/47018474/edb5bcbf-684d-497d-a2a3-144c38b917d9) Path is: `deserializer-manager.js:77` ``` Uncaught (in promise) TypeError: Cannot read property 'length' of null at C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024012204-win\resources\app.asar\node_modules\autocomplete-plus\lib\subsequence-provider.js:105:35 at async Promise.all (index 8) at async Promise.all (index 2) C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\pattern.js:13 Uncaught (in promise) RangeError: Maximum call stack size exceeded at new Pattern (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\pattern.js:13:14) at Grammar.createPattern (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\grammar.js:379:12) at new Pattern (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\pattern.js:38:37) at Grammar.createPattern (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\grammar.js:379:12) at new Rule (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\rule.js:24:41) at Grammar.createRule (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\grammar.js:375:12) at new Pattern (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\pattern.js:43:36) at Grammar.createPattern (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\grammar.js:379:12) at new Rule (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\rule.js:24:41) at Grammar.createRule (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\grammar.js:375:12) at new Pattern (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\pattern.js:43:36) at Grammar.createPattern (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\grammar.js:379:12) at new Rule (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\rule.js:24:41) at Grammar.createRule (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\grammar.js:375:12) at Grammar.createRepository (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\grammar.js:338:31) at Grammar.updateRules (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\grammar.js:316:28) at Grammar.grammarUpdated (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\grammar.js:353:10) at GrammarRegistry.grammarUpdated (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\grammar-registry.js:237:54) at Grammar.grammarUpdated (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\grammar.js:354:19) at GrammarRegistry.grammarUpdated (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\grammar-registry.js:237:54) at Grammar.grammarUpdated (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\grammar.js:354:19) at GrammarRegistry.grammarUpdated (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\grammar-registry.js:237:54) at Grammar.grammarUpdated (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\grammar.js:354:19) at GrammarRegistry.grammarUpdated (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\grammar-registry.js:237:54) at Grammar.grammarUpdated (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\grammar.js:354:19) at GrammarRegistry.grammarUpdated (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\grammar-registry.js:237:54) at Grammar.grammarUpdated (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\grammar.js:354:19) at GrammarRegistry.grammarUpdated (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\grammar-registry.js:237:54) at Grammar.grammarUpdated (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\grammar.js:354:19) at GrammarRegistry.grammarUpdated (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\grammar-registry.js:237:54) at Grammar.grammarUpdated (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\grammar.js:354:19) at GrammarRegistry.grammarUpdated (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\grammar-registry.js:237:54) at Grammar.grammarUpdated (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\grammar.js:354:19) at GrammarRegistry.grammarUpdated (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\grammar-registry.js:237:54) at Grammar.grammarUpdated (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\grammar.js:354:19) at GrammarRegistry.grammarUpdated (C:\Users\{Username Redacted}\Portable_Apps\Windows.Pulsar-1.113.2024013007-win\resources\app.asar\node_modules\second-mate\lib\grammar-registry.js:237:54) ```