Menu

Program not running after installing

Jose
2017-08-11
2019-03-25
  • Jose

    Jose - 2017-08-11

    Hello. First of all, I would like to thank you for the awesome work that is DWSIM and for it being free (both as in freedom and as in price). I've been using it for a short time and i think it's an amazing work.

    OK. I used version 4 on Windows and worked fine. I tried to use it under linux and failed. When I saw that there was a new version on the way I decided to wait instead of troubleshooting. Now that the version is available, I tried to install on Ubuntu 16.04 (MATE version). Installation went fine and without problem. I run dwsim on console and the program opens, but when I pick "new simulation" (or when I try to open the examples, the program crashes. This is the message displayed on the console after the program closing:

    Unhandled Exception:
    System.ArgumentNullException: Value cannot be null.
    Parameter name: obj
    at SkiaSharp.SKObject.Dispose (Boolean disposing) <0xaff8bc08 + 0x00047> in <filename unknown="">:0
    at SkiaSharp.SKBitmap.Dispose (Boolean disposing) <0xaff8ba78 + 0x00053> in <filename unknown="">:0
    at SkiaSharp.SKNativeObject.Finalize () <0xaff8ba40 + 0x00018> in <filename unknown="">:0

    I just opened the .deb file and installation was handled by GDebi. I checked the mono packages and they were version 4 something. On the mono website, files are version 5 something. Could this be the problem? the monowebsite has a repository for ubuntu. If I add this repository and run the deb file again, will Ubuntu take the mono dependencies from there?

    Also, I'd like to suggest something that some software developers do sometimes for cross-platform usage: create a virtual machine in virtualbox, get a working installation and then make the virtual hard drive available for download. This way, there are no problems with dependencies and the like. Maybe if this is in your possibilities, it would be nice to have.

    Anyway, thanks for your work. I'd prefer to run DWSIM on linux since it would be the only app that would make me use Windows at the moment. Haven't tried version 5, but version 4 worked without any problem there.

    Cheers
    -José.

     
  • Daniel Medeiros

    Daniel Medeiros - 2017-08-11

    Hi Jose,

    Mono is already on version 5.0.1, which was the one I've used in my tests. You could try updating it before running DWSIM again.

    If it still doesn't work, then you'll have to compile the SkiaSharp library for yourself, replacing the one which ships with DWSIM. After compiling, copy the native library (libSkiaSharp.so) to DWSIM's installation directory (which should be /usr/local/lib/dwsim).

    Install the Git library (sudo apt-get install git) and follow these instructions to compile the SkiaSharp library: https://github.com/mono/SkiaSharp/wiki/Building-on-Linux

    Let me know if it works.
    Daniel

     
  • Daniel Medeiros

    Daniel Medeiros - 2017-08-11

    I'll work on the virtual machine and make it available for download, thanks for the suggestion.

     
  • Jose

    Jose - 2017-08-14

    Hello Daniel.

    Updates after trying installation over the weekend:

    1. First, the dumb thing: I tried the installation of Mono 5 and didn't get it working. Instructions for Skia library didn't work either. I decided to try to compile DWSIM myself from source code so went to the source page... to find it is supported for 64 bit systems. I was trying to install in a 32-bit system! I hadn't seen anywhere that 32bit were not suported. I am trying it now on another PC with a virtual 64 bit machine, and seems to be working fine, except that Ubuntu 16.04 includes Mono 4 something on repositories. This didn't work. But after installing Mono 5 the program was installed and is now running succesfuly (except for one thing I mention in point 3). I don't know if my main work machine supports 64 (it's a bit old) but I will check and see if I can upgrade it to a 64 bit system.
      Also, maybe in the requirements it should be Mono 5 instead of 4.

    2. The virtual machine in the download page works perfectly also.

    3. The program seems to run OK, but I can't add objets to the flowsheet using the right click menu, only from the menu bar. Not a problem really but I wanted to check if it is some known issue or if it's a problem only with me.

    I will try to test it some more and let you know how things work. Thanks for your help!

     
  • Daniel Medeiros

    Daniel Medeiros - 2017-08-14

    Hi Jose,

    DWSIM now works only on 64-bit machines. One key issue is that mono should be installed only after updating the package sources to include the one from Xamarin (http://www.mono-project.com/download/#download-lin), because the official sources don't include the latest Mono packages.

    Regarding 3, it is a specific issue with GTK, I tried everything and noticed that it only works if you right click on the flowsheet, then left-click on the "Add New Object" item itself, then click on an subitem. If you wait for the full menu to appear without clicking on the "Add New Object" item, it won't work...

    Regards
    Daniel

     
  • Daniel Medeiros

    Daniel Medeiros - 2017-08-14

    The issue with the context menu is specific to the Eto.Forms GTK library and is described here: https://github.com/picoe/Eto/issues/219

     
  • Jose

    Jose - 2017-08-14

    Thank you.

    I installed Ubuntu 16.04/64 bits on my work machine. Installed Mono 5, then DWSIM. Everything works fine so far, except for the "add object" issue. However, I am able to add it if I click the "add object" entry before picking the desired object, just as you said. So I think I'm good to go for now.

    I'd change the topic title to [SOLVED], but couldn't find how to edit it.

    Thanks for your help!

     
  • Gabriel_dCF

    Gabriel_dCF - 2019-03-25

    Hello,

    I can't initialize DWSIM after installation either.
    I've installed Mono as recommended in the Downloads section of the website and later I've installed DWSIM 5.7.0 amd64 on Linux through the .deb package downloaded on sourceforge (I haven't found download links in the website).

    When I try to run the simulator from the terminal I get the following error message:

    Unhandled Exception:
    System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
    File name: 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
    at DWSIM.UI.Desktop.Program.Main (System.String[] args) [0x0001c] in <e26d6db887dc4f9c90b17cb1cd5b5973>:0
    [ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
    File name: 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
    at DWSIM.UI.Desktop.Program.Main (System.String[] args) [0x0001c] in <e26d6db887dc4f9c90b17cb1cd5b5973>:0 </e26d6db887dc4f9c90b17cb1cd5b5973></e26d6db887dc4f9c90b17cb1cd5b5973>

     
    • Daniel Medeiros

      Daniel Medeiros - 2019-03-25

      Make sure to have Mono 5.8 or newer installed. Aditionally, you could try

      sudo apt-get install mono-vbnc
      
       

      Last edit: Daniel Medeiros 2019-03-25
  • Gabriel_dCF

    Gabriel_dCF - 2019-03-25

    Problem solved, thank you very much!

     
  • Gabriel_dCF

    Gabriel_dCF - 2019-03-25

    Sorry for bothering you again, but when I select an object I've dragged to the flowsheet, nothing changes in the Object Editor. Even when I load a sample flowsheet, selecting an object does not load the object editing panels. Is that a bug or am I missing something?

     
  • Daniel Medeiros

    Daniel Medeiros - 2019-03-25

    Check your settings, there is a checkbox for that.

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.