Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

The app may crash sometimes when using new version of tauri #6

Open
widcardw opened this issue Sep 22, 2022 · 2 comments
Open

The app may crash sometimes when using new version of tauri #6

widcardw opened this issue Sep 22, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@widcardw
Copy link
Owner

widcardw commented Sep 22, 2022

I upgraded the version of tauri by running pnpm update and cd src/tauri && cargo update, but on dev mode it may crash.

I am not sure whether this is the problem of tauri or me 😭

crash.log

@widcardw widcardw added the bug Something isn't working label Sep 22, 2022
@widcardw
Copy link
Owner Author

Preview logs on pastebin

@widcardw
Copy link
Owner Author

PC register does not match crashing frame (0x102358F180000 vs 0x2358F180000)

VM Region Info: 0x2358f180000 is not in any region.  Bytes after previous region: 1948020899841  Bytes before following region: 103124059029504
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      commpage (reserved)        1000000000-7000000000   [384.0G] ---/--- SM=NUL  ...(unallocated)
--->  GAP OF 0x5f9000000000 BYTES
      MALLOC_NANO              600000000000-600008000000 [128.0M] rw-/rwx SM=PRV  

Error Formulating Crash Report:
PC register does not match crashing frame (0x102358F180000 vs 0x2358F180000)

I came up with two solutions.

Solution 1, Roll back the deps

Maybe I should report the issue to tauri

Solution 2, create the danmaku view window on launching the app

From where I stand, the issue may result from frequently creating and destroying the viewer window, so I should only create it once when the app launches, and close all of them when shutting down. However, this solution would change most of the api, which may confuse many of us developers🙈

But why didn't I apply the second solution at first? Since I used this method on my first tauri app tauri-wubi, and I just wanted to try another way.

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

No branches or pull requests

1 participant