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.

Create object that inherit from Record<T> crashes on iOS on Language-Ext versions 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 an object that inherits from Record<T>.

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 1 , and you will get a SIGSEGV native crash from the line var objA = new ObjectA<object>(new object());.

ObjectA is defined as:

public sealed class ObjectA<T> : Record<ObjectA<T>>
    {
        public T Obj { get; }

        public ObjectA(T obj)
        {
            Obj = obj;
        }
    }

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 #633

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
1iveowlcommented, Sep 8, 2019

@bender2k14 fair point.

0reactions
1iveowlcommented, Dec 8, 2019

Making sure that the linker works its magic on LanguageExt.Core fixed the issue as outlined here: https://github.com/louthy/language-ext/issues/537#issuecomment-451542942

It seems that this could very well be the explanation: https://github.com/louthy/language-ext/issues/537#issuecomment-460711504.

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 after deleting list item from CoreData
My iOS 15.5 SwiftUI app crashes on iPhone 11 simulator. After reloading the app the CoreData entities have been successfully deleted.
Read more >
Crash when releasing object created using initFromFile ...
What you're doing is to allocate a DateTracker object ( [DateTracker alloc] ), then create a new DateTracker object (by -decodeObjectForKey: ) ...
Read more >
LanguageExt - who uses in production? What do you think?
Hi everybody,. LanguageExt is a base class library that makes functional programming in C# more comfortable. It delivers base classes for ...
Read more >
Functional Programming made easy in C# with Language-ext
According to the creator of the lib Paul Louth : It's a library that uses and abuses the features of C# to provide...
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