mxgmn / MarkovJunior

Probabilistic language based on pattern matching and constraint propagation, 153 examples
MIT License
7.49k stars 316 forks source link

How to run on Linux #12

Closed gabrielelibardi closed 2 years ago

gabrielelibardi commented 2 years ago

I run dotnet run --configuration Release MarkovJunior.csproj but nothing happens, what do display the GUI?

mxgmn commented 2 years ago

Nothing at all, no error message?

gabrielelibardi commented 2 years ago

Right, nothing, no error message. It takes maybe a second to run so it is doing something..

mxgmn commented 2 years ago

Does it create the output folder?

gabrielelibardi commented 2 years ago

No

mxgmn commented 2 years ago

What happens if you try to build a hello world C# program?

gabrielelibardi commented 2 years ago

The hello world example from your link seems to work fine.

gabrielelibardi commented 2 years ago

Which .NET core version did you use?

mxgmn commented 2 years ago

It's probably the System.Drawing thing again, because what else could it be. It just doesn't print the error message for some reason. Try the solutions in this comment, try first to build with net5.0.

gabrielelibardi commented 2 years ago

Actually the problem was that I had installed .NET using snap which apparently has problems link I reinstalled from the official site following this and it now works (throws some other error but the app is running and it creates the /outputdir).

MCSH commented 2 years ago

This is the entire log I get when running:

Apartemazements > P = 16
CONTRADICTION on try 0 with 142 observations
wfc found a good seed 1643779998 on try 1 with 158 observations
DONE
wfc found a good seed 376360877 on try 0 with 155 observations
DONE
CONTRADICTION on try 0 with 149 observations
CONTRADICTION on try 1 with 124 observations
wfc found a good seed 1346509966 on try 2 with 154 observations
DONE
CONTRADICTION on try 0 with 151 observations
wfc found a good seed 1667801283 on try 1 with 143 observations
DONE
Apartemazements > P = 16
CONTRADICTION on try 0 with 134 observations
CONTRADICTION on try 1 with 101 observations
CONTRADICTION on try 2 with 116 observations
wfc found a good seed 1814048741 on try 3 with 154 observations
Unhandled exception. System.TypeInitializationException: The type initializer for 'GUI' threw an exception.
 ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at GUI..cctor() in /home/sajjad/src/git/MarkovJunior/source/GUI.cs:line 30
   --- End of inner exception stack trace ---
   at GUI.Draw(String name, Branch root, Branch current, Int32[] bitmap, Int32 WIDTH, Int32 HEIGHT, Dictionary`2 palette)
   at Program.Main() in /home/sajjad/src/git/MarkovJunior/source/Program.cs:line 67
mxgmn commented 2 years ago

@MCSH See #9