Skip to content

[BUG] Import/export operations causing fatal crash on iOS #178

Closed
@liuduwei

Description

@liuduwei

What is the bug?

Stuck on Query.queryAndVisit when trying to export/import on ios (DartWorker:BAD_ACCESS), but works fine on my mac.

Version Info:

flutter:

i test 3.24.3, 3.27.1 both have this error

object_box:

i test 4.0.3, 4.0.1 both have this error

ios:

18.1.1, 17.6.1 both have

macos: works fine with 15.0(m1pro-14inch)

Issue desc(export)

first is export, i click the FloatingActionButton and exec onPressed function, the it's sucked, see blow screenshot

Image Image

and then i start another new instance, and click again, a error occur, see blow screenshot

Image

i think it's because Query.queryAndVisit still in progress, and i kill it case It left some intermediate artifacts, leading to the second error, so the root cause was getting stuck at the first export executing during the query. (BAD_ACCESS)

Notice: The version of flutter_map I am using is a specific commit, not a release version, at fleaflet/flutter_map@182c4fc, but i don't think it's flutter_map issue, i think it's some wrong in objectBox, or flutter it self

Issue desc(import)

i test import function with lib's example app, i use this

Image

i modify path_picker's file type to any ,or fmtc can't be choose(idk why), but it's not path_picker's problem, i don't use path_picker in my own app, just read in working path

Image

then choose a fmtc file, exported by my mac, exported code same as screenshot 1 (onPressed logic in FloatingActionButton) (mac works fine)

and error occur:

Image

I am providing as much information as possible, please let me know if more is required.

How can we reproduce it?

flow the issue desc

Do you have a potential solution?

no

Platforms

ios 17.6.1, ios 18.1.1

Severity

Fatal: Causes the application to crash

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue reports broken functionality or another errorexternalThe issue lies in a dependency or Flutter itself

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions