Comments (11)
Please check out the latest version. And feel free to open this issue if it still happens.
from material-showcase-ios.
@quangctkm9207
please reopen, it's still happening on iOS 9.3.5
App crashed when the layoutSubviews() method get called
on:
let center = calculateCenter(at: targetView, to: containerView)
Thread 1: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
from material-showcase-ios.
@osama-taha if you run on Xcode 9 try to call code of creating MaterialShowcase object in viewDidAppear() method
from material-showcase-ios.
I believe that crash is saying that either targetView or containerView is nil. Most likely the targetView is nil. In which part of the lifecycle are you trying to initialize and show the object?
from material-showcase-ios.
Currently, I have no iOS 9 device for testing.
@osama-taha : You can fork this project, test it out. a bug-fix PR is really appreciated.
from material-showcase-ios.
A similar crash just occurred on an iPhone 5c running iOS 10.3.3
please check @quangctkm9207
0 MaterialShowcase 0x1364d94 _T016MaterialShowcaseAAC9addTarget33_5CB0C9DD903070F6044860CDE57F9C26LLySC7CGPointV2at_tF + 2688
1 MaterialShowcase 0x13643a8 _T016MaterialShowcaseAAC9addTarget33_5CB0C9DD903070F6044860CDE57F9C26LLySC7CGPointV2at_tF + 148
2 MaterialShowcase 0x1363b88 _T016MaterialShowcaseAAC9initViewsyyF + 152
3 MaterialShowcase 0x1365284 _T016MaterialShowcaseAAC9configureyyFToTm + 32
4 MaterialShowcase 0x13628cc _T016MaterialShowcaseAAC4showySb8animated_yycSg10completiontF + 56
5 MaterialShowcase 0x1362f1c _T016MaterialShowcaseAAC4showySb8animated_yycSg10completiontFTo + 132
from material-showcase-ios.
I also released an app last week and my top crash is caused by this library (which I'm very thankful for, it's a beautiful way to showcas enew features). Here's my stack trace from Crashlytics:
EXC_BREAKPOINT 0x00000001011b99bc
Crashed: com.apple.main-thread
0 MaterialShowcase 0x1011b99bc MaterialShowcase.addTarget(at:) (MaterialShowcase.swift:358)
1 MaterialShowcase 0x1011b7bac MaterialShowcase.initViews() (MaterialShowcase.swift:262)
2 MaterialShowcase 0x1011b7740 MaterialShowcase.show(animated:completion:) (MaterialShowcase.swift:154)
3 MaterialShowcase 0x1011b8294 @objc MaterialShowcase.show(animated:completion:) (MaterialShowcase.swift)
4 MyApp'sName 0x100157460 closure #1 in HomeArticlesTableViewController.showAppShowcase() (HomeArticlesTableViewController.swift:162)
5 MyApp'sName 0x1002171f8 closure #1 in delayWithSeconds(_:completion:) (Extensions.swift:373)
6 MyApp'sName 0x1000efec8 _T0Ieg_IeyB_TR (ScrollableTabBarController.swift)
7 libdispatch.dylib 0x18d2569a0 _dispatch_client_callout + 16
8 libdispatch.dylib 0x18d263604 _dispatch_continuation_pop + 448
9 libdispatch.dylib 0x18d26fc1c _dispatch_source_latch_and_call + 204
10 libdispatch.dylib 0x18d2588a0 _dispatch_source_invoke + 804
11 libdispatch.dylib 0x18d25b4a0 _dispatch_main_queue_callback_4CF + 668
12 CoreFoundation 0x18e34d0c8 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
13 CoreFoundation 0x18e34ace4 __CFRunLoopRun + 1572
14 CoreFoundation 0x18e27ada4 CFRunLoopRunSpecific + 424
15 GraphicsServices 0x18fce5074 GSEventRunModal + 100
16 UIKit 0x194535c9c UIApplicationMain + 208
17 MyApp'sName 0x1000e19b4 main (BTree.swift:17)
18 libdyld.dylib 0x18d28959c start + 4
in my delayWithSeconds, I just call the showAppShowcase function which presents a showcase on a CollectionViewCell.
from material-showcase-ios.
@L4grange : Did you check on the development stage?
from material-showcase-ios.
@quangctkm9207 Could you please clarify what you mean?
On my test devices while I I was developing the app, I never saw this crash, it only appeared when I released to the public.
from material-showcase-ios.
@L4grange : I see. So that only happens on user's devices but not on your testing one.
Do you know which iOS version of the user's devices?
from material-showcase-ios.
@quangctkm9207 Thanks for replying! :)
Yes, all of the crashes are on iOS 10.0.0 to 10.3.3, no crashes on iOS 9, 11 or 12. I'll try running the app on simulators of iOS 10 and report back.
from material-showcase-ios.
Related Issues (20)
- Incorrect width primaryText and secondaryText HOT 1
- Tabar Item not showing when showcase is showing HOT 3
- button target make constrains issue HOT 1
- 'keyWindow' deprecated in iOS 13.0
- If TargetView's frame is scaled, it shows showcase without considering scaled factor
- Use causes 'MaterialCards+Theming' to not work
- Blank Showcase HOT 1
- Background Mask not working on 0.7.2 and above HOT 1
- multiple showcases shown in an sequence
- multiple showcases shown in an sequence HOT 2
- Showcase view will appear once HOT 1
- Showcase view not dismissing if we push a view controller when it is displaying
- What if we have collectionview instead of tableview?
- Dismiss MaterialShowcaseSequence programmatically
- SwiftUI using HOT 6
- MaterialShowcase.swift line 119 MaterialShowcase.setTargetView(view:)
- Text width issue HOT 4
- SwiftUI support
- MaterialShowcase/MaterialShowcase.swift:371: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value
- Privacy Manifest
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from material-showcase-ios.