Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix panic caused by removed_resource.is_none (fix #11955) #12000

Merged
merged 6 commits into from
Dec 23, 2024

Conversation

stringhandler
Copy link
Contributor

closes #11955

Fixes a panic caused by an assert when the resource random id has been used already

@stringhandler stringhandler requested a review from a team as a code owner December 18, 2024 08:07
@stringhandler stringhandler changed the title fix: fix panic caused by assert(removed_resource.is_none()) fix: fix panic caused by removed_resource.is_none (fix #11955) Dec 18, 2024
brianp pushed a commit to tari-project/universe that referenced this pull request Dec 18, 2024
Tauri has a bug in it which causes it to panic. I've created a PR to fix
it (tauri-apps/tauri#12000) but it might take a
while for them to merge it and release a new version. In the meantime,
we can switch to using our fork.
Copy link
Member

@amrbashir amrbashir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, could you also add a change file in .changes directory?

Copy link
Contributor

github-actions bot commented Dec 18, 2024

Package Changes Through 562f7e6

There are 8 changes which include @tauri-apps/api with minor, tauri-bundler with minor, tauri-cli with minor, @tauri-apps/cli with minor, tauri with minor, tauri-runtime with minor, tauri-runtime-wry with minor, tauri-utils with patch

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
@tauri-apps/api 2.1.1 2.2.0
tauri-utils 2.1.0 2.1.1
tauri-bundler 2.1.0 2.2.0
tauri-runtime 2.2.0 2.3.0
tauri-runtime-wry 2.2.0 2.3.0
tauri-codegen 2.0.3 2.0.4
tauri-macros 2.0.3 2.0.4
tauri-plugin 2.0.3 2.0.4
tauri-build 2.0.3 2.0.4
tauri 2.1.1 2.2.0
@tauri-apps/cli 2.1.0 2.2.0
tauri-cli 2.1.0 2.2.0

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@stringhandler
Copy link
Contributor Author

Added a file in .changes. From the contributing guide it seemed like this was unnecessary for bug fixes, but I might have misread it.

stringhandler and others added 3 commits December 18, 2024 17:51
Co-authored-by: Amr Bashir <github@amrbashir.me>
@amrbashir amrbashir merged commit e349dfe into tauri-apps:dev Dec 23, 2024
20 checks passed
@stringhandler stringhandler deleted the st-fix-resource-assert branch December 23, 2024 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug] panic: assertion failed: removed_resource.is_none() in src/resources/mod.rs:116:5
2 participants