Comments (9)
@CJCX I'm going to need some more information. Do you have a crash log? How can I reproduce the issue.
from nullsafe.
some iphone6(plus) ios12.0 crash
log:Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSMethodSignature signatureWithObjCTypes:]: type signature is empty.'
from nullsafe.
I encountered the same crash . It crash on signature = [someClass instanceMethodSignatureForSelector:selector];
when the selector
is bytes
and the someClass
is _PFPlaceholderMulticaster
. The crash log is same as DemonH21.
from nullsafe.
met this issue as well. Logs from crashlytics:
Fatal Exception: NSInvalidArgumentException+[NSMethodSignature signatureWithObjCTypes:]: type signature is empty. Raw Text
--
0 | CoreFoundation | __exceptionPreprocess
2 | CoreFoundation | +[NSMethodSignature signatureWithObjCTypes:]
3 | BrandApp | NSNull+Convertor.m line 114-[NSNull(NullSafe) methodSignatureForSelector:]
4 | CoreFoundation | ___forwarding___
5 | CoreFoundation | _CF_forwarding_prep_0
6 | BrandedApp | RatingsModel.m line 76-[AAProductRatingsUnit initWithJSONDict:]
in my case, the json returns null, and my NSDictionary is NSNull object, then when trying to call [json[@"average"]floatValue];
inside RatingsModel.m line 76-[AAProductRatingsUnit initWithJSONDict:]
it triggers the above crash trace log.
However, it's not crashing everytime. This log is from an iPhone 8 Plus iOS 12.0.1, however, when I use an iPhone X 10.0.1 to try to reproduce, it's not crashing at all.
from nullsafe.
fix ?
from nullsafe.
I wasn't able to reproduce the issue, but I've pushed a new release that should hopefully fix it. Let me know if not.
from nullsafe.
which commit you refer as the fix for this?
from nullsafe.
from nullsafe.
I had a similar problem
NSInvalidArgumentException
+[NSMethodSignature signatureWithObjCTypes:]: type signature is empty.
0 CoreFoundation | ___exceptionPreprocess + 228
1 libobjc.A.dylib | objc_exception_throw + 56
2 CoreFoundation | +[NSMethodSignature signatureWithObjCTypes:] + 1244
3 JJBasicService | -[NSNull(NullSafe) methodSignatureForSelector:] + 940
from nullsafe.
Related Issues (20)
- XCTest/XCTest.h' file not found。why?
- Nullsafe will crash when using in background thread. HOT 2
- why not creat a method signature directly to return? HOT 4
- -[NSNull(NullSafe) methodSignatureForSelector:] (NullSafe.m:72) HOT 2
- signature = [someClass instanceMethodSignatureForSelector:selector]; HOT 5
- App run Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSURL initFileURLWithPath:]: nil string parameter' HOT 1
- 闪退 ios12 HOT 4
- 12.1.4,遇到NSNull还是会crash HOT 4
- jkhgj
- iOS13.2 Null会崩溃
- iOS12.4.1 NSNull is Crash
- app occasionally crash in ios13.3.1
- Is it necessary to look up method signature?
- null调用分类里面的链式语法方法还是会crash
- Xcode 7 build warning HOT 5
- NSDictionary *total = [NSNull null]; crash
- NSDictionary *total = [NSNull null]; use the total crash HOT 1
- How to get it work?
- how to handle “<null>” ?? HOT 1
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 nullsafe.