Giter Site home page Giter Site logo

crash in xcode10 and ios12 about nullsafe HOT 9 CLOSED

CJCX avatar CJCX commented on August 25, 2024
crash in xcode10 and ios12

from nullsafe.

Comments (9)

nicklockwood avatar nicklockwood commented on August 25, 2024

@CJCX I'm going to need some more information. Do you have a crash log? How can I reproduce the issue.

from nullsafe.

DemonH21 avatar DemonH21 commented on August 25, 2024

some iphone6(plus) ios12.0 crash
log:Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSMethodSignature signatureWithObjCTypes:]: type signature is empty.'

from nullsafe.

FindCrt avatar FindCrt commented on August 25, 2024

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.

liuxuan30 avatar liuxuan30 commented on August 25, 2024

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.

hongliang90 avatar hongliang90 commented on August 25, 2024

fix ?

from nullsafe.

nicklockwood avatar nicklockwood commented on August 25, 2024

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.

liuxuan30 avatar liuxuan30 commented on August 25, 2024

which commit you refer as the fix for this?

from nullsafe.

nicklockwood avatar nicklockwood commented on August 25, 2024

@liuxuan30 34637b5

from nullsafe.

shevakuilin avatar shevakuilin commented on August 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.