★ wanayoo — archive 1999 https://github.com/Baseflow/flutter_cache_manager/issues/157Nouvelle recherche | Portail wanayoo
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

Unhandled Exception: NoSuchMethodError: The getter 'inMicroseconds' was called on null #157

Closed
dao-wkm opened this issue Mar 31, 2020 · 3 comments

Comments

@dao-wkm
Copy link

@dao-wkm dao-wkm commented Mar 31, 2020 •

Thanks for reading

🐛 Bug Report

E/flutter ( 4036): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: NoSuchMethodError: The getter 'inMicroseconds' was called on null.
E/flutter ( 4036): Receiver: null
E/flutter ( 4036): Tried calling: inMicroseconds
E/flutter ( 4036): #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)
E/flutter ( 4036): #1 DateTime.subtract (dart:core-patch/date_patch.dart:197:54)
E/flutter ( 4036): #2 CacheObjectProvider.getOldObjects
package:flutter_cache_manager/src/cache_object.dart:151
E/flutter ( 4036): #3 CacheStore._cleanupCache
package:flutter_cache_manager/src/cache_store.dart:136
E/flutter ( 4036):
E/flutter ( 4036): #4 CacheStore._scheduleCleanup.
package:flutter_cache_manager/src/cache_store.dart:123
E/flutter ( 4036): #5 _rootRun (dart:async/zone.dart:1122:38)
E/flutter ( 4036): #6 _CustomZone.run (dart:async/zone.dart:1023:19)
E/flutter ( 4036): #7 _CustomZone.runGuarded (dart:async/zone.dart:925:7)
E/flutter ( 4036): #8 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:965:23)
E/flutter ( 4036): #9 _rootRun (dart:async/zone.dart:1126:13)
E/flutter ( 4036): #10 _CustomZone.run (dart:async/zone.dart:1023:19)
E/flutter ( 4036): #11 _CustomZone.bindCallback. (dart:async/zone.dart:949:23)
E/flutter ( 4036): #12 Timer._createTimer. (dart:async-patch/timer_patch.dart:23:15)
E/flutter ( 4036): #13 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:384:19)
E/flutter ( 4036): #14 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:418:5)
E/flutter ( 4036): #15 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:174:12)

Version: 1.1.3

Platform:

  • 📱 iOS
  • 🤖 Android
@renefloor
Copy link
Collaborator

@renefloor renefloor commented Apr 3, 2020

Do you have any idea when or why this happens?

@dao-wkm
Copy link
Author

@dao-wkm dao-wkm commented Apr 8, 2020

Do you have any idea when or why this happens?

I dont know why but this error is thrown many times while running the app

@dao-wkm
Copy link
Author

@dao-wkm dao-wkm commented Jul 14, 2020

I don't see any errors in this case anymore after upgrade flutter to master v1.20.0-7.0.pre, cached_network_image: 2.2.0+1

@dao-wkm dao-wkm closed this Jul 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.