-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Thread 1: EXC_BAD_ACCESS (code=2, address=0x16b7eff30) - in function Cell.update() #1447
Comments
Even a small pushrow like the one below is causing the error.
|
I have exactly the same issue, works fine on iPhone X simulator but not on physical device. |
Thanks for letting me know... so it isn't iOS firmware related. |
With Xcode 9.3 beta 4 and iOS 11.3 beta 4 on my physical iPhone X the problem is the same. The simulator works fine. Running my app on my iPad with iOS 11.3 beta 4 also works fine. |
Hey Guys! Can anyone take a look at this ? I can provide some help if needed. |
Yes please we are completely stuck with this problem :( |
@mtnbarreto So, quick fix for users would be to move setup of such properties somewhere after |
Thanks, but I don't know what you propse?! Even this pushrow crashes: <<< PushRow<String>() {
$0.value = "Test"
$0.title = "Test"
$0.options = ["Test 1","Test 2"]
$0.tag = "test"
} There is no update( ) event in there. Or are you asking me to add in one like so: <<< PushRow<String>() {
.cellUpdate { cell, row in
if !row.isValid {
cell.titleLabel?.textColor = .red } }
$0.value = "Test"
$0.title = "Test"
$0.options = ["Test 1","Test 2"]
$0.tag = "test"
} Please advise. |
@arakweker I am not sure about suggested So, yes, could you try to move your initialisation in cellUpdate callback parameter? As well, you can just rollback a Eureka to 4.0.1. I think there wouldn't be such issue. |
How do I roll back to 4.01? Downloading dependencies -> Using Charts (3.0.5)
|
@arakweker Have you missed a . in 4.01 ? Should be 4.0.1 |
Thanks... what a difference a . makes! Putting cellUpdate 'on top' (see above) generates an error: Reference to member 'cellSetup' cannot be resolved without a contextual type So, what do you mean with: So, quick fix for users would be to move setup of such properties somewhere after update() event of lifecycle. |
What do I have to change here to get it working? <<< PushRow() {
$0.value = "Test"
$0.title = "Test"
$0.options = ["Test 1","Test 2"]
$0.tag = "test"
} |
Oh, and rolling back to 4.0.1 means also I get the compiler error back: Type 'Section' does not conform to protocol 'RangeReplaceableCollection' So that doesn't make sense. |
@arakweker |
Whatever I do I get a compiler error with 4.0.1 (see screendump). That error goes away when I update to 4.1.0. So what are you asking me? I really don't understand.
Guess I better wait for a new version. . |
@arakweker seems, we might have different kinds of issues Could you try, please, on Eureka 4.0.1 the last resort like that:
|
Nope doesn't compile with 4.0.1. I get the Swift Compiler error (see screendump above). |
I've Xcode 9.3 beta 4, so I guess Eureka 4.1.0 is the minumum version to get rid of the compiler error. |
@arakweker I am sorry, there was a misspell in version number, could you run again that snippet, please, with Eureka 4.1.0? Thank you in advance |
Wait, but you didn't add row to the section and form :-) So, you can put |
ok... if I literally do what you ask me, the code is: <<< = PushRow().cellUpdate { (cell, row) in That is giving errors: 'Expected expression after operator' and 'Cannot convert value of type '(_) -> ()' to expected argument type 'String?' |
@arakweker ok, let's fix this, could you try that(remove underscore), please, <<< PushRow_<String>_().cellUpdate { (cell, row) in ? |
Ok, thanks for your patience. That is compiling ok and running on the simulator ok. |
If I tether my physical iPhone X to my Mac, the error I get is: 'Thread 1: EXC_BAD_ACCESS (code=2, address=0x16b0b3f30)' and it occurs in Update( ) - see screen. That is why I called this issue ' Thread 1: EXC_BAD_ACCESS (code=2, address=0x16b7eff30) - in function Cell.update() ' in the first place... |
And now Begoodi can react again with his message: |
@arakweker Happy to hear, that code was compiled and run 👍 Could you give me a a full stacktrace for that screen? I suggesting, that there is a long recursive call. |
On my side, I tried with the simpliest pushrow I could make. |
@mtnbarreto root of the call is at ListCheckRow.swift:48, setting the tint color. |
So, that is caused 7931948 |
It makes sense to me that if But why would that happen only on iPhone X? To try and see if that is really the error, could somebody try adding a private variable in Cell to store the previous |
Let's remove 7931948 for now. Could anyone make a pull request with the fix? Thanks |
I don't get it. I don't use tintColorDidChange in my form? |
I'm seeing this error (I think) in reported crashes, but unable to reproduce myself (even on a physical iPhone X). I'm also not using I have an enormous stack trace which repeats the following 10 lines over and over:
|
I tried iOS 11.3 beta 5. Problem persists. |
Is there other similar tools available to replace Eureka ? |
@mtnbarreto I've made a pull request reverting 7931948 as you suggested |
merged! We will release a new version containing the fix. |
So the textColor can be updated if it uses the tintColor, which a lot of cells do. It appears that the tintColor is currently used before the cell is added to the window, so if the tintColor has been customised on the window the cells aren’t updated. Calling row.updateCell() seems like the best thing to call, as that should encompass all code (built-in and custom) that uses the tintColor.
After 4.1.1 everything is working fine on my physical iPhone X. Thanks for the support! |
I'm sorry about all the trouble my contribution caused! I've seen the same crash now in my crash reports, although I haven't been able to personally reproduce it. I believe the issue is the
I have updated and resubmitted my PR with some changes, described therein. Perhaps people who experienced this issue would be able to test the branch my PR is from in order to confirm that this issue does not resurface? |
Thread 1: EXC_BAD_ACCESS (code=2, address=0x103eec110) while (cur) { |
The combination Xcode 9.3 beta 3 and Eureka 4.1.0 is not working properly on my physical iPhone X device with iOS 11.3 beta 3. The simulator (for iPhone X) is working fine however.
I'm getting an error Thread 1: EXC_BAD_ACCESS (code=2, address=0x16b7eff30) when I click on a Pushrow. A Textrow or Daterow does work normally.
The branch with the latest beta was working fine, so I tried to go back. But that is not working any more:
[!] Error installing Eureka
[!] Failed to download 'Eureka'
The text was updated successfully, but these errors were encountered: