Deviland
Topic Author
Posts: 2
Joined: 03 Oct 2019, 19:53

Crash when initing App on macos [Managed SDK version 2.2.5]

03 Oct 2019, 20:31

Hello.

I'm trying to run the sample projects from the Managed SDK version 2.2.5 on Visual Studio 2019 for macos but they crash instantly when initing the App with the following exception:
Could not set up parent class, due to: Generic type definition failed to init, due to: VTable setup of type Noesis.UICollection`1[T] failed assembly:/NoesisGUI-ManagedSDK-2.2.5/Src/Samples/UserControl/Projects/osx/bin/Debug/UserControl.app/Contents/MonoBundle/Noesis.GUI.dll type:UICollection`1 member:(null) assembly:/NoesisGUI-ManagedSDK-2.2.5/Src/Samples/UserControl/Projects/osx/bin/Debug/UserControl.app/Contents/MonoBundle/Noesis.GUI.dll type:UICollection`1 member:(null)

Any solution for this problem?

Thank you.
 
User avatar
hcpizzi
Site Admin
Posts: 321
Joined: 09 Feb 2012, 12:40

Re: Crash when initing App on macos [Managed SDK version 2.2.5]

04 Oct 2019, 17:05

Hi Deviland,

Could you provide us with the following details?
- Visual Studio version
- Xamarin.Mac version
- XCode version
- OS X version
- The project you're trying to run

Thanks
Last edited by hcpizzi on 04 Oct 2019, 18:27, edited 1 time in total.
 
User avatar
hcpizzi
Site Admin
Posts: 321
Joined: 09 Feb 2012, 12:40

Re: Crash when initing App on macos [Managed SDK version 2.2.5]

04 Oct 2019, 17:41

A quick update. I just tested with Visual Studio for Mac version 8.3.1 (build 18) and the Xamarin.Mac version 6.2.0.42 and I'm having the same issue. I wasn't seeing it before upgrading. Let me see if I can figure out what the problem is.
 
User avatar
hcpizzi
Site Admin
Posts: 321
Joined: 09 Feb 2012, 12:40

Re: Crash when initing App on macos [Managed SDK version 2.2.5]

04 Oct 2019, 18:22

Another update: Downgrading Xamarin.Mac to version 5.8.0.0 seems to avoid the issue. As a workaround, until we figure out if the problem is on our side or theirs, you can try downgrading.

I already had it installed, so all I had to do was to change the symlink /Library/Frameworks/Xamarin.Mac.framework/Versions/Current to point to /Library/Frameworks/Xamarin.Mac.framework/Versions/5.8.0.0 instead of to /Library/Frameworks/Xamarin.Mac.framework/Versions/6.2.0.42

Can you confirm you're on the 6.2 version of Xamarin.Mac too?

Thanks
 
Deviland
Topic Author
Posts: 2
Joined: 03 Oct 2019, 19:53

Re: Crash when initing App on macos [Managed SDK version 2.2.5]

05 Oct 2019, 01:21

Hello, thank you for the response.

Unfortunately right now I can't test with an older version of Xamarin.Mac. I will wait for an update to this library that corrects the problem and then try again.
If it helps, here are the versions I'm using:
Visual Studio 8.3.1 (build 18)
Xamarin.Mac 6.2.0.42
XCode 11.0 (11A420a)
macOS 10.14.6

The problem is happening with every single sample program.
 
User avatar
hcpizzi
Site Admin
Posts: 321
Joined: 09 Feb 2012, 12:40

Re: Crash when initing App on macos [Managed SDK version 2.2.5]

07 Oct 2019, 20:39

Hi Deviland,

I'm glad to let you know we've figured out the problem and it will be fixed in the next release. It's a problem with the implementation of IList<T> in UICollection. For some reason the latest version of Xamarin.Mac doesn't like the way it's implemented, even though it doesn't seem to be a problem elsewhere. But we've improved the code and now it works without issue.

I'll let you know once the new nugets are up.

Sorry for the inconvenience.

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot], jsantos and 49 guests