One day my computer crashed while I was using it and now it’s just this. It doesn’t work in a normal window but it does work in an Incognito one. I do not know what happened. (I have not touched any code in this AI character chat)

  • @perchanceM
    link
    English
    11 month ago

    Thanks for your patience here 🙏 There’d normally be an error message shown, but it looks like it’s just stopping at renderThreadList (the “PresentationRequest” error in your screenshot is not relevant here). I’ve just added some more logs, which should tell me where specifically within renderThreadList the error is occuring. If you can do exactly the same thing as the above screenshot again, that would be great! You should see:

    renderThreadList called
    renderThreadList: 1
    renderThreadList: 2
    renderThreadList: 3
    ...
    

    And the number where it stops will help me narrow down the cause.

    • @Lin1OP
      link
      English
      11 month ago

      deleted by creator

    • @Lin1OP
      link
      English
      1
      edit-2
      1 month ago

      here you go and thank you for helping me (and possibly others).

      • @Sunniday
        link
        English
        11 month ago

        deleted by creator

      • @perchanceM
        link
        English
        1
        edit-2
        1 month ago

        Okay, that was helpful, thank you! New test: Can you try refreshing the page, and then waiting about 20 seconds to see if an “export data” button appears at the top of the screen? If so, click it, and let me know if you see any errors in the console (please screenshot if so), and whether it downloads a ai-character-chat-raw-export.cbor file successfully (let me know file size if so). Please also open the console when it’s exporting/downloading and screenshot if you see any errors.

        • @Lin1OP
          link
          English
          11 month ago

          the button was there, there were no errors but it never exported… it just stays loading

          • @perchanceM
            link
            English
            11 month ago

            Can you please try again now, and also share screenshot of the logs of the process? It’ll take about 5 minutes, since it will take a while for it to “give up” on the data that it wasn’t able to get. Also can you try going to the “Applications” tab like I describe in this comment:

            https://lemmy.world/comment/13719433

            • @Lin1OP
              link
              English
              11 month ago

              • @perchanceM
                link
                English
                1
                edit-2
                1 month ago

                Hmm, can you try this:

                • If you currently have the console open, close it with the “x” in the top-right.
                • Then right-clicking in the middle of the page, and selecting “Inspect” in the menu that appears.
                • It’ll open up the console thing, but it’ll be on the “Elements” tab.
                • Click the “Console” tab and scroll to the bottom, and type/paste this exact text: await db.characters.get(999999999)
                • Then press enter, and let me know if you see “undefined” immediately appear underneath it.
                • If you do see undefined appear, then try pasting it again but change the number to 5 - i.e. await db.characters.get(5)
                • If you see undefined again, try a few different numbers like 10, 20, 50 - we’re basically trying to guess the IDs of the characters you had to see if we can get data for them individually.
                • If you don’t see anything appear under the original await db.characters.get(999999999) then please let me know. This complicates matters, and we’ll need to go “deeper” into Chrome to (hopefully) solve this.
                • @Lin1OP
                  link
                  English
                  1
                  edit-2
                  1 month ago

                  okay, so I was getting “undefined” and I did find 3 of my characters after doing numbers 1-30.

                  • @perchanceM
                    link
                    English
                    2
                    edit-2
                    1 month ago

                    Okay, that’s promising.

                    I’ve just updated the chat page so you can now export the database with the button that pops up after several seconds when the page fails to load. And then once you’ve done that (remember it may take 5 minutes):

                    • It’ll save the export file to your device’s download folder
                    • You’ll notice that a ‘delete all data’ button appears below the export button, but don’t click that yet.
                    • Instead, to test that the exported file can be imported successfully, try opening an incognito/private/guest mode browser window, and visit https://perchance.org/ai-character-chat and import that file from your downloads folder using the ‘import’ button in the left side bar.
                    • If it works, then ideally backup the file from your downloads folder to google drive or dropbox or something, just to ensure 100% that you don’t lose it, because the next step is to go back to the page where you exported it and click that ‘delete all data’ button that appeared underneath the export button.
                    • Now reload the page, and import the file from your downloads folder using the import button, just like you did in the private browsing window.

                    The way the export process works is by skipping the ‘corrupt’ character that’s causing the underlying issue - it actually just replaces it with one of your other characters, and then changes its name to ‘CORRUPT’. So you’ll probably lose at least one of your characters, but you’ll still likely have all their chats, so you just need to re-write their name/description/etc.

                    Hopefully that works, but if not, then please let me know at which point it failed, and any error messages you saw.