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

Picker crashes on iOS 8.3 XCode 7.1 beta 3 #727

Open
frakman1 opened this issue Oct 16, 2015 · 5 comments
Open

Picker crashes on iOS 8.3 XCode 7.1 beta 3 #727

frakman1 opened this issue Oct 16, 2015 · 5 comments

Comments

@frakman1
Copy link

App crashes when I select Picker from main page.
Crashes on both Simulator and iPhone 5.

Output log:
3648623971_Portrait_iPhone-Simple-Pad_Default
2015-10-16 17:49:43.169 QuickDialogExample[16961:908158] [iKeywi 3] iPhone-Portrait-QWERTY
2015-10-16 17:49:44.408 QuickDialogExample[16961:908158] [iKeywi 3] iPhone-Portrait-QWERTY
2015-10-16 17:49:46.323 QuickDialogExample[16961:908158] [iKeywi 3] iPhone-Portrait-QWERTY
2015-10-16 17:49:47.639 QuickDialogExample[16961:908158] [iKeywi 3] iPhone-Portrait-QWERTY
2015-10-16 17:49:55.957 QuickDialogExample[16961:908158] [iKeywi 3] iPhone-Portrait-QWERTY
2015-10-16 17:50:13.294 QuickDialogExample[16961:908158] Bool selected!
2015-10-16 17:50:13.528 QuickDialogExample[16961:908158] Bool selected!
2015-10-16 17:50:31.551 QuickDialogExample[16961:908158] [iKeywi 3] iPhone-Portrait-QWERTY
2015-10-16 17:50:32.968 QuickDialogExample[16961:908158] [iKeywi 3] iPhone-Portrait-QWERTY
2015-10-16 17:50:38.833 QuickDialogExample[16961:908158] selected index: 1
2015-10-16 17:50:39.250 QuickDialogExample[16961:908158] selected index: 2
2015-10-16 17:50:39.566 QuickDialogExample[16961:908158] selected index: 0
(lldb) bt
warning: could not load any Objective-C class information. This will significantly reduce the quality of type information available.

  • thread Does it work only with iOS 5? #1: tid = 0xddb7e, 0x3928b6d8 libobjc.A.dylibobjc_storeStrong, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=2, address=0x159fd8) frame #0: 0x3928b6d8 libobjc.A.dylibobjc_storeStrong
    • frame Does it work only with iOS 5? #1: 0x000b0c1c QuickDialogExample-[QPickerTableViewCell initWithStyle:reuseIdentifier:](self=0x1450aab0, _cmd="initWithStyle:reuseIdentifier:", style=UITableViewCellStyleValue1, reuseIdentifier=0x00000000) + 32 at QPickerTableViewCell.m:20 frame #2: 0x000b0c50 QuickDialogExample-[QPickerTableViewCell initWithStyle:reuseIdentifier:](self=0x00000000, _cmd="initWithStyle:reuseIdentifier:", style=UITableViewCellStyleValue1, reuseIdentifier=0x00103998) + 84 at QPickerTableViewCell.m:22
      frame Added loading from a plist #3: 0x000b0c50 QuickDialogExample-[QPickerTableViewCell initWithStyle:reuseIdentifier:](self=0x00000000, _cmd="initWithStyle:reuseIdentifier:", style=UITableViewCellStyleValue1, reuseIdentifier=0x00103998) + 84 at QPickerTableViewCell.m:22 frame #4: 0x000b0c50 QuickDialogExample-[QPickerTableViewCell initWithStyle:reuseIdentifier:](self=0x00000000, _cmd="initWithStyle:reuseIdentifier:", style=UITableViewCellStyleValue1, reuseIdentifier=0x00103998) + 84 at QPickerTableViewCell.m:22
@ghost
Copy link

ghost commented Oct 26, 2015

Looks similar to a problem I just ran in to. The initializer for QPickerTableViewCell calls itself instead of super. I have a super-simple pull request in to fix it: #729

@frakman1
Copy link
Author

Thank you Adam! That worked nicely.

I'm just curious; How did you know it was the 'super' and not the 'self' ? How would it have worked before and why does it not work now? In other words, what changed or was it always broken?

@ghost
Copy link

ghost commented Oct 30, 2015

Calling super instead of self is simply a matter of looking at the method signature. The initializer was calling itself, which results in an infinite loop. Calling super is what you'd usually see in an initializer like this, so it's likely it was just a typo.

I don't know how or why it worked before. It's possible that the code used a different initializer in the past.

@frakman1
Copy link
Author

Ah I see. Thank you for clearing that up. Have you ever used FXForms? It's another form building template that I am currently using.
https://github.com/nicklockwood/FXForms/

@ghost
Copy link

ghost commented Oct 30, 2015

No, haven't seen it. Looks interesting, though.

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

1 participant