Create object that inherit from Record<T> crashes on iOS on Language-Ext versions later than 3.1.24
See original GitHub issueI 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:
- Created 4 years ago
- Comments:8 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@bender2k14 fair point.
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.