notes-android icon indicating copy to clipboard operation
notes-android copied to clipboard

Unable to switch to rich edit mode

Open regs01 opened this issue 1 year ago • 30 comments

Describe the bug Just can't switch to rich edit mode

To Reproduce Steps to reproduce the behavior:

  1. Click rich edit mode button
  2. Error appears

Expected behavior Switch to rich edit mode

Smartphone (please complete the following information):

  • Nextcloud Notes-Version (android app): 4.0.0
  • F-Droid or Play Store: F-Droid
  • Android-Version: 10
  • Device: Huawei P30

Server

  • Nextcloud version: 26.0.0
  • Nextcloud Notes version (server app): 4.7.2

Screenshots Screenshot_20230408_185029_it niedermann owncloud notes

regs01 avatar Apr 08 '23 16:04 regs01

I am experiencing the exact same bug. The default nextcloud files app can load rich documents editer just fine.

mstyp avatar May 15 '23 17:05 mstyp

Same problem and have had it since day one. Server Notes app was a bit buggy as well but is fine after a number of updates since. Still can't use it on the mobile app.

I also get the odd error "The document has been changed outside of the editor. The changes cannot be applied." When I open any one note. If I let it run for long enough. Sometimes it will give me the option to pick the saved version or the current version.

The error you show on your screen still shows up superimposed over everything at the bottom. It is not really usable. Hence I do not use Rich Documents much since in my use case, I use the Android app a bit more than the one on the server.

I am aware these may be multiple issues going on at once, but I am mentioning them here just in case they are related and in case anyone else is having the same issue.

daffydock avatar May 29 '23 18:05 daffydock

I tried Dev version.

This is one tried (artifact with zip file at the bottom) https://github.com/nextcloud/notes-android/actions/runs/5331495052

And it is working. However on first try i got conflict error to pick two different versions of note. Has not been there since then. Keep testing.

regs01 avatar Jun 21 '23 16:06 regs01

I tried Dev version.

This is one tried (artifact with zip file at the bottom) https://github.com/nextcloud/notes-android/actions/runs/5331495052

And it is working. However on first try i got conflict error to pick two different versions of note. Has not been there since then. Keep testing.

Tried Dev version suggested. Nothing has changed. Issues continue.

daffydock avatar Jun 22 '23 16:06 daffydock

Tried Dev version suggested. Nothing has changed. Issues continue.

  1. What kind of issues?
  2. You sure you running Dev version? It installs alongside the release version and has Dev in its icon.

regs01 avatar Jun 22 '23 20:06 regs01

@regs01

  1. Same as the ones posted on my original post.
  2. Yes.

daffydock avatar Jun 23 '23 21:06 daffydock

  1. Same as the ones posted on my original post.

Error while loading rich editing?

regs01 avatar Jun 24 '23 21:06 regs01

I've got the same bug but only with one of my 2 servers!? Seems to be a timeout issue?

Uatschitchun avatar Jul 01 '23 19:07 Uatschitchun

  1. Same as the ones posted on my original post.

Error while loading rich editing?

Fair. To answer your question more specifically, I get both, the error you opened this ticket for, and also the error(s) I posted in my post after. Both still continue on different phones with different versions of Android, ranging from 7+ onward. Standard Notes app from F-Droid or Dev version. It makes no difference.

daffydock avatar Jul 17 '23 17:07 daffydock

I've got the same bug but only with one of my 2 servers!? Seems to be a timeout issue?

Just to be clear, @Uatschitchun: When you say 2 servers, do you mean two different instances on the same server, or two separate physical servers? I assume you mean two separate machines. As I have a production and a testing one instance, both on the same machine, one on 26+ and the other on 27 and I get the same issue in both. Maybe it could be a time out issue.

daffydock avatar Jul 17 '23 17:07 daffydock

Yes, 2 instances hosted in different servers

Uatschitchun avatar Jul 17 '23 17:07 Uatschitchun

Facing same issue on Nextcloud notes version 4.1.0 RC1. The nextcloud server is running on Nextcloud Hub 5 (27.0.0)

mahenkpatel avatar Jul 19 '23 09:07 mahenkpatel

Having same issue with Nextcloud Notes - Android version 4.1.0 RC1 from F-Droid. Server is Nextcloud-AIO 27.0.2.

JohnDSR avatar Sep 03 '23 12:09 JohnDSR

I'm facing this issue as well. For me it only started after upgrading the server to 27. Before the upgrade I was running 24, so I'm not sure since which version exactly this issue started.

pascalw avatar Sep 07 '23 19:09 pascalw

I fixed this error by enabling the Text app in my Nextcloud instance, it was disabled before. Maybe that helps some of you.

psabc avatar Oct 04 '23 10:10 psabc

It's working in dev, but doesn't work in stable. Even after update to 4.1.0 final.

