[X] Have you used the debugging guide to try to resolve the issue?
[X] Have you checked our FAQs to make sure your question isn't answered there?
[X] Have you checked to make sure your issue does not already exist?
[X] Have you checked you are on the latest release of Pulsar?
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:
window did not actually close
app menu items drop down but no action occurs when selecting items
tabs and vertical scrollbars disappeared
horizontal scrollbars in each pane still active
active tab content in each pane still showing, but without grammar affects (gray text)
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)
```
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) ```