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

"Attempt to present a Bulletin on top of another Bulletin window" #330

Closed
ualch9 opened this issue Dec 7, 2020 · 3 comments · Fixed by #335 or #494
Closed

"Attempt to present a Bulletin on top of another Bulletin window" #330

ualch9 opened this issue Dec 7, 2020 · 3 comments · Fixed by #335 or #494
Assignees
Milestone

Comments

@ualch9
Copy link
Member

ualch9 commented Dec 7, 2020

This happens every time I leave the app running for an extended period of time (i.e. overnight) in Simulator.

[...]
#5	0x00007fff2f129037 in _assertionFailure(_:_:file:line:flags:) ()
#6	0x000000010e4ece7e in BLTNItemManager.showBulletin(in:animated:completion:) at /Users/alanchu/Library/Developer/Xcode/DerivedData/OBAKit-crmfsejwmraydyccaehdchkxylrw/SourcePackages/checkouts/BulletinBoard/Sources/BLTNItemManager.swift:472
#7	0x000000010e3a8c10 in ReachabilityBulletin.showStatus(_:in:) at /Users/alanchu/Documents/projects/OBAKit/OBAKit/Reachability/Reachability.swift:52
#8	0x000000010e280c8a in closure #1 in Application.configureConnectivity() at /Users/alanchu/Documents/projects/OBAKit/OBAKit/Orchestration/Application.swift:226
[...]
@ualch9
Copy link
Member Author

ualch9 commented Dec 21, 2020

reproduction steps:

  1. Launch app
  2. Turn off Wi-Fi
  3. Go back to app, bulletin appears, don't dismiss bulletin
  4. Turn WiFi on
  5. Go back to app, don't dismiss bulletin
  6. Turn WiFi off
  7. Go back to app, crash!

@ualch9 ualch9 self-assigned this Dec 21, 2020
ualch9 added a commit to ualch9/onebusaway-ios that referenced this issue Dec 21, 2020
Fixes OneBusAway#330, “Attempt to present a Bulletin on top of another Bulletin window”
@ualch9 ualch9 mentioned this issue Dec 22, 2020
@ualch9
Copy link
Member Author

ualch9 commented Dec 28, 2020

Just kidding, I guess #335 didn't fix this...
Although, it was a similar situation as I described before, regarding connectivity.

