Closed jquesada2016 closed 2 years ago
Do you still have this issue? Can't reproduce it. Please post a minimal repro if you still encounter this.
Looks similar to https://github.com/MicrosoftEdge/WebView2Feedback/issues/1207 and #4181
I took a look at #4181 and it is definitely related. Here's a bit more context:
I made a sort of screen reader app for myself that is always running in the background. This project where the error occurs, or any other project I try to run with Tauri while that accessibility app is running in the background causes the above error. All apps have a different package name. But only if there is one tauri app running will that app run.
@amrbashir I could try to make a repro, but there wouldn't really be anything to repro, as this happens with just running the exacts steps above for me, with the simple addition of already having an installed Tauri app running in the background.
I misread this comment. When I changed the package identifier (not the package name), then the app successfully launched.
Is it possible to add a warning note in the documentation that states that if two different Tauri apps are running, and have the same identifier, than the second app will not work?
As these were personal projects and were not expected to be published anywhere, I never considered the uniqueness requirement of the package identifier.
@jquesada2016 can you give us more details on how you're running these apps? I tried again installing two MSI for different projects with the same bundle identifier and running both at the same time, but I still cannot reproduce the issue.
Sure!
First I generated the msi
installer with npx tauri build
for the first app. I installed this app and started it.
After this, I create a new tauri
project, you can generate it any way you'd like, they all result in the same error.
Then, while the first installed app is still running, run npx tauri dev
, which does open a window, tough blank and the above error message logged in the terminal.
If I quit out of the first app which is running in the background, and try npx tauri dev
on the second app, then that second app works.
If you'd like, I can put the project for the first app as-is up on GitHub and link it here if it might help. That app isn't doing anything particularly fancy, however.
I still can't reproduce it, but I assume this happens because both applications are using the same data directory. I'll add this to the documentation, though the CLI already shows a useful error if you use the default identifier.
I can reproduce this by having old-version of tauri installed and opened while running dev process of the newest version of tauri installed
Yes! the app I have running in the background was produced by an older version of Tauri.
did have one solution ? i meet the same thing in windows 11
Same here, installs fine, but then won't run.
Same here. Building the end result of the tauri-app created template results in having an exe file that does run on Windows.
Choose: pnpm + rust + react + typescript :
pnpm create tauri-app@latest
cd tauri-app/
pnpm install
pnpm tauri build
Turns out my issue was due to secrets not being registered at build time causing the app to instantly crash. Using procmon you can see the crash and error messages.
I have the same problem. last night it worked without any problem but now it compiles everything but it's not opening the app.
@altunenes would recommend running "procmon" it will show you some helpful log messages.
@altunenes would recommend running "procmon" it will show you some helpful log messages.
thanks! I'm trying this now!
Error A public key has been found, but no private key. Make sure to set
TAURI_SIGNING_PRIVATE_KEYenvironment variable.
:D
I think that way nearly word for word the error I had too lol
I'm sending this msg to the future:
My problem was solved after I copied and pasted onnxruntime.dll
into the system32 folder in Windows.
I've been dealing with this problem all day, so don't ask me how I came up with such a solution :D, I've tried everything you can imagine haha.
In short, if your app is dependent on something (like gst, ffmpeg, cuda, or onnx like me) and it's crashing silently, make sure that these kinds of Path operations are somehow working in your app.
Describe the bug
When creating a new
tauri
app, runningnpx tauri dev
builds and opens a window, but does not show anything and displays an error in the console. The error can be found in theStack Trace
section of this report.Reproduction
tauri
project however one wishesnpx tauri dev
or with the rust cliExpected behavior
I expect
tauri
to open the window as normal with no errors and display the web app's contents.Platform and versions
Stack trace