Closed Filazapovich closed 5 years ago
@AGulev will follow-up on this issue on Monday (10th of June)
Hi @Filazapovich , Thank you for the issue report!
I've made a fix, would be awesome if you could test and confirm that everything works fine, thanks! https://github.com/defold/extension-firebase-analytics/archive/android-crash-fix.zip
Hi @AGulev , Thanks for fix. It works fine.
Crash dumps:
OPO6
Galaxy Mega 6.3
Huawei Mate 20
Source code for log_table
Looks like there are problem in
dmArray::Push
. Seems to be afterdmArray::OffsetCapacity
call. For my point of view this crash dumps can be described by this simple steps:dmArray<firebase::analytics::Parameter>::OffsetCapacity
dmArray<firebase::analytics::Parameter>::Push(firebase::analytics::Parameter const&)
firebase::analytics::Parameter::operator=(firebase::analytics::Parameter const&)
.firebase::Variant::Clear(firebase::Variant::Type)
.destuctor
for appropriateVariant::Type
. Which is initialized with random value from raw memory.I think the call of
firebase::analytics::Parameter::operator=(firebase::analytics::Parameter const&)
is not appropriate for element[Size() + 1] allocated bydmArray<firebase::analytics::Parameter>::OffsetCapacity
and not initialized byconstructor
call. Can you confirm the bug in dmArray or what i'm doing wrong?