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

mono runtime using 3rd Party library internal invoke native code lead app crash #78205

Closed
jingliancui opened this issue Nov 11, 2022 · 3 comments
Assignees
Milestone

Comments

@jingliancui
Copy link

Description

please check this issue:
dotnet/android#7532

Reproduction Steps

https://github.com/xamarin/xamarin-android/files/9944038/JPushMAUI.zip

1.Unzip the ziped file.
2.Using Android Studio run the app that placed on the native folder with debug mode.
3.Using Visual Studio run the app that placed on the SampleApp folder with debug mode.
4.Native app normal run after occur JPushInterface.init(this); which wrote on MainActivity.java
5.SampleApp crash after occur CN.Jpush.Android.Api.JPushInterface.Init(this); which wrote on MainActivity.cs

Expected behavior

SampleApp run after occur CN.Jpush.Android.Api.JPushInterface.Init(this); which wrote on MainActivity.cs

Actual behavior

SampleApp crash after occur CN.Jpush.Android.Api.JPushInterface.Init(this); which wrote on MainActivity.cs

Regression?

No response

Known Workarounds

can not find any workarounds now.

Configuration

No response

Other information

https://github.com/xamarin/xamarin-android/files/9953023/log.txt

@ghost ghost added the untriaged New issue has not been triaged by the area owner label Nov 11, 2022
@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@lambdageek
Copy link
Member

Following up in dotnet/android#7532 it might be an issue with how XA calls mono_runtime_invoke on a thread that's not attached to the mono runtime.

@lambdageek lambdageek removed the untriaged New issue has not been triaged by the area owner label Nov 16, 2022
@lambdageek lambdageek added this to the 8.0.0 milestone Nov 16, 2022
@SamMonoRT
Copy link
Member

Should be fixed via PR associated with dotnet/android#7532. Closing this issue.

@ghost ghost locked as resolved and limited conversation to collaborators Aug 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants