firebase / quickstart-unity

Firebase Quickstart Samples for Unity
https://firebase.google.com/games
Apache License 2.0
819 stars 424 forks source link

FIRESTORE INTERNAL ASSERTION FAILED crash #1285

Closed shlighter closed 2 years ago

shlighter commented 2 years ago

[READ] For Firebase Unity SDK issues, please report to Firebase Unity open-source

Once you've read this section and determined that your issue is appropriate for this repository, please delete this section.

[REQUIRED] Please fill in the following fields:

[REQUIRED] Please describe the issue here:

'm trying to run the following code in my app. Unity's editor crashes when running it. And on the iPhone the app freezes. What am I doing wrong? Firebase SDK 8.8.0.

Error- ERROR: FIRESTORE INTERNAL ASSERTION FAILED: z:\build\work\006fabbe3c788f8159e582ced9f367dd4f3a\google3\third_party\firebase\ios\Releases\FirebaseFirestore\core\src\local\leveldb_transaction.cc(76) void _cdecl firebase::firestore::local::LevelDbTransaction::Iterator::Seek(const class std::basic_string<char,struct std::char_traits,class std::allocator > &): leveldb iterator reported an error: Corruption: corrupted compressed block contents (expected db_iter->status().ok())

Steps to reproduce:

My code is- FirebaseFirestore db = FirebaseFirestore.DefaultInstance; DocumentReference docRef = db.Collection("posts").Document("656"); Dictionary<string, object> uuu = new Dictionary<string, object> { { "text", "hello" } }; docRef.SetAsync(uuu); }

// TODO(you): code here to reproduce the problem
shlighter commented 2 years ago

Closing the issue- I reinstalled the SDK (updated to 8.10)

dconeybe commented 2 years ago

This was a known issue with "Snappy" compression support, and was fixed recently (Googlers see b/227782613). I didn't realize we actually released the bug though. In any case, it's definitely fixed now. See https://github.com/firebase/firebase-cpp-sdk/pull/885 for details.