regs01 avatar Oct 05 '23 04:10 regs01

It's working in dev, but doesn't work in stable. Even after update to 4.1.0 final.

Just for those who would like to try, the Dev apk has expired. You cannot simply download it from the link, posted closer to the top.

daffydock avatar Oct 05 '23 20:10 daffydock

It's working in dev, but doesn't work in stable. Even after update to 4.1.0 final.

Just for those who would like to try, the Dev apk has expired. You cannot simply download it from the link, posted closer to the top.

Find lastest with artefacts in Actions. Dev is working. Although loading 10 seconds and won't work without connection.

https://github.com/nextcloud/notes-android/actions

regs01 avatar Dec 11 '23 04:12 regs01

@regs01

Tried with latest Notes Dev, built 18 hours ago as of this writing. Error still pops up: "Error while loading rich editing..." Giving the option to switch to Plain. Agreed that Rich Text does come up after 10+ seconds or so, but that would sometimes happen before, sometimes.

Error message still persists at the bottom, even with the Rich Text appearing, blocking the lower button at the bottom right and it won't disappear unless one does opt to switch back to plain. Strange since this has been going on for 8 months now.

daffydock avatar Dec 15 '23 22:12 daffydock

Sure you are launching Notes Dev app, not the original one? It's a different app. And rich edit mode is only working online.

regs01 avatar Dec 15 '23 22:12 regs01

Sure you are launching Notes Dev app, not the original one? It's a different app. And rich edit mode is only working online.

Who would confuse the two? It literally loads with the word "Dev," as a splash screen and in a large font. So, to answer your question: Yes, I am sure. Unfortunately, the error continues.

Albeit I do not know if this is the same/or related error as OP's, I am now also getting this while using the alpha build on one of my phones. Maybe it will be beneficial as to further shed light into this issue:

App Version: 4.2.0 Alpha1
App Version Code: 40020000
App Flavor: dev

Files App Version Code: 30260090 (PROD)
Files App Version Code: 20231209 (DEV)

---

OS Version: 3.18.31-perf-gd33f902(1906418273f7d)
OS API Level: 24
Device: sf340n
Manufacturer: LGE
Model (and Product): LG-M470 (sf340n_global_ca)

---

java.lang.NullPointerException: Attempt to invoke interface method 'void com.nextcloud.android.sso.api.NextcloudAPI$ApiConnectedListener.onConnected()' on a null object reference
	at com.nextcloud.android.sso.api.AidlNetworkRequest$1.onServiceConnected(AidlNetworkRequest.java:79)
	at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1535)
	at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1563)
	at android.os.Handler.handleCallback(Handler.java:751)
	at android.os.Handler.dispatchMessage(Handler.java:95)
	at android.os.Looper.loop(Looper.java:154)
	at android.app.ActivityThread.main(ActivityThread.java:6317)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:872)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:762)
	at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:107)

daffydock avatar Dec 15 '23 22:12 daffydock

Where can I get the dev version?

bladem2003 avatar Dec 30 '23 14:12 bladem2003

I fixed this error by enabling the Text app in my Nextcloud instance, it was disabled before. Maybe that helps some of you.

This fixed the issue for me immediately. Thank you!

sandpaperback avatar Jan 03 '24 19:01 sandpaperback

@bladem2003

Where can I get the dev version?

You can find it under actions. It is a bit of a moving target as new APKs are built constantly. This is the latest I saw today, as of this morning.

https://github.com/nextcloud/notes-android/actions/runs/7404915333

daffydock avatar Jan 04 '24 19:01 daffydock

I had a similar issue, except I could not edit my notes from my android phone at all. All the notes opened in preview mode and the switch to the edit mode did nothing at all.

For me disabling and re-enabling the text app (it was originally enabled for me) fixed the issue.

giogua avatar Jul 13 '24 21:07 giogua

Check this in parameters: Screenshot_20240714-002036.png

Make sure it's not enabled

repsorp avatar Jul 13 '24 22:07 repsorp

It was enabled for me. Disabling that settings had no effect since the editing started working again after restarting the text app.

What that settings does and why disabling It should fix the issue?

giogua avatar Jul 14 '24 03:07 giogua

Here (Ubuntu 24.04, Notes 4.3.0) "Plain edit mode" floating button doesn't work when "Direct Edit" enabled. https://github.com/nextcloud/notes-android/issues/2258

Le sam. 13 juil. 2024 à 20:25:41 -07:00:00, giogua @.***> a écrit :

It was enabled for me. Disabling that settings had no effect since the editing started working again after restarting the text app.

What that settings does and why disabling It should fix the issue?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

repsorp avatar Jul 14 '24 05:07 repsorp

Thanks!

giogua avatar Jul 14 '24 06:07 giogua