OPENER-next / OpenStop

App for collecting OpenStreetMap-compliant accessibility data in public transport
https://openstop.app
GNU General Public License v3.0
65 stars 13 forks source link

iOS App crashes on closing #132

Closed 7h30n3 closed 1 year ago

7h30n3 commented 1 year ago

Problem

When you close the app in iOS via a forced quit (swipe up) it crashes.

The crashlog shows that it is related to the motion_sensors package:

Last Exception Backtrace:
0   CoreFoundation                         0x1b2711e48 __exceptionPreprocess + 164
1   libobjc.A.dylib                        0x1ab9e38d8 objc_exception_throw + 60
2   Foundation                             0x1acfd294c _userInfoForFileAndLine + 0
3   Flutter                                0x100e4abac 0x100e38000 + 76716
4   motion_sensors                         0x100b15b38 thunk for @escaping @callee_unowned @convention(block) (@unowned Swift.AnyObject?) -> () + 176
5   motion_sensors                         0x100b17e20 partial apply for closure #1 in AttitudeStreamHandler.onListen(withArguments:eventSink:) + 496
6   motion_sensors                         0x100b161e8 thunk for @escaping @callee_guaranteed (@guaranteed CMGyroData?, @guaranteed Error?) -> () + 80
7   Foundation                             0x1acb340f0 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 24
8   Foundation                             0x1acb08240 -[NSBlockOperation main] + 104
9   Foundation                             0x1acb081d0 __NSOPERATION_IS_INVOKING_MAIN__ + 16
10  Foundation                             0x1acac9578 -[NSOperation start] + 708
11  Foundation                             0x1acac92ac __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ + 16
12  Foundation                             0x1acace9c0 __NSOQSchedule_f + 172
13  libdispatch.dylib                      0x1b9d34114 _dispatch_block_async_invoke2 + 148
14  libdispatch.dylib                      0x1b9d24fdc _dispatch_client_callout + 20
15  libdispatch.dylib                      0x1b9d2846c _dispatch_continuation_pop + 504
16  libdispatch.dylib                      0x1b9d27ad4 _dispatch_async_redirect_invoke + 584
17  libdispatch.dylib                      0x1b9d36a6c _dispatch_root_queue_drain + 396
18  libdispatch.dylib                      0x1b9d37284 _dispatch_worker_thread2 + 164
19  libsystem_pthread.dylib                0x200799dbc _pthread_wqthread + 228
20  libsystem_pthread.dylib                0x200799b98 start_wqthread + 8

Due to dependencies the bug has to be fixed upstream in: https://github.com/OPENER-next/animated_location_indicator

Which app version do you use?

0.3.0+8

What operating system do you use?

iOS

What operating system version do you use?

16.2

Additional information

The issues is also referenced here: https://github.com/zesage/motion_sensors/issues/15 The sensor_plus package also seems to have had this issue, but it should be fixed there: https://github.com/fluttercommunity/plus_plugins/pull/995