standardnotes / desktop

[Moved to https://github.com/standardnotes/app] A free, open-source, and end-to-end encrypted notes app. https://standardnotes.com
GNU Affero General Public License v3.0
1.4k stars 115 forks source link

Extension error popup loop is inescapable #466

Open xsleonard opened 4 years ago

xsleonard commented 4 years ago

OS: macOS Catalina 10.15.2

When activating the "Action Bar" extension, I received a popup error:

This extension is attempting to communicate with Standard Notes, but an error is preventing it from doing so. Please restart this extension and try again.

Every time this error is dismissed, the popup returns. The app does not respond to Quit in this state, and I must use force quit to recover.

After force-quit and reopening the application, the normal prompt to grant "Action Bar" permissions appears, and the application continues normally.

The original error may have been due to a race condition when installing and activating multiple extensions too quickly, but the bug is that the error popup can't be dismissed and it prevents quitting the application.

arielsvg commented 4 years ago

Thanks for bringing this up 🙂 We're currently working on making the extensions manager more robust in that regard, though if I got what you're saying it means an extension that systematically crashes brings the whole app "down" in a sense. Although a case like that should be rare, it'd be better if it could never happen anyway.

arielsvg commented 4 years ago

Hi @xsleonard, are you still experiencing the issue on v3.4.1?

chaserene commented 3 years ago

I'm also having this. it comes about randomly and I need to restart the app to break the loop.

3.6.8

arielsvg commented 3 years ago

Hey @chaserene, have you seen this happen when you're using notes with the plain editor? If not then that could mean it's something editor-related. But if it also happens with the plain editor then there's a good change it's related to the Quick Tags, Action Bar, or Folders extensions - do you have any of these installed?

chaserene commented 3 years ago

@baptiste-grob I barely ever use the Plain editor, so hard to tell. I mostly use Markdown editors and when SN goes mad, it produces the error with all that I use.

chaserene commented 3 years ago

in case it's helpful, a duplicate of the issue here: https://github.com/standardnotes/forum/issues/1215

chaserene commented 3 years ago

@baptiste-grob this is still an issue. can you at least change the error message to give something useful to the user? I see no way to "restart" extensions. I can deactivate and then reactivate components, but not editors (which this issue may be related to).

JaspalSuri commented 3 years ago

Hi @chaserene, thanks for the suggestion. I'll create a report for this for the dev team to review.

xthursdayx commented 3 years ago

I'm having the same issue with every extension I've installed. I run the StandardNotes Standalone stack and Web app self-hosted on my home server and installed all of the extensions through the web app. I'm only seeing this issue when I switch to desktop. Both the web and iOS apps work fine.

JaspalSuri commented 3 years ago

Hi @xthursdayx, sorry to hear that. We have one other report of this but haven't been able to reproduce it yet (thus making it difficult to fix at the moment). I'll be sure to reach out to you if there's anything else that we can offer to potentially resolve this issue.