Skip to content
New issue

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

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

Already on GitHub? # to your account

Sembast always throws exception on my device. #189

Closed
yulingtianxia opened this issue Jun 5, 2019 · 7 comments
Closed

Sembast always throws exception on my device. #189

yulingtianxia opened this issue Jun 5, 2019 · 7 comments

Comments

@yulingtianxia
Copy link
Contributor

yulingtianxia commented Jun 5, 2019

  • Devide: iPhone X
  • branch: release/1.0.22
[VERBOSE-2:ui_dart_state.cc(148)] Unhandled Exception: FileSystemException: Creation failed, path = '/var/mobile/Containers/Data/Application/01AC6EA2-A9A0-4E17-9AB2-80E7F4145F8D/Documents+' (OS Error: Operation not permitted, errno = 1)
#0      _wrap.<anonymous closure> 
package:sembast/…/io/file_system_io.dart:100
#1      _rootRunUnary  (dart:async/zone.dart:1132:38)
#2      _CustomZone.runUnary  (dart:async/zone.dart:1029:19)
#3      _FutureListener.handleError  (dart:async/future_impl.dart:144:20)
#4      Future._propagateToListeners.handleError  (dart:async/future_impl.dart:651:47)
#5      Future._propagateToListeners  (dart:async/future_impl.dart:672:24)
#6      Future._completeWithValue  (dart:async/future_impl.dart:483:5)
#7      Future._asyncComplete.<anonymous closure>  (dart:async/future_impl.dart:513:7)
#8      _rootRun  (dart:async/zone.dart:1124:13)
#9      _CustomZone.run  (dart:async/zone.dart:1021:19)
#10     _CustomZone.runGuarded  (dart:async/zone.dart:923:7)
#11     _CustomZone.bindCallbackGuarded.<anonymous closure>  (dart:async/zone.dart:963:23)
#12     _microtaskLoop  (dart:async/schedule_microtask.dart:41:21)
#13     _startMicrotaskLoop  (dart:async/schedule_microtask.dart:50:5)

Note the path "Documents+", I think this cause the exception.
Simulator works fine.

@yulingtianxia
Copy link
Contributor Author

yulingtianxia commented Jun 6, 2019

I just fixed it. #190

@pastordee
Copy link
Contributor

The same for me on the iPhone X the same error, on 1.0.22 which came out today.

@phillwiggins
Copy link
Member

phillwiggins commented Jun 11, 2019 via email

@pastordee
Copy link
Contributor

Ok thanks will try that now.

@pastordee
Copy link
Contributor

Sorry phill that didn't work, it still giving the sane error.

Unhandled Exception: FileSystemException: Creation failed, path = '/var/mobile/Containers/Data/Application/21216150-D628-4FF9-BCDE-9BF710FEEC77/Documents+' (OS Error: Operation not permitted, errno = 1)
#0 _wrap. (package:sembast/src/io/file_system_io.dart:100:7)

@phillwiggins
Copy link
Member

phillwiggins commented Jun 11, 2019 via email

@pastordee
Copy link
Contributor

pastordee commented Jun 13, 2019

Hey Phill is working now, The fix in #190 did it for me
just delete the + after $dbDirectory on line 14 in the core_store_impl.dart file .
final String dbPath = path.join('$dbDirectory+/parse', 'parse.db');
should be final String dbPath = path.join('$dbDirectory/parse', 'parse.db');

Thank for your amazing work.
PS: You did not add the fix for Timezone in 1.0.22 release hopeful next release.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants