sblanchard
Topic Author
Posts: 2
Joined: 05 Jan 2022, 18:05

Noesis crashes when application targets Unity/UWP

21 Oct 2022, 17:27

Hello,

If I create a very simple Noesis app (i.e. the Hello World example), I can build and deploy it to the iPad and it works like a charm.
But if I do the same for the Windows desktop UWP app, the app crashes on launch.
I'm using Unity 2020.3 / Noesis 3.1.2 / x64

No log on Unity but when i start the app in debug mode in VS I get this exception from this code:

Exception thrown at 0x00007FFA97FDC83D (Noesis.dll) in TestNoesis2019.exe: 0xC0000005: Access violation reading location 0x0000000000000000.

// Native function invocation
#if FORCE_PINVOKE_INTERNAL || FORCE_PINVOKE_Noesis_INTERNAL
reinterpret_cast<PInvokeFunc>(Noesis_SetFontFallbacks)(____familyNames0_marshaled, ___count1);
#else
il2cppPInvokeFunc(____familyNames0_marshaled, ___count1);
#endif

// Marshaling cleanup of parameter '___familyNames0' native representation
if (____familyNames0_marshaled != NULL)
{
const il2cpp_array_size_t ____familyNames0_marshaled_CleanupLoopCount = (___familyNames0 != NULL) ? (___familyNames0)->max_length : 0;
for (int32_t i = 0; i < ARRAY_LENGTH_AS_INT32(____familyNames0_marshaled_CleanupLoopCount); i++)
{
il2cpp_codegen_marshal_free((____familyNames0_marshaled));
(____familyNames0_marshaled) = NULL;
}
il2cpp_codegen_marshal_free(____familyNames0_marshaled);
____familyNames0_marshaled = NULL;
}

Have a nice day :)
 
User avatar
sfernandez
Site Admin
Posts: 3364
Joined: 22 Dec 2011, 19:20

Re: Noesis crashes when application targets Unity/UWP

24 Oct 2022, 13:06

Hi, I just did a test with HelloWorld sample in Unity 2022 in UWP and the application works without crashing. Can you try with a newer version of Unity, it might be a problem of the IL2CPP generated code, something that Unity already fixed.
 
sblanchard
Topic Author
Posts: 2
Joined: 05 Jan 2022, 18:05

Re: Noesis crashes when application targets Unity/UWP

24 Oct 2022, 18:02

Hello sfernandez!

Thanks a lot for your help :)

Unfortunaltly I get the same crash on Unity 2022 / UWP / Win11 (NoesisGUI-Unity-3.1.5-Indie) with a fresh project containing the Hello World sample.
I get the same error on debug session than previously. The app crash also after a deployment in Master.

Could you send me the Unity project of your app to check if it run correctly on my machine ?
I can do the same with my project if you need more information.
 
User avatar
sfernandez
Site Admin
Posts: 3364
Joined: 22 Dec 2011, 19:20

Re: Noesis crashes when application targets Unity/UWP

26 Oct 2022, 11:47

You can download from here the Unity project I used to test it.
Also included the generated VS solution under the Deploys folder.

Who is online

Users browsing this forum: Bing [Bot] and 1 guest