Skip to content

Fatal crash on Android API ≤ 25 when persisting entity containing list with over 500 elements #1215

@jacobian2020

Description

@jacobian2020

Is there an existing issue?

Build info

  • ObjectBox version: 4.3.1
  • OS: [Android 7 ]
  • Device/ABI/architecture: [ arm64-v8a | x86-64 ]

Steps to reproduce

Run the provided sample project, or refer to the Java code attached in this post for a minimal example.

Expected behavior

The object should be stored without error, regardless of list size or platform version.

Actual behavior

Application crashes fatally during the operation on devices running Android API level 25 or lower.

Code

Run the provided sample project, or refer to the Java code attached in this post for a minimal example.

objectbox-bug-upload.zip

Code
@Entity
data class Data (
    @Id
    var _id: Long = 0,
    var ids: List<String> = listOf(),
)
box.put(
            Data(
                ids = IntRange(0,512).map { //crash on API 25, < 400 works
                    "$it"
                }
            )
        )

Logs, stack traces

TODO Add relevant logs, a stack trace or crash report.

Logs

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions