-
Current behaviorNew project created via CLI on linux, .net 5 appears to have issues running. Expected behaviorJust a simple startup of the default project template. How to reproduce it (as minimally and precisely as possible)
Anything else we need to know?Everything was performed command line, but it's worth noting that I intend on using Rider on linux. I'm running on pop!_os (Ubuntu) 20.10 with snaps enabled. Using the official .net core snap. |
Beta Was this translation helpful? Give feedback.
Replies: 27 comments
-
Thanks for trying Uno! The message in question explain that you need to have the .NET Core 3.1 SDK installed to get the project compiled. You have two choices, either:
|
Beta Was this translation helpful? Give feedback.
-
Updated to
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the update. It looks like you're missing the installation of GTK3. Did you install it through apt ? |
Beta Was this translation helpful? Give feedback.
-
This version of pop!_os uses gnome 3.38.1. Safe to assume I have GTK? 😆
|
Beta Was this translation helpful? Give feedback.
-
Thanks! What's the result of |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
We'll search for the resolution our side, but in the meantime could you try installing the GTK dev package as well ? Could be ubuntu 20.04 related.
|
Beta Was this translation helpful? Give feedback.
-
Installed, and then got the same:
|
Beta Was this translation helpful? Give feedback.
-
@atrauzzi Could you try to use .NET without snaps? As the pop!_os is derived from Ubuntu following this here (https://docs.microsoft.com/dotnet/core/install/linux-ubuntu#2010-) shouldn't cause any issues. Snaps use a kind of containerization, I'm not sure if this is the cause but probably inside the snap container you don't have access to the host GTK dependencies. Let me know if without snaps this works. |
Beta Was this translation helpful? Give feedback.
-
I recently moved back to Ubuntu 20.10, however I'm experiencing the same issue, with |
Beta Was this translation helpful? Give feedback.
-
@atrauzzi interesting, and the path of the lib is the same from here? I'm using the Ubuntu 21.04 without issues so far. I will try this behavior with Ubuntu 20.10 in a Docker container to see if I can reproduce |
Beta Was this translation helpful? Give feedback.
-
This look okay to you? |
Beta Was this translation helpful? Give feedback.
-
@atrauzzi could you also share the return from and also from thanks |
Beta Was this translation helpful? Give feedback.
-
I can't reproduce on my side using Ubuntu 20.10 (using Docker container and remote X Server) 🤷♂️ |
Beta Was this translation helpful? Give feedback.
-
Here's the output from those two commands:
|
Beta Was this translation helpful? Give feedback.
-
@atrauzzi thanks for sharing the information. I was suspecting the case that some dependency on The next alternative would be some dependence on the gtk dependencies not being resolved, but I really think this is unlikely to be true. Could you do another test please? Publish the project with:
After that run the following command with
And sorry for asking for so many tests, I'm trying to understand the scenario since I couldn't reproduce on my side. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Oh I don't mind at all, this is very encouraging and I'm sure I'll learn plenty here, haha.
|
Beta Was this translation helpful? Give feedback.
-
@atrauzzi thanks, as expected the issue is not in the
Ok, so the next step will be to run the
After that share with me the |
Beta Was this translation helpful? Give feedback.
-
It looks like it segfaults at the end of the file. |
Beta Was this translation helpful? Give feedback.
-
@atrauzzi yeah now it's complaining that the system doesn't have the ICU packages, please check if you have installed the:
|
Beta Was this translation helpful? Give feedback.
-
@atrauzzi ok, 🤷♂️ it is also there, it's strange let me analyze the strace more calmly. |
Beta Was this translation helpful? Give feedback.
-
@atrauzzi interesting, it finds the library, but is also looking inside
And apparently your system is looking for libraries first on
The process is turning into a mixed mess of |
Beta Was this translation helpful? Give feedback.
-
Since it seems Snap related, here's an Uno app built using Gtk: https://github.com/unoplatform/calculator/blob/uno/build/snap/snapcraft.yaml
|
Beta Was this translation helpful? Give feedback.
-
I used to use the dotnet snap, but I switched to the regular deb installation. Any chance there's maybe some lingering state somewhere? |
Beta Was this translation helpful? Give feedback.
-
I think if you ran |
Beta Was this translation helpful? Give feedback.
-
Yeah, so it looks like having both was messing things up. I removed the snap, and reinstalled dotnet, and things are working again. Thanks for the help debugging, guys! |
Beta Was this translation helpful? Give feedback.
Yeah, so it looks like having both was messing things up. I removed the snap, and reinstalled dotnet, and things are working again. Thanks for the help debugging, guys!