Menu

DWSIM 5.1.1 on RPi2 !

JMB
2018-02-18
2018-02-24
  • JMB

    JMB - 2018-02-18

    Hello Daniel,

    I am very impressed with the changes and improvements you have made to this package in the time that I have been away from it. I have begun using 5.1.8 (Ubuntu 16.04) and it works well. Some minor issues which I think are again related to Mono. Will let you know in a separate thread.

    I am now trying something ambitious. To get it working in a RPi (2). Yeah that is really pushing the boundaries! But I am doing it for kicks. Want to help some less fortunate who may not be able to afford a laptop or a full fledged computer.

    I installed Mono 5.8 (mono-develop: download.mono-project.comp) successfully. Installed DWSIM 5.1.11 deb (gdebi). DWSIM starts with the spalsh, initial welcome, etc. However clicking any option, 'ew simulation', 'Example', etc causes it to crash. Only dwsim is available (New GUI). There is no 'dwsim-classic' in the deb.

    (DWSIM.UI.Desktop:936): libnotify-WARNING **: Failed to connect to proxy
    Stacktrace:
    
      at <unknown> <0xffffffff>
      at DWSIM.Thermodynamics.PropertyPackages.CoolPropPropertyPackage.GetListOfSupportedCompounds () [0x00000] in <b44ec43254e64b23bf8245d8eb8469df>:0
      at DWSIM.Thermodynamics.PropertyPackages.CoolPropPropertyPackage..ctor () [0x00011] in <b44ec43254e64b23bf8245d8eb8469df>:0
    

    Will post the long error bug log, as soon as I can figure out again how to attach it to this forum.

    Thanks for the wonderful work!

     
  • JMB

    JMB - 2018-02-18

    Attached: Log of DWSIM 5.1.11 crash in RPi2

     
  • Daniel Medeiros

    Daniel Medeiros - 2018-02-18

    Hi JMB,

    Can you check if you have libCoolProp.so in /usr/local/lib/dwsim directory? If yes, please run the following commands:

    cd /usr/local/lib/dwsim
    file libCoolProp.so
    ldd libCoolProp.so
    

    and send me the outputs.

    Regards
    Daniel

     
  • JMB

    JMB - 2018-02-19

    Hi, Thank you for the quick reply!

    /usr/local/lib/dwsim $ file libCoolProp.so
    libCoolProp.so: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (GNU/Linux), dynamically linked, BuildID[sha1]=86502188ffdfe9a9eb8680cdd1dc32254df446e5, not stripped
    /usr/local/lib/dwsim $ ldd libCoolProp.so
        /usr/lib/arm-linux-gnueabihf/libarmmem.so (0xb6be1000)
        libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0xb6a83000)
        libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb6a04000)
        libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb69d7000)
        libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6898000)
        /lib/ld-linux-armhf.so.3 (0xb6f41000)
    
     
  • Daniel Medeiros

    Daniel Medeiros - 2018-02-19

    I'm not sure if this is a DWSIM error. Try the following:

    cd /usr/local/lib/dwsim
    mono --verbose DWSIM.UI.Desktop.exe
    

    and send me the output.

    Which OS are you running? Raspian Stretch?

     
  • JMB

    JMB - 2018-02-20

    Attached logs ...
    - Raspbian Stretch

     
  • Daniel Medeiros

    Daniel Medeiros - 2018-02-20

    Definitely a problem with libCoolProp.so. It works nicely on Ubuntu MATE. I'll take some days to test it on Raspbian Stretch. I'm pretty sure that it worked on RS too during my testing sessions...

     

    Last edit: Daniel Medeiros 2018-02-20
  • Daniel Medeiros

    Daniel Medeiros - 2018-02-21

    Actually it is not a problem with CoolProp, but I could not reproduce your crash. Here's what I've did:

    1- Downloaded Raspbian Stretch from here => https://www.raspberrypi.org/downloads/raspbian/
    2 - Ran the following commands:

    sudo apt-get update
    sudo apt-get upgrade
    

    3 - Installed Mono 5.8: http://www.mono-project.com/download/stable/#download-lin-raspbian
    4 -Downloaded and installed DWSIM v5.1 Update 12

    At this point DWSIM started and ran ok, I could even create new and load existing simulations, but there was a problem with font rendering (not showing and eventually crashing the app), which I've solved with

    sudo apt-get install ttf-mscorefonts-installer
    

    Then it worked as expected. I'll include the above package in the list of prerequisites for the next update.

     

    Last edit: Daniel Medeiros 2018-02-21
  • JMB

    JMB - 2018-02-24

    Your steps 1 ~ 3 are exactly what I tried too. I will try with DWSIM-5.1.12 rather than 5.1.11 and add ttf-mscorefonts-installer

    But in the meantime, I installed DWSIM 5.1.12 in a Quad Core RPi2 under Ubuntu 16.04.4 Mate and it works as expected. Which is great news to me!

    Thank you for the great support that you provide with this excellent software. Time to play with it!

     
  • Daniel Medeiros

    Daniel Medeiros - 2018-02-24

    Ubuntu MATE is much better than raspbian, in my opinion...

     

Log in to post a comment.