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

Crash on some device when open connection in Task c# #31

Open
MinhLuongNeo opened this issue Oct 13, 2020 · 3 comments
Open

Crash on some device when open connection in Task c# #31

MinhLuongNeo opened this issue Oct 13, 2020 · 3 comments

Comments

@MinhLuongNeo
Copy link

MinhLuongNeo commented Oct 13, 2020

I used this in a Task and the game crashed on some device:
SQLiteConnection sqlCon = new SQLiteConnection (fullFilePath, passwordToSetup);

I see that the reason is when calling SQLite3.Open but I don't understand why because it called native from here.

This is my logcat:

logcat

@MinhLuongNeo
Copy link
Author

I found the solution, just call SQLite3.Threadsafe () somewhere in the main thread before open connection.

@netpyoung
Copy link
Owner

It so strange error message. NoClassDefFoundError.

If possible Could you post some example of code that?

It will be helpful which have same error.

@MinhLuongNeo
Copy link
Author

When I open a connection like this in a task. It will crash on some devices.
The device I use is: Oppo A37fw
Android version: 5.1.1
It also happens on the MemuPlay emulator with android version 5.x
Ảnh chụp Màn hình 2020-10-21 lúc 13 24 40

But if I open it like this, it should work perfectly
Ảnh chụp Màn hình 2020-10-21 lúc 13 33 04

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

No branches or pull requests

2 participants