Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avalonia 0.9.0 With Corert Takes so long To Compile #3366

Closed
Shadow4walker opened this issue Dec 18, 2019 · 12 comments · Fixed by #3741
Closed

Avalonia 0.9.0 With Corert Takes so long To Compile #3366

Shadow4walker opened this issue Dec 18, 2019 · 12 comments · Fixed by #3741

Comments

@Shadow4walker
Copy link

hello guys this is not really an issue but i wanted to post it in here to hear your thoughts.
I'm using Corert with 'Avalonia latest Released Build' and all were good till u guys Released the 0.9.0 V Now my app Takes so much Time To Compile 'I had to Give Up after more than 2 Hours' and this was an issue with every Nightly Build and Now I'm Facing it with he latest Released 0.9.0 the 0.8.3 and before was all good, so why and what's changed in this new Released is there anyway to Update 0.8.3 to the latest version with the same Results like Earlier Releases?

@kekekeks
Copy link
Member

It's most likely a CoreRT issue. We haven't added anything that would prevent an AOT compiler from compiling the code. An issue in corert repo with a simple repro might be a better way to address this.

@Shadow4walker
Copy link
Author

dotnet/corert#7920

@Shadow4walker
Copy link
Author

Can You please Update System.Reactive to the Version 4.2.2 or 4.3.2 to Fix this issue
dotnet/reactive#1116
dotnet/corert#7920

@PJB3005
Copy link
Contributor

PJB3005 commented Jan 3, 2020

I still seem to be running into this even with System.Reactive 4.3.2.

It's compiling methods like these and it's taking absolutely forever:

         Compiling [System.Reactive]System.Reactive.Concurrency.DefaultScheduler+LongRunning.ScheduleLongRunning<ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`2<__Canon,__Canon>>>>>>>>>>>>>>>>>>(ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`2<__Canon,__Canon>>>>>>>>>>>>>>>>>,Action`2<ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`3<__Canon,__Canon,ValueTuple`2<__Canon,__Canon>>>>>>>>>>>>>>>>>,ICancelable>)...

@hez2010
Copy link
Contributor

hez2010 commented Apr 2, 2020

Finally fixed via dotnet/reactive#1177.
Avalonia needs to update its System.Reactive to the next release (4.4.x) to resolve this issue.

@phillvancejr
Copy link

Does anyone have an estimate on how long building a default template app with CoreRT shoudld take? I'm using 9.9 but still seem to be having problems building. I'm not getting past "Generative native code"

@Shadow4walker
Copy link
Author

Does anyone have an estimate on how long building a default template app with CoreRT shoudld take? I'm using 9.9 but still seem to be having problems building. I'm not getting past "Generative native code"

I'm using the same Version and it takes at maximum 5 Min just install System.Reactive Package the latest version to Your Project and it should Compile Successfully

@phillvancejr
Copy link

@Shadow4walker it was definitely the System.Reactive reference, so now I can compile, but now I'm getting a linking error:

Unhandled Exception: System.DllNotFoundException: Unable to load DLL 'libAvaloniaNative': The specified module could not be found

The libAvaloniaNative.dylib file is in the same directory as the executable any ideas?

@hez2010
Copy link
Contributor

hez2010 commented Apr 27, 2020

@phillvancejr Did you copy native dlls to the output directory?

@phillvancejr
Copy link

@hez2010 yes

@hez2010
Copy link
Contributor

hez2010 commented Apr 28, 2020

@phillvancejr I cannot repro your issue.
Here's an example project:
AvaTest.zip

@phillvancejr
Copy link

Thank you @hez2010 I'll check this out, thanks for taking the time to try to help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants