2024-11-05 - new note freezes Joplin Mobile 3.1.7

P.S.
This problem does not exist with Sync Target Nextcloud to my small test environment.

1 Like

So far, I haven't been able to reproduce this after setting up the emulator such that:

  1. It syncs with a local Joplin Cloud instance.
  2. The "press to set the decryption password" banner is visible due to a master key with a missing password.

At present, I've only tested with a development version of Joplin and decryption errors caused by a missing decryption password.

What I plan to try next:

  • Allowing the debug info plugin to create notes through the plugin API: Joplin Android includes a newNote command that can be accessed by plugins. It's implemented in a slightly different way from the "+" button's new note logic. If the newNote command works, then its implementation could be compared with the "+" button's new note logic.
    • Update: A new note command that uses this other code path will be in v0.3.0 of the plugin. To check whether this logic can successfully create notes, 1) open the plugin panel, 2) scroll down to "More tools", 3) Click "Run a command", 4) click "newNote", 5) check whether Joplin freezes.

Could this error log entry mean that a piece of code viewMessageHandler is available in your emulation environment, but not on my smartphone?

I've successfully replicated a freeze/crash when creating new notes on an Android emulator.

Error message:

Error: Missing property "share_id": {"parent_id": ...

Stack trace:

  • checkObjectHasProperties in object.ts:15:41
  • itemIsReadOnlySync in readOnly.js:87:42
  • stateToWhenClauseContext in stateToWhenClauseContext.js:45:73
  • currentWhenClauseContext in CommandService.js:161:46
  • NoteScreenComponent#menuOptions in Note.js:1232:137
  • NoteScreenComponent#render in Note.js:1232:137

Update: GitHub issue.
Update 2: Proposed fix.

3 Likes

2024-11-10 - Joplin Mobile 3.1.8 (prod, android) and Joplin 3.1.24 (prod, win32) have arrived.
2024-11-05 - new note freezes Joplin Mobile 3.1.7 - problem does not occur:
Can create new notes again with Joplin Mobile 3.1.8 (prod, android).