SqlCipher4Unity3D icon indicating copy to clipboard operation
SqlCipher4Unity3D copied to clipboard

Crash on some device when open connection in Task c#

Open MinhLuongNeo opened this issue 5 years ago • 3 comments

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 avatar Oct 13 '20 09:10 MinhLuongNeo

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

MinhLuongNeo avatar Oct 13 '20 11:10 MinhLuongNeo

It so strange error message. NoClassDefFoundError.

If possible Could you post some example of code that?

It will be helpful which have same error.

netpyoung avatar Oct 20 '20 08:10 netpyoung

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

MinhLuongNeo avatar Oct 21 '20 06:10 MinhLuongNeo