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

QPickerElement generates infinite loop #745

Open
francois-roget opened this issue Dec 20, 2016 · 1 comment
Open

QPickerElement generates infinite loop #745

francois-roget opened this issue Dec 20, 2016 · 1 comment

Comments

@francois-roget
Copy link

Steps performed

I try to include a QPickerElement in my screen.
QPickerElement *q = [[QPickerElement alloc] initWithTitle:@"Test" items:[NSArray arrayWithObject:MAX_DISTS] value:@"150"]; q.key =@"max_dist"; [section addElement:q];

Seen result

The application does not respond for 5-10 sec then I get a BAD_ACCESS on QPickerTableViewCell:20.
We can see that there is a recursive call to the same method on line 22.

In the stack trace, you can see about 130 000 calls to the same method

@karlozm
Copy link

karlozm commented Mar 22, 2017

This is caused by QPickerTableViewCell's initialization, it's calling self instead of super

if ((self = [self initWithStyle:style reuseIdentifier:reuseIdentifier]))

should be

if ((self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants