question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fun(...) crashes in iOS for versions of Language-Ext later than 3.1.24

See original GitHub issue

I have observed, that every version later than 3.1.24 causes a crash on iOS, when creating a function using fun(...).

I’ve created a simple project to illustrate this issue here: https://github.com/1iveowl/Language-Ext-Issue-Recreate.

Run the iOS project on a real device and press the button number 2, and you will get a crash from the line var testFunc = fun((int x) => Task.Delay(TimeSpan.FromSeconds(x)));.

In the project I use Language-Ext version 3.3.20. If I change the project to use Language-Ext version 3.1.24 then the crash will no longer occur.

Note: I’ve only seen the issue on a real iOS device. If I run the project in the simulator I do not see a crash.

Might be related to #632

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
TysonMNcommented, Sep 9, 2019

So, I’ve stripped away all the partial parts of the Prelude class, trying to introduce all the static values one by one, in an effort to pinpoint when the crash happens, so that I can start creating a possible fix/workaround. This is obviously tedious work, as I have to build and run the iOS app on a device for every single try.

Don’t do this “one by one”. Cut your search space in half each time just like binary search.

Start with some set of static values such that the program crashes. Comment out half of them. Test. If the program crashes, then repeat with the set of static values still commented in. If the program did not crash, then repeat with the set of static values that were just commented out.

My guess is that you are merely searching in Prelude for some static value that extends from Record<>, which means that this issue is a special case of #632.

1reaction
1iveowlcommented, Sep 9, 2019

My mistake. The first paragraph have now been updated. I hope this clears the confusion?

Read more comments on GitHub >

github_iconTop Results From Across the Web

MTOUCH : error MT3001: Could not AOT the assembly #537
I've encountered a pretty strange issue when building on certain machines where the build will fail: MTOUCH : error MT3001: Could not AOT ......
Read more >
App Crashes in iOS 16. Unable to find crash reason
App was successfully running on iOS 15, build and pushed to appstore via Xcode 13.2. But after iOS 16 beta release, app was...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found