Giter VIP home page Giter VIP logo

Comments (20)

stek29 avatar stek29 commented on August 14, 2024

How's this memory leak?
Also, is admob_key_regex actually initialized somewhere?

from electra.

liuxuan30 avatar liuxuan30 commented on August 14, 2024

oh, sorry, I missed to add that. will update the question.
reply here:
Test is a singleton:

+ (instancetype)defaultManager {
	static AdManager *_instance;
	static dispatch_once_t once;
	dispatch_once(&once, ^{
		_instance = [[Test alloc] init];
	});
	return _instance;
}

- (instancetype)init {
	self = [super init];
    if (self) {
        testArray = [NSMutableSet set];
        admob_key_regex = [NSRegularExpression regularExpressionWithPattern:@"^(ca-app-pub)-[0-9]{16}/[0-9]{10}"
	                                                                options:NSRegularExpressionCaseInsensitive
	                                                                  error:nil];

    }
	return self;
}

from electra.

liuxuan30 avatar liuxuan30 commented on August 14, 2024

My test code works on iOS 10 with substrate; I just want to test it on iOS 11 and find this issue.

Because everytime I run it, the object class type is changed, it can be UIActivityContinuationManager, or __CFData, or __NSArrayM, so every time it will crash, as these classes' object has no method: firstMatchInString:options:range:

For example, a live debug session said:

2018-01-20 16:34:38.164117+0800 BannerExample[1012:59623] ******AdManager****** _logos_method$_ungrouped$GADBannerView$setAdUnitID$:256 <AdMob Banner> unit id:ca-app-pub-3940256099942544/2934735716
2018-01-20 16:34:38.164202+0800 BannerExample[1012:59623] -[__NSCFString firstMatchInString:options:range:]: unrecognized selector sent to instance 0x1c4056800

isn't 0x1c4056800 suppoed to be NSRegularExpression

from electra.

stek29 avatar stek29 commented on August 14, 2024

@liuxuan30 Can you please send me your test app & tweak?

from electra.

liuxuan30 avatar liuxuan30 commented on August 14, 2024

Let me try to wrap it up, as my tweak is huge, I need to isolate it.

from electra.

stek29 avatar stek29 commented on August 14, 2024

@liuxuan30 Sure, minimal isolated reproducible case would be cool.

from electra.

liuxuan30 avatar liuxuan30 commented on August 14, 2024

tweak: https://pan.baidu.com/s/1c37nr7i
app: https://pan.baidu.com/s/1dG65rDv
expired in 7 days. Hope the speed work for you.

from electra.

liuxuan30 avatar liuxuan30 commented on August 14, 2024

if the app is slow to download, just go to google's page download one

from electra.

liuxuan30 avatar liuxuan30 commented on August 14, 2024

I'm using b6-3. Simply install the tweak, and launch the app and wait to crash in viewDidLoad

from electra.

liuxuan30 avatar liuxuan30 commented on August 14, 2024

@stek29 any idea for this crash?

from electra.

stek29 avatar stek29 commented on August 14, 2024

@liuxuan30 I was unable to download those files :\

from electra.

liuxuan30 avatar liuxuan30 commented on August 14, 2024

ehhhh.. I will try google drive then

from electra.

liuxuan30 avatar liuxuan30 commented on August 14, 2024

test app: https://drive.google.com/open?id=1XJfFZUeC2C5NgwUIo_zU8F2qhdQgG1aH
tweak: https://drive.google.com/open?id=1pY4k2faLVXUK2J5IOJwWH1R3vzhqFA3G

let me know if it works for you

from electra.

Animus120 avatar Animus120 commented on August 14, 2024

I'm sorry @stek29 I managed to download it but didn't know if you still need it.

from electra.

liuxuan30 avatar liuxuan30 commented on August 14, 2024

@parrotgeek1 you met the same issue?

from electra.

liuxuan30 avatar liuxuan30 commented on August 14, 2024

@stek29 @coolstar just to raise hand again, will this be fixed in public release?

from electra.

nullpixel avatar nullpixel commented on August 14, 2024

I can’t reproduce this

from electra.

liuxuan30 avatar liuxuan30 commented on August 14, 2024

@nullpixel you mean fixed? May I ask what version of electra you cannot reproduce? Thanks

from electra.

nullpixel avatar nullpixel commented on August 14, 2024

I tried on the latest cydia branch, maybe my test tweak isn’t sufficient? Did you send a reproduction tweak or?

from electra.

liuxuan30 avatar liuxuan30 commented on August 14, 2024

yes, see #49 (comment)
I uploaded both test app and tweak on google drive. You might also want check my other comments with code snippets and logs about the issue.

from electra.

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.