2020-12-28 20:45:31.740726+0800 App[94955:3404522] Connection 13: received failure notification
2020-12-28 20:45:31.740840+0800 App[94955:3404522] Connection 13: failed to connect 1:50, reason -1
2020-12-28 20:45:31.740928+0800 App[94955:3404522] Connection 13: encountered error(1:50)
2020-12-28 20:45:31.743748+0800 App[94955:3404522] Task <A43B11E7-0F5E-4FB4-B5CA-C532642D15DD>.<1> HTTP load failed, 0/0 bytes (error code: -1009 [1:50])
2020-12-28 20:45:31.744349+0800 App[94955:3404522] Connection 14: received failure notification
2020-12-28 20:45:31.745526+0800 App[94955:3404522] Connection 14: failed to connect 1:50, reason -1
2020-12-28 20:45:31.745916+0800 App[94955:3404522] Connection 14: encountered error(1:50)
2020-12-28 20:45:31.747040+0800 App[94955:3404522] Task <9BA81F62-AD26-4F51-A514-5D28CE44B704>.<1> HTTP load failed, 0/0 bytes (error code: -1009 [1:50])
2020-12-28 20:45:31.752727+0800 App[94955:3404523] Task <A43B11E7-0F5E-4FB4-B5CA-C532642D15DD>.<1> finished with error [-1009] Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." UserInfo={_kCFStreamErrorCodeKey=50, NSUnderlyingError=0x600001002310 {Error Domain=kCFErrorDomainCFNetwork Code=-1009 "(null)" UserInfo={_kCFStreamErrorCodeKey=50, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <A43B11E7-0F5E-4FB4-B5CA-C532642D15DD>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <A43B11E7-0F5E-4FB4-B5CA-C532642D15DD>.<1>"
), NSLocalizedDescription=The Internet connection appears to be offline., NSErrorFailingURLStringKey=https://www.apple.com/library/test/success.html, NSErrorFailingURLKey=https://www.apple.com/library/test/success.html, _kCFStreamErrorDomainKey=1}
2020-12-28 20:45:31.771706+0800 App[94955:3404527] Task <9BA81F62-AD26-4F51-A514-5D28CE44B704>.<1> finished with error [-1009] Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." UserInfo={_kCFStreamErrorCodeKey=50, NSUnderlyingError=0x60000102c780 {Error Domain=kCFErrorDomainCFNetwork Code=-1009 "(null)" UserInfo={_kCFStreamErrorCodeKey=50, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <9BA81F62-AD26-4F51-A514-5D28CE44B704>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <9BA81F62-AD26-4F51-A514-5D28CE44B704>.<1>"
), NSLocalizedDescription=The Internet connection appears to be offline., NSErrorFailingURLStringKey=https://captive.apple.com/hotspot-detect.html, NSErrorFailingURLKey=https://captive.apple.com/hotspot-detect.html, _kCFStreamErrorDomainKey=1}
2020-12-28 20:46:01.950328+0800 App[94955:3406189] Connection 15: received failure notification
2020-12-28 20:46:01.979002+0800 App[94955:3406189] Connection 15: failed to connect 1:50, reason -1
2020-12-28 20:46:01.980559+0800 App[94955:3406189] Connection 15: encountered error(1:50)
2020-12-28 20:46:02.009627+0800 App[94955:3406189] Task <B549E73F-99E3-49DC-B690-25EB1E2065A9>.<1> HTTP load failed, 0/0 bytes (error code: -1009 [1:50])
2020-12-28 20:46:02.011673+0800 App[94955:3406189] Connection 16: received failure notification
2020-12-28 20:46:02.057212+0800 App[94955:3406189] Connection 16: failed to connect 1:50, reason -1
2020-12-28 20:46:02.058362+0800 App[94955:3406189] Connection 16: encountered error(1:50)
2020-12-28 20:46:02.110994+0800 App[94955:3406189] Task <661DC1DB-EFB4-4599-AB24-5132461A9AB4>.<1> HTTP load failed, 0/0 bytes (error code: -1009 [1:50])
2020-12-28 20:46:02.108716+0800 App[94955:3405110] Task <B549E73F-99E3-49DC-B690-25EB1E2065A9>.<1> finished with error [-1009] Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." UserInfo={_kCFStreamErrorCodeKey=50, NSUnderlyingError=0x60000104ebb0 {Error Domain=kCFErrorDomainCFNetwork Code=-1009 "(null)" UserInfo={_kCFStreamErrorCodeKey=50, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <B549E73F-99E3-49DC-B690-25EB1E2065A9>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <B549E73F-99E3-49DC-B690-25EB1E2065A9>.<1>"
), NSLocalizedDescription=The Internet connection appears to be2020-12-28 20:46:02.124254+0800 App[94955:3406188] Task <661DC1DB-EFB4-4599-AB24-5132461A9AB4>.<1> finished with error [-1009] Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." UserInfo={_kCFStreamErrorCodeKey=50, NSUnderlyingError=0x600001003150 {Error Domain=kCFErrorDomainCFNetwork Code=-1009 "(null)" UserInfo={_kCFStreamErrorCodeKey=50, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <661DC1DB-EFB4-4599-AB24-5132461A9AB4>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <661DC1DB-EFB4-4599-AB24-5132461A9AB4>.<1>"
), NSLocalizedDescription=The Internet connection appears to be offline., NSErrorFailingURLStringKey=https://captive.apple.com/hotspot-detect.html, NSErrorFailingURLKey=https://captive.apple.com/hotspot-detect.html, _kCFStreamErrorDomainKey=1}
 offline., NSErrorFailingURLStringKey=https://www.apple.com/library/test/success.html, NSErrorFailingURLKey=https://www.apple.com/library/test/success.html, _kCFStreamErrorDomainKey=1}
Assertion failed: Attempt to present a Bulletin on top of another Bulletin window. Make sure to dismiss any existing bulletin before calling this method.: file BLTNBoard/BLTNItemManager.swift, line 472
2020-12-28 20:46:02.171064+0800 App[94955:3394483] Assertion failed: Attempt to present a Bulletin on top of another Bulletin window. Make sure to dismiss any existing bulletin before calling this method.: file BLTNBoard/BLTNItemManager.swift, line 472
(lldb) 

@ualch9 ualch9 reopened this Dec 28, 2020
@ualch9 ualch9 removed their assignment Jan 16, 2021
@aaronbrethorst aaronbrethorst added this to the Post-Launch milestone Jun 10, 2021
@aaronbrethorst aaronbrethorst removed this from the Post-Launch milestone Aug 8, 2021
@ualch9 ualch9 added this to the v21.3 milestone Aug 20, 2021
@ualch9
Copy link
Member Author

ualch9 commented Aug 20, 2021

This should be addressed in the next release, given that it is the top crash.

@aaronbrethorst aaronbrethorst self-assigned this Aug 20, 2021
aaronbrethorst added a commit that referenced this issue Aug 21, 2021
Fixes #330 - "Attempt to present a Bulletin on top of another Bulletin window"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants