Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS crashing when hosting file #76

Closed
huynguyennovem opened this issue Aug 9, 2023 · 2 comments · Fixed by #77
Closed

iOS crashing when hosting file #76

huynguyennovem opened this issue Aug 9, 2023 · 2 comments · Fixed by #77
Labels
blocked Be blocked by something bug Something isn't working ios server

Comments

@huynguyennovem
Copy link
Owner

The fatal crash appears right after selecting a directory to host

“Documents” couldn’t be moved because you don’t have permission to access “tmp”.
*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array'
*** First throw call stack:
(0x180d7fc80 0x1985a3ee4 0x180e7a6b4 0x180d19f6c 0x102922a74 0x1839b33a8 0x1833acca8 0x1838b899c 0x183252d8c 0x1834510ec 0x1832b8518 0x1841dc428 0x1832d24e4 0x1831a6cf0 0x1831ba6b8 0x1831ba80c 0x1848a8730 0x180a40094 0x1809ecd44 0x1809ec994 0x180d3b034 0x180cf8538 0x180d0b194 0x1a183e988 0x18350da88 0x1832a6fc8 0x1025617e4 0x1027d04d0)
libc++abi: terminating with uncaught exception of type NSException
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
    frame #0: 0x00000001bb654bbc libsystem_kernel.dylib`__pthread_kill + 8
libsystem_kernel.dylib`:
->  0x1bb654bbc <+8>:  b.lo   0x1bb654bd8               ; <+36>
    0x1bb654bc0 <+12>: stp    x29, x30, [sp, #-0x10]!
    0x1bb654bc4 <+16>: mov    x29, sp
    0x1bb654bc8 <+20>: bl     0x1bb65060c               ; cerror_nocancel
Target 0: (Runner) stopped.
Lost connection to device.
@huynguyennovem huynguyennovem added bug Something isn't working server ios labels Aug 9, 2023
@huynguyennovem
Copy link
Owner Author

Be blocked by miguelpruivo/flutter_file_picker#1345

@huynguyennovem huynguyennovem added the blocked Be blocked by something label Aug 9, 2023
@huynguyennovem
Copy link
Owner Author

Found the fix at miguelpruivo/flutter_file_picker#1345. While waiting for PR miguelpruivo/flutter_file_picker#1346 to be merged, use package with Git dependency instead:

file_picker:
  git:
    url: https://github.com/huynguyennovem/flutter_file_picker.git
    ref: getpathdir-crash-1345

huycozy pushed a commit that referenced this issue Aug 10, 2023
Signed-off-by: huynguyennovem <huynguyennovem@gmail.com>
huycozy pushed a commit that referenced this issue Aug 10, 2023
Signed-off-by: huynguyennovem <huynguyennovem@gmail.com>
huynguyennovem added a commit that referenced this issue Aug 10, 2023
Signed-off-by: huynguyennovem <huynguyennovem@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Be blocked by something bug Something isn't working ios server
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant