UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    tedit development and design discussion

    Scheduled Pinned Locked Moved App Development
    tediteditorappdevelopmentfeatures
    200 Posts 13 Posters 46.3k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • danfroD Offline
        danfro @domubpkm
        last edited by

        @domubpkm I just tested tedit, had the issue with the crash. Then I tried something and installed a new build, now everything is gone again. Even if there are no changes on code side.

        I am quite sure its nothing related to OTA7. But I am afraid I have no idea what exactly is the reason for the crashes. They are gone here now. Please try clearing the apps cache and maybe another reboot. Although I am aware that this is no good solution.

        danfroD 1 Reply Last reply Reply Quote 0
        • danfroD Offline
          danfro @danfro
          last edited by

          Maybe everyone who has that issue, please try to remember what you did before when this happens. Did you import or save a file? Open another file? Is this only with new files or also with existing files? Do you have some content in clipboard...

          Just guessing, whatever you do, but maybe you can reproduce it somehow which then would give us a better idea where to start fixing.

          messayistoM stanwoodS 2 Replies Last reply Reply Quote 0
          • messayistoM Offline
            messayisto @danfro
            last edited by

            @danfro hum. The only thing I can say that I created a new file before. Then I tried to copy one word from this file and pressed it. Tedit crashed. I openend it again while another app was running (Morph). I tried to switch from tedit to the other app and it crashed again.

            danfroD 1 Reply Last reply Reply Quote 0
            • stanwoodS Offline
              stanwood @danfro
              last edited by

              @danfro My test was the simplest one: Just open Tedit, type "test" on the field, then press and hold my index finger on the word β€˜test’ that I've just written. The app closed immediately.

              Now I just tried something even more simple: Open Tedit, press and hold in the empty space (nothing has been written), and the app closed (crashed) as well.

              In both cases, no other app was opened nor active.

              Hope that it can help...

              Redmi Note 9S Stable
              If God has a computer, it must be a GNU/Linux

              Josele13J 1 Reply Last reply Reply Quote 0
              • danfroD Offline
                danfro @messayisto
                last edited by

                @messayisto and @stanwood When the bug occurs, I can reproduce exactly the issues you descibe. But right now they are all gone here. So something must trigger it.

                Could you please try the build from the latest pipeline? When building there was an error with a regex that is used for parsing a file name. Just a shot in the dark. But it can't hurt (hopefully 😏 ).

                Although part of me expects it to fix it, just to come back later.

                stanwoodS 1 Reply Last reply Reply Quote 0
                • stanwoodS Offline
                  stanwood @danfro
                  last edited by

                  @danfro said in tedit development and design discussion:

                  Could you please try the build from the latest pipeline?

                  Ouh... Don't know how to install this, I couldn't find the .click file in the "artifact.zip". But I acknowledge that I'm not skilled at all....

                  Redmi Note 9S Stable
                  If God has a computer, it must be a GNU/Linux

                  danfroD 1 Reply Last reply Reply Quote 0
                  • danfroD Offline
                    danfro @stanwood
                    last edited by

                    @stanwood No worries. First make sure you get the right artifacts file. Most devices are arm64 (64bit), but some older ones are armhf (32bit). Download that file on your device and extract it in file manager. Then hop into that folder and go builds/aarch64-linux-gnu/app. There you should find a .click file. Click on that, you should be asked to open it with another app. Pick OpenStore there to install it.

                    D 1 Reply Last reply Reply Quote 0
                    • D Offline
                      domubpkm @danfro
                      last edited by domubpkm

                      @danfro The difficulty is that now we don't even see the artifacts with morph! Could you link the artifact here please πŸ™‚ ! arm64

                      danfroD 1 Reply Last reply Reply Quote 0
                      • danfroD Offline
                        danfro @domubpkm
                        last edited by

                        @domubpkm Ah, sure. arm64

                        Btw. Lionel did already create a fix for gitlab. Should be coming soon.

                        D 1 Reply Last reply Reply Quote 0
                        • D Offline
                          domubpkm @danfro
                          last edited by

                          @danfro Thanks ! No crash (currently) with the artifact. However, with the latest official built, I cleared the cache, and I didn't get any crashes after that too.

                          danfroD 1 Reply Last reply Reply Quote 0
                          • danfroD Offline
                            danfro @domubpkm
                            last edited by

                            @domubpkm Thanks for testing. Yes, clearing the cache did help before too. I assume when I build the app with clickable, this clears the cache as well. No idea why something in the cache can make the app crash though... πŸ€”

                            messayistoM D 2 Replies Last reply Reply Quote 0
                            • messayistoM Offline
                              messayisto @danfro
                              last edited by

                              @danfro Installed from artifacts, cleared the cache again, app still crashes. 😞

                              stanwoodS 1 Reply Last reply Reply Quote 0
                              • D Offline
                                domubpkm @danfro
                                last edited by

                                @danfro I don't know anything about it, but couldn't it have something to do with the size of Tedit's cache?

                                danfroD 1 Reply Last reply Reply Quote 0
                                • stanwoodS Offline
                                  stanwood @messayisto
                                  last edited by

                                  @messayisto Same here: Deleting cache + config + data does not help.

                                  Redmi Note 9S Stable
                                  If God has a computer, it must be a GNU/Linux

                                  danfroD 1 Reply Last reply Reply Quote 0
                                  • danfroD Offline
                                    danfro @domubpkm
                                    last edited by

                                    @domubpkm App cache is handled automatically. I don't think there is anything I can do about the size, except maybe clear cache every time tedit is closed.

                                    D 1 Reply Last reply Reply Quote 0
                                    • danfroD Offline
                                      danfro @stanwood
                                      last edited by

                                      @stanwood and @messayisto very strange. Just to be safe, did you also try a reboot?

                                      Could you please check the apps log and see if there is anything in it? All I see is an error about a binding llp in TextInputPopover. But that is also when not crashing, so likely not related.

                                      Hard to track down if not reproducible. But a very annoying bug...

                                      stanwoodS messayistoM 2 Replies Last reply Reply Quote 0
                                      • D Offline
                                        domubpkm @danfro
                                        last edited by

                                        @danfro said in tedit development and design discussion:

                                        maybe clear cache every time tedit is closed.

                                        Why not if it's possible and even if it may not be the whole reason for the bug.
                                        That said everything is ok for me (for now...).

                                        1 Reply Last reply Reply Quote 0
                                        • stanwoodS Offline
                                          stanwood @danfro
                                          last edited by

                                          @danfro So I shut the device down during the night as I used to, and started up this morning. No change.
                                          Don't know where to find the logs (I'm not keen on installing apps such as "Log Viewer", which can lead to system instabilities).

                                          Redmi Note 9S Stable
                                          If God has a computer, it must be a GNU/Linux

                                          danfroD D 2 Replies Last reply Reply Quote 0
                                          • D Offline
                                            domubpkm
                                            last edited by

                                            Lionel did already create a fix for gitlab

                                            Thanks for this !! @lduboeuf . Really needed currently.

                                            1 Reply Last reply Reply Quote 0
                                            • messayistoM Offline
                                              messayisto @danfro
                                              last edited by

                                              @danfro https://dpaste.com/ATTBQZVFR
                                              hope that helps

                                              danfroD 1 Reply Last reply Reply Quote 0
                                              • First post
                                                Last post