Menu

#105 Dia not starting under Mac OS X El Capitan (10.11.1)

open
nobody
1
2019-03-20
2015-10-27
Kai Schwarz
No

Dia Version is 0.97.2-7 installed via Homebrew Cask dia. Have installed XQuartz 2.7.8 via Homebrew Cask too.

If I try to run dia it crashes. If I run it from commandline the following output is created:

Warning: AppleCollationOrder setting not found, using AppleLocale.
Setting Language: en.UTF8
dyld: Library not loaded: @executable_path/../lib/dia/libdia.dylib
  Referenced from: /Users/[username]/Applications/Dia.app/Contents/Resources/bin/dia-bin
  Reason: image not found
[1]    13492 trace trap  ./dia

The Mac OS X error report has the following information:

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000002, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
  Library not loaded: @executable_path/../lib/dia/libdia.dylib
  Referenced from: /opt/homebrew-cask/*/Dia.app/Contents/Resources/bin/dia-bin
  Reason: image not found

Binary Images:
    0x7fff6755e000 -     0x7fff67594f5f  dyld (360.17) <03673B53-B8B7-34D1-ADCE-F449E78E39CC> /usr/lib/dyld

Hope someone knows what is going on here.
Thank you for your time.

Discussion

  • Kurt D. Starsinic

    I am seeing the same issue. Homebrew, El Capitan, XQuartz 2.7.8, Dia 0.97.2-7.

    Note that the unloadable library is being sought at @executable_path/../lib/dia/libdia.dylib.

    The distribution does not have a lib/dia/libdia.dylib. There is lib/libdia.dylib and dia/libdia.dylib.

    I will be happy to provide any further assistance.

     
  • Wolf Kuerschner

    Wolf Kuerschner - 2016-05-17

    I can confirm that the recent DIA version does not start if you upgrade to El Capitan. Before DIA was working as intended.

     
  • tectokronos

    tectokronos - 2016-05-26
     
    • Wolf Kuerschner

      Wolf Kuerschner - 2016-05-26

      I can confirm that DIA starts again if you add

      export DISPLAY=:0

      after line 39 of the DIA app.

      Let's see how stable the program will be.

       
      • Stephen Starkey

        Stephen Starkey - 2017-01-03

        Does not work for me on macOS Sierra Version 10.12.2, XQuartz 2.7.11:

        Stephens-iMac:bin scstarkey$ uname -a
        Darwin Stephens-iMac.local 16.3.0 Darwin Kernel Version 16.3.0: Thu Nov 17 20:23:58 PST 2016; root:xnu-3789.31.2~1/RELEASE_X86_64 x86_64
        Stephens-iMac:bin scstarkey$ pwd
        /Applications/Dia.app/Contents/Resources/bin
        Stephens-iMac:bin scstarkey$ cat dia | head -n 50 | tail -n 15
             exit
           fi
          fi
        fi
        export DISPLAY=:0 #<-- The recommended change
        osascript -e 'tell app "XQuartz" to launch'
        for i in `seq 1 30`; do
          if [[ `ps aux | grep -v grep | grep startx | wc -l` -lt 1 ]]; then
            sleep 1
          fi
        done
        if [[ "$DISPLAY" =~ "/tmp" ]]; then
          if [[ ! -e $DISPLAY ]]; then
            export DISPLAY=:0
          fi
        Stephens-iMac:bin scstarkey$ ./dia
        Warning: AppleCollationOrder setting not found, using AppleLocale.
        Setting Language: en.UTF8
        dyld: Library not loaded: @executable_path/../lib/dia/libdia.dylib
          Referenced from: /Applications/Dia.app/Contents/Resources/bin/dia-bin
          Reason: image not found
        Abort trap: 6
        
         

        Last edit: Stephen Starkey 2017-01-03
        • Stephen Starkey

          Stephen Starkey - 2017-01-03

          Seems I was using a broken version (from homebrew). Downloading the latest 0.97.2 direct seems to work without any changes at all.

           
  • Nap

    Nap - 2017-12-31

    [Mac OS 10.13.2, with Xquartz 2.7.9, Dia-0.97.2-7.dmg]
    I can't run Dia via its icon. To run it from the terminal, I first need to 'export DISPLAY=:0' before running /Applications/Dia.app/Content/Resources/bin/dia

     

    Last edit: Nap 2017-12-31
  • Nap

    Nap - 2017-12-31

    To run it from the icon in LaunchPad, the bin/dia script needs to be modified to export DISPLAY=:0 before the test in line 27.
    The reason for the failure seems to be due to the fact that $DISPLAY already contains a value; on my system it is: /private/tmp/com.apple.launchd.ltexsnZtF4/org.macosforge.xquartz:0.

     
  • Nap

    Nap - 2017-12-31

    In either case, there is no DIA icon in the Launch Bar while DIA is running. Though there is an X11 icon.

     
  • Nap

    Nap - 2018-01-02

    I upgraded my Xquartz 2.7.11, and now I have a Dia icon, but it 'bounces' the entire time that Dia is open.

     
  • Alexander Abreu

    Alexander Abreu - 2019-01-11

    Working for me and would work on any Mac OS X version; just follow these steps:

    1. Download both files: Dia and XQuartz.
    2. Install both
      - Do not run any of them.
    3. Go to Applications/Dia/Resources/bin and open "dia" file with your prefer text editor.
    4. It's time to add this line (export DISPLAY=:0) into the code:
    5. Before line 27 and after line 40. (Remember the code to add is: export DISPLAY=:0)
    6. Must looks like the attached image.
    7. Save the changes and run Dia.
    8. Everything nust be good with a functional Dia.
     

    Last edit: Alexander Abreu 2019-01-11
    • Pawel Ciejka

      Pawel Ciejka - 2019-03-20

      Well this script seems a little bit outdated, I don't see any reason to export DISPLAY in this script. There is also a second error preventing console usage for genereting images from diagrams. Arguments to script are not passed to dia binary. Proposed solution gets rid off both.

       

Log in to post a comment.

MongoDB Logo MongoDB