1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. While the majority of active discourse on D20PRO has moved to our Discord Channels, this forum is still active and checked-in on regularly by our staff. However, for the very latest information, conversation and/or immediate support, please join us on Discord here: http://discord.gg/Ph38ckM
    Dismiss Notice

3.7.8 Failed to Initialize

Discussion in 'Bug Reports & Installation Support' started by crazitalk, Apr 9, 2019.

  1. Wesley Gorby

    Wesley Gorby Production/Community Manager
    Staff Member

    Joined:
    Aug 1, 2011
    Messages:
    2,443
    Likes Received:
    140
    Notations from the Bat file

    REM To change the amount of memory allocated to d20Pro, modify the -Xmx argument.
    REM The default is -Xmx512m and allocates 512 megabytes of heap.
    REM If you are running out of memory, try to up to -Xmx1014 to get 1 gigabyte.
    REM On 32bit operating systems the maximum will vary. If d20Pro fails to start then
    REM you should lower the value until d20Pro starts.
     
  2. Wesley Gorby

    Wesley Gorby Production/Community Manager
    Staff Member

    Joined:
    Aug 1, 2011
    Messages:
    2,443
    Likes Received:
    140
    Also, if Mac is using this it may be overriding the .sh

    upload_2019-5-5_19-12-43.png
     
  3. crazitalk

    crazitalk Member

    Joined:
    Jul 15, 2018
    Messages:
    35
    Likes Received:
    0
    Made the following changes to the shell file.
    1. Changed the XMX value to multiple values ranging from 512m to 4g (and 4096m). Could not initiate JVM.
    2. Added an XMS value of 256m in combination with an XMX value of 2g. Could not initiate JVM.
    3. Removing the XMX and the XMS values from the shell file results in the same Exit Code 133 and the following Terminal data:
    Mac-Pro:~ ericiverson$ cd /Applications/D20PRO/data
    Mac-Pro:data ericiverson$ chmod +x ./d20pro.sh
    Mac-Pro:data ericiverson$ bash ./d20pro.sh
    : command not found:
    : command not found:
    : command not found9:
    : command not found2:
    ./
    : No such file or directory/
    : command not found6:
    java version "1.8.0_211"
    Java(TM) SE Runtime Environment (build 1.8.0_211-b12)
    Java HotSpot(TM) 64-Bit Server VM (build 25.211-b12, mixed mode)
    : command not found8:
    : command not found1:
    Mac-Pro:data ericiverson$ [S_API FAIL] SteamAPI_Init() failed; ipcserver init failed .
    [S_API FAIL] SteamAPI_Init() failed
    [06 May 2019 20:04:31,886] ERROR D20 | Failed to execute SteamAPI.init().
    [06 May 2019 20:04:32,003] INFO D20 | D20PRO version: 3.7.8
    [06 May 2019 20:04:32,003] INFO D20 | Java version: 1.8.0_181
    [06 May 2019 20:04:32,004] INFO D20 | Operating System: Mac OS X (10.11.6)
    [06 May 2019 20:04:34,973] FATAL D20 | Unexpected throwable initializing app
    com.teamdev.jxbrowser.chromium.internal.ipc.IPCException: IPC process exited. Exit code: 133
    at com.teamdev.jxbrowser.chromium.internal.ipc.d.run(SourceFile:204)
    at java.lang.Thread.run(Thread.java:748)
    [06 May 2019 20:04:38,487] ERROR JFXThread | Failed to run: com.mindgene.d20.JFXLAF$$Lambda$99/1437533676@2cd3ceca
    com.teamdev.jxbrowser.chromium.internal.ipc.IPCException: IPC process exited. Exit code: 133
    at com.teamdev.jxbrowser.chromium.internal.ipc.d.run(SourceFile:204)
    at java.lang.Thread.run(Thread.java:748)

    Seems I'm almost back to square one. Incidentally if I don't run the shell and start with the exec within the shell, I get the same result starting with the line:
    Mac-Pro:data ericiverson$ [S_API FAIL] SteamAPI_Init() failed; ipcserver init failed .
     
  4. Wesley Gorby

    Wesley Gorby Production/Community Manager
    Staff Member

    Joined:
    Aug 1, 2011
    Messages:
    2,443
    Likes Received:
    140
    so, running the .sh you're still getting this correct?

    Mac-Pro:data ericiverson$ Invalid maximum heap size: -Xmx2g
    Error: Could not create the Java Virtual Machine.
     
  5. crazitalk

    crazitalk Member

    Joined:
    Jul 15, 2018
    Messages:
    35
    Likes Received:
    0
    Yes, I've only been using the .sh while trying to figure out this error.
    I found something interesting after my last post. If the code in the .SH is:
    XMX=2048m

    BASEDIR=$(dirname "$0")/
    echo "$BASEDIR"
    cd "$BASEDIR"

    JVersion=`java -version`

    [ -n "$NORUN" ] && exit 0

    exec ../jre/bin/java -Xmx$XMX -Djxbrowser.chromium.dir=".jxbrowser" -Dsun.java2d.ddoffscreen=false -Dsun.java2d.noddraw -Dsun.java2d.d3d=false -jar D20PRO.jar "$@" "${APP_ARGS}" &
    I get the Error: Could not create the Java Virtual Machine.

    If I comment out and change the XMX as follows:
    #XMX=2048m

    BASEDIR=$(dirname "$0")/
    echo "$BASEDIR"
    cd "$BASEDIR"

    JVersion=`java -version`

    [ -n "$NORUN" ] && exit 0

    exec ../jre/bin/java -Xmx2048m -Djxbrowser.chromium.dir=".jxbrowser" -Dsun.java2d.ddoffscreen=false -Dsun.java2d.noddraw -Dsun.java2d.d3d=false -jar D20PRO.jar "$@" "${APP_ARGS}" &
    I get the error I started this thread with; IPC process exited. Exit code: 133

    I have also tried commenting out that line in the invocation.settings file.
     
    #45 crazitalk, May 7, 2019
    Last edited: May 7, 2019
  6. Wesley Gorby

    Wesley Gorby Production/Community Manager
    Staff Member

    Joined:
    Aug 1, 2011
    Messages:
    2,443
    Likes Received:
    140
    I'd comment out Invocation Setting file and change the augment in the .sh file if it were me.

    Have you tried it that way and used -Xmx1024m
     
  7. owlbear

    owlbear Administrator
    Staff Member

    Joined:
    Sep 5, 2011
    Messages:
    636
    Likes Received:
    160
    Hi, I'm not 100% sure as I cannot test on the older revision of OSX, but this could be a permissions issue. The IPC error you're getting is usually caused on *NIX systems when the Chromium cache directory cannot be created and/or written to.

    In your shell script example, you're using the switch

    Code:
    -Djxbrowser.chromium.dir=".jxbrowser"
    I might suggest either trying a local path or run with admin rights (sudo) -- although the local path would be advisable for general security reasons.
     
  8. crazitalk

    crazitalk Member

    Joined:
    Jul 15, 2018
    Messages:
    35
    Likes Received:
    0
    I'm familiar enough with Terminal to be able to do some things, I can't seem to figure out what I need to change -Djxbrowser.chromium.dir=".jxbrowser" to in order to have it run locally.

    My understanding is that it's in this section here where things need to change.
    Code:
    exec ../jre/bin/java -Xmx$XMX -Djxbrowser.chromium.dir=".jxbrowser" -Dsun.java2d.ddoffscreen=false -Dsun.java2d.noddraw -Dsun.java2d.d3d=false -jar D20PRO.jar "$@" "${APP_ARGS}" &
     
  9. crazitalk

    crazitalk Member

    Joined:
    Jul 15, 2018
    Messages:
    35
    Likes Received:
    0
    The Invocation.Setting file has been commented out this whole time.
     
  10. Wesley Gorby

    Wesley Gorby Production/Community Manager
    Staff Member

    Joined:
    Aug 1, 2011
    Messages:
    2,443
    Likes Received:
    140
    JVM parameter:
    -Djxbrowser.chromium.dir="Users/Me/.jxbrowser"
    Note: the property must be set before you create the first Browser instance in your application.
    This property must contain a valid absolute/relative path to the directory
     
  11. crazitalk

    crazitalk Member

    Joined:
    Jul 15, 2018
    Messages:
    35
    Likes Received:
    0
    I've tried a number of variations with no change. It's possible I've done something wrong, but I decided to re-download 3.7.7 to see what differences I could find. As I recall 3.7.7 was the last version that worked for me. The issue I'm having may be unrelated to the newest version of D20Pro as the 3.7.7 I just downloaded is now doing the same thing 3.7.8 is. Any thoughts?

    Incidentally, here is the .SH contents (I've slowly removed the elements that are commented out or superfluous).
    Code:
    #!/bin/sh
    set +u
    BASEDIR=$(dirname "$0")/
    echo "$BASEDIR"
    cd "$BASEDIR"
    JVersion=`java -version`
    [ -n "$NORUN" ] && exit 0
    exec ../jre/bin/java -Xmx2048m -Djxbrowser.chromium.dir="/Applications/jxbrowser-6/lib/.jxbrowser" -Dsun.java2d.ddoffscreen=false -Dsun.java2d.noddraw -Dsun.java2d.d3d=false -jar D20PRO.jar "$@" "${APP_ARGS}" &
    Here is the result
    Code:
    Mac-Pro:data ericiverson$ bash ./d20pro.sh
    ./
    : No such file or directory
    java version "1.8.0_211"
    Java(TM) SE Runtime Environment (build 1.8.0_211-b12)
    Java HotSpot(TM) 64-Bit Server VM (build 25.211-b12, mixed mode)
    : command not found:
    Mac-Pro:data ericiverson$ [S_API FAIL] SteamAPI_Init() failed; ipcserver init failed .
    [S_API FAIL] SteamAPI_Init() failed
    [10 May 2019 17:47:56,346] ERROR  D20                       | Failed to execute SteamAPI.init().
    [10 May 2019 17:47:56,490] INFO   D20                       | D20PRO version: 3.7.8
    [10 May 2019 17:47:56,490] INFO   D20                       | Java version: 1.8.0_181
    [10 May 2019 17:47:56,491] INFO   D20                       | Operating System: Mac OS X (10.11.6)
    [10 May 2019 17:48:00,029] FATAL  D20                       | Unexpected throwable initializing app
    com.teamdev.jxbrowser.chromium.internal.ipc.IPCException: IPC process exited. Exit code: 133
        at com.teamdev.jxbrowser.chromium.internal.ipc.d.run(SourceFile:204)
        at java.lang.Thread.run(Thread.java:748)
    [10 May 2019 17:48:03,144] ERROR  JFXThread                 | Failed to run: com.mindgene.d20.JFXLAF$$Lambda$99/1762119752@2cd3ceca
    com.teamdev.jxbrowser.chromium.internal.ipc.IPCException: IPC process exited. Exit code: 133
        at com.teamdev.jxbrowser.chromium.internal.ipc.d.run(SourceFile:204)
        at java.lang.Thread.run(Thread.java:748)
    
     
  12. owlbear

    owlbear Administrator
    Staff Member

    Joined:
    Sep 5, 2011
    Messages:
    636
    Likes Received:
    160
    I’m limited in my access to resources (my own PC is on the fritz due to an MS issue), so I apologize for the delay in continuing on the thread.

    Looking at your shell script line, the specified directory of Applications/JxBrowser-6/... looks like a bad idea. The cache directory is the one in the D20PRO/data/ folder called cache. Try that shell script line without the directory declaration so D20PRO will use the default data/cache folder and see if that resolves it.

    Baring that you could also try running with sudo to see if it’s a permissions problem.

    I’ll check back in soon as I’m able!
     
  13. crazitalk

    crazitalk Member

    Joined:
    Jul 15, 2018
    Messages:
    35
    Likes Received:
    0
    Tried it without the directory, didn't work, same issue. Running it with SUDO didn't help either.

    Since my last post I began wondering if perhaps 3.7.7 was not the most recent version I'd used on my Mac Pro, in looking at the archives I'm finding that it could have been 3.7.6, as such I've downloaded 3.7.6 and am finding that it works. I'm comparing the 3.7.6 to 3.7.8 to see what differences may contribute to the issue I'm having. From what I'm seeing when running them both through compare merge I'm thinking that the .app and the .exe to run them both are methods of running D20PRO.jar. It's difficult if nigh impossible for me to dig much deeper because the .jar files are showing up as binary files.

    2 things I did notice:
    1. in 3.7.7 JXBrowser (/data/lib/) version became 6.23c, it was 6.22.1c in 3.7.6, and it remains 6.23c
    2. steamworks4j-1.8.0 and steamworks4j-server-1.8.0 are both now included (/data/lib/) as of 3.7.7
    These both jumped at me because of the log and terminal response are calling out issues with both the SteamAPI and JXBrowser.

    Code:
    Mac-Pro:data ericiverson$ [S_API FAIL] SteamAPI_Init() failed; ipcserver GetSteamPath failed.
    [S_API FAIL] SteamAPI_Init() failed
    [12 May 2019 09:37:01,834] ERROR  D20                       | Failed to execute SteamAPI.init().
    [12 May 2019 09:37:02,067] INFO   D20                       | D20PRO version: 3.7.8
    [12 May 2019 09:37:02,067] INFO   D20                       | Java version: 1.8.0_181
    [12 May 2019 09:37:02,068] INFO   D20                       | Operating System: Mac OS X (10.11.6)
    [12 May 2019 09:37:34,005] FATAL  D20                       | Unexpected throwable initializing app
    com.teamdev.jxbrowser.chromium.internal.ipc.IPCException: IPC process exited. Exit code: 133
        at com.teamdev.jxbrowser.chromium.internal.ipc.d.run(SourceFile:204)
        at java.lang.Thread.run(Thread.java:748)
    [12 May 2019 09:37:35,812] ERROR  JFXThread                 | Failed to run: com.mindgene.d20.JFXLAF$$Lambda$88/1160559347@4e1516b7
    com.teamdev.jxbrowser.chromium.internal.ipc.IPCException: IPC process exited. Exit code: 133
        at com.teamdev.jxbrowser.chromium.internal.ipc.d.run(SourceFile:204)
        at java.lang.Thread.run(Thread.java:748)
     
    #53 crazitalk, May 12, 2019
    Last edited: May 12, 2019
  14. Wesley Gorby

    Wesley Gorby Production/Community Manager
    Staff Member

    Joined:
    Aug 1, 2011
    Messages:
    2,443
    Likes Received:
    140
    This may or may not help. The answer is shown for an extremely similar IPC error

    upload_2019-5-12_18-52-9.png
     
  15. crazitalk

    crazitalk Member

    Joined:
    Jul 15, 2018
    Messages:
    35
    Likes Received:
    0
    apt and apt-get are not available on more current versions of Mac OS. I tried to get it to work using fink with no luck.
     
  16. owlbear

    owlbear Administrator
    Staff Member

    Joined:
    Sep 5, 2011
    Messages:
    636
    Likes Received:
    160
    @crazitalk -- yeah. the apt thing is a no go on OSX :p

    The steamworks library won't impact you across OSX versions, the JxBrowser version does have specific updates for newer versions of OSX. You could try changing out the library on your end -- we don't have a way to test your older version of OSX as that's not an upgrade direction Apple wants folks to take.

    To test the jxbrowser.jar to see if it's stopping you're install from working, just copy the 6.22 version to your new D20PRO lib directory and archive the updated one. There's a chance this will resolve your issue if the error is within the JxBrowser jar context.

    If you're willing to test this locally it'll be super helpful on account of our inability to test 10.11.x OSX issues.
     
  17. crazitalk

    crazitalk Member

    Joined:
    Jul 15, 2018
    Messages:
    35
    Likes Received:
    0
    I'm pretty sure I've done this, but just in case I tried it again. No success, different error though...somewhat.
    Screen Shot 2019-05-22 at 5.46.42 PM.png
    Code:
    Mac-Pro:data ericiverson$ chmod +x ./d20Pro.sh
    Mac-Pro:data ericiverson$ bash ./d20Pro.sh
    ./
    : No such file or directory
    java version "12.0.1" 2019-04-16
    Java(TM) SE Runtime Environment (build 12.0.1+12)
    Java HotSpot(TM) 64-Bit Server VM (build 12.0.1+12, mixed mode, sharing)
    : command not found:
    Mac-Pro:data ericiverson$ [S_API FAIL] SteamAPI_Init() failed; ipcserver GetSteamPath failed.
    [S_API FAIL] SteamAPI_Init() failed
    [23 May 2019 00:14:45,554] ERROR  D20                       | Failed to execute SteamAPI.init().
    [23 May 2019 00:14:45,557] FATAL  D20                       | Unexpected throwable initializing app
    java.lang.NoClassDefFoundError: com/teamdev/jxbrowser/chromium/internal/Environment
        at com.mindgene.d20.D20.init(D20.java:175)
        at com.mindgene.d20.D20.main(D20.java:288)
    Caused by: java.lang.ClassNotFoundException: com.teamdev.jxbrowser.chromium.internal.Environment
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 2 more
    
    This uses the refined d20Pro.sh file as opposed to the original as the original won't make it past the max RAM callout. The code in the .SH is:
    Code:
    #!/bin/sh
    set +u
    BASEDIR=$(dirname "$0")/
    echo "$BASEDIR"
    cd "$BASEDIR"
    JVersion=`java -version`
    [ -n "$NORUN" ] && exit 0
    exec ../jre/bin/java -Xmx2048m -Djxbrowser.chromium.dir=".jxbrowser" -Dsun.java2d.ddoffscreen=false -Dsun.java2d.noddraw -Dsun.java2d.d3d=false -jar D20PRO.jar "$@" "${APP_ARGS}" &
    
     
    #57 crazitalk, May 22, 2019
    Last edited: May 23, 2019
  18. Wesley Gorby

    Wesley Gorby Production/Community Manager
    Staff Member

    Joined:
    Aug 1, 2011
    Messages:
    2,443
    Likes Received:
    140
    I'm not positive, but I don't think D20PRO has been tested in Java v12 yet.

    D20PRO is currently released with;
    [23 May 2019 08:06:02,370] INFO D20 | Java version: 1.8.0_181
     
  19. crazitalk

    crazitalk Member

    Joined:
    Jul 15, 2018
    Messages:
    35
    Likes Received:
    0
    I uninstalled all Java and re-installed starting with the JavaForOSX version 6 (for Mac OS10.11+ I believe). I then installed JRE 1.8.0_211 (the earliest version of 1.8 I've been able to find) and when that didn't work I installed JDK 1.8.0_212 which also does the same thing.
    Code:
    Mac-Pro:data ericiverson$ chmod +x ./d20pro.sh
    Mac-Pro:data ericiverson$ bash ./d20pro.sh
    ./
    : No such file or directory
    java version "1.8.0_212"
    Java(TM) SE Runtime Environment (build 1.8.0_212-b10)
    Java HotSpot(TM) 64-Bit Server VM (build 25.212-b10, mixed mode)
    : command not found:
    Mac-Pro:data ericiverson$ [S_API FAIL] SteamAPI_Init() failed; ipcserver GetSteamPath failed.
    [S_API FAIL] SteamAPI_Init() failed
    [24 May 2019 13:38:11,063] ERROR  D20                       | Failed to execute SteamAPI.init().
    [24 May 2019 13:38:11,087] FATAL  D20                       | Unexpected throwable initializing app
    java.lang.NoClassDefFoundError: com/teamdev/jxbrowser/chromium/internal/Environment
        at com.mindgene.d20.D20.init(D20.java:175)
        at com.mindgene.d20.D20.main(D20.java:288)
    Caused by: java.lang.ClassNotFoundException: com.teamdev.jxbrowser.chromium.internal.Environment
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 2 more
    
     
  20. owlbear

    owlbear Administrator
    Staff Member

    Joined:
    Sep 5, 2011
    Messages:
    636
    Likes Received:
    160
    Yeah. version 1.8.x should be fine. With the correct JRE in place, have you tried clicking the .app rather than running from terminal? Do you use Discord? I'm happy to jump into a screenshare or such.
     

Share This Page