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

Sync does not work, results in only single note #2

Open
fuhao23 opened this issue May 28, 2024 · 16 comments
Open

Sync does not work, results in only single note #2

fuhao23 opened this issue May 28, 2024 · 16 comments
Labels
bug Something isn't working

Comments

@fuhao23
Copy link

fuhao23 commented May 28, 2024

  1. 密码框为啥原本带了这么多黑点
  2. 输入完毕后,得退出来再进才可以连接。。。
  3. 同步完成后,只有一个root?
  4. 闪退

[English translation]

  1. Why did the password box originally have so many black dots?
  2. When you finish typing, you have to exit and re-enter to connect.
  3. When the sync is complete, there is only one root?
  4. Flashback
@FliegendeWurst FliegendeWurst added the bug Something isn't working label May 28, 2024
@wu200yong
Copy link

支持一下,期待更完善的版本

@youli42
Copy link

youli42 commented Dec 4, 2024

与上面的问题相同,无法编辑,无法查看,也就是不可用的状态,期待更新,哪怕仅查看也挺好

[English translation] Same problem as above, can't edit, can't view, i.e. unavailable status, looking forward to an update, even just viewing would be nice!

@FliegendeWurst FliegendeWurst changed the title bug太多 Sync does not work, results in only single note Dec 4, 2024
@FliegendeWurst
Copy link
Owner

The app currently works with Trilium Notes 0.63.6. I'm looking into compatibility with TriliumNext.

@FliegendeWurst
Copy link
Owner

Please check whether the new release https://github.com/FliegendeWurst/TriliumDroid/releases/tag/nightly-2024-12-04 fixes your issues. After configuring the sync server, you need to click on "Sync" in the action bar on the main screen (or restart the app).

@TheNomad11
Copy link

In my case, it crashed a few seconds after syncing started (TriliumNext)

@FliegendeWurst
Copy link
Owner

@TheNomad11: if you can, please get the logfile: https://stackoverflow.com/questions/2882253/how-do-i-get-the-logfile-from-an-android-device

Otherwise I can't really tell what the problem might be.

@MatejPetrik007
Copy link

MatejPetrik007 commented Dec 8, 2024

@FliegendeWurst Here is the log, problem is that after the 1050 it always for crashes sometimes stay on Sync: starting... and crash after few second server is :0.90.12
Trilium Notes log 29b0edee8456.txt

signal-2024-12-08-023945

@FliegendeWurst
Copy link
Owner

Did you activate the editor (via the button in the toolbar)?

If so, there are two bugs:

  • editor crashes if sync isn't finished
  • AndroidRuntime: java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase: the database connection is closed, for some reason (this should never happen)

@FliegendeWurst
Copy link
Owner

FliegendeWurst commented Dec 8, 2024

Another issue is that the app will apparently run into OOM when trying to allocate 200KB of note content. How much RAM does your device have? (if you don't know, just google "<your phone model> gsm arena")

(it means there is a chance the app has a memory leak somewhere in the sync..)

@MatejPetrik007
Copy link

Did you activate the editor (via the button in the toolbar)?

If so, there are two bugs:

* editor crashes if sync isn't finished

* `AndroidRuntime: java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase`: the database connection is closed, for some reason (this should never happen)

I am not 100% sure which editor(could you give me exact path) you mean i only change a few notes manually to autoReadOnlyDisabled and size of Automatic read-only size/TOC to 10000 and very large note are still in read only mode

i have P7Pro - 12GB of ram

@FliegendeWurst
Copy link
Owner

So the way the app currently works is:

  1. Notes are displayed read-only
  2. User may activate editor via button in toolbar (next to three dots)

Reason for this is that the active editor will usually display a keyboard, obscuring a lot of the screen.

How big is your notes database? (mine is 45 MB and I don't run into out-of-memory errors)

@MatejPetrik007
Copy link

MatejPetrik007 commented Dec 8, 2024

oh i see, i have it set to auto(as i mentioned earlier its defined to 10 000 ), mine is 137mb(lot of pdfs and trilium documenatnion tbh didnt understand how it got so big as only 3 weeks ago it was only 60)

@MatejPetrik007
Copy link

MatejPetrik007 commented Dec 8, 2024

so flushing database helped, now its only 65,9mb and kind of working. I can see only root and can only jump to notes - cant see subtrees it is the expected behavior?

obrázok

@FliegendeWurst
Copy link
Owner

For subtrees you must open the left sidebar.

Now that I think of it, this might interfere with the "go back" gesture. (I still use the three buttons at the bottom.) Maybe I should add another way to open the sidebar.

(Note to self: put some usage instructions in README...)

@FliegendeWurst
Copy link
Owner

By the way, does the top status bar really overlap the app? Or is that a quirk of your phone that happens with all apps?

@MatejPetrik007
Copy link

MatejPetrik007 commented Dec 8, 2024

oh, you're right, sometimes it works, but it interfeeres

happens in all apps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants