SemBioProcess / SemGen

A tool for semantics-based annotation and composition of biosimulation models
18 stars 3 forks source link

SG becomes unresponsive after mutliple uses on Mac OS X Mojave #323

Closed maxneal closed 3 years ago

maxneal commented 5 years ago

As reported by Yuda Munarko:

I would like to report a problem when running Semgen on Mac OS X. At first run, Semgen was running well, however, after several runs, it failed to load the interface and was reported as "Not Responding" application.

It seems the problem happens when Semgen tries to load configuration from startSetting.txt. I solve it by deleting Semgen cache, in my case the cache location is:

/Users/ymun794/Library/Caches/SemGen/cfg/startSettings.txt

I know that it is not the best solution, but it works.

My machine configuration is: mac OS Mojave 10.14.3 java version "1.8.0_201"

maxneal commented 5 years ago

Yuda also reported:

I deleted the whole SemGen cache folder [to fix the problem]. Before I deleted the folder I tried to run Semgen using the console by executing JavaAppLauncher. It showed information below and only presented "Loading Interface".

Loading SemGen...Using configuration file at /Users/ymun794/Library/Caches/SemGen/cfg/startSettings.txt Loaded.

-- Product name: JxBrowser -- Licensed version: 6.x -- Licensed to: -- License type: Evaluation -- License bound to product: Bound to class name -- Generation date: 16/03/2016 -- Expiration date: 1/05/2020 -- License info: Academic license -- Current date: 29/05/2019

JxBrowser license valid.

01:36:59 INFO: OS name: Mac OS X 01:36:59 INFO: JRE version: 1.8.0_211 64-bit 01:36:59 INFO: JxBrowser version: 6.2 01:36:59 INFO: JxBrowser type: HEAVYWEIGHT 01:36:59 INFO: Starting IPC... 01:36:59 INFO: Starting IPC Server... 01:36:59 INFO: Starting IPC Process... 01:36:59 INFO: /var/folders/zz/mk7_vrcn3r3gsbwr585w4blxzyk8xb/T/jxbrowser-chromium-43.0.2357.52.6.2/jxbrowser.app/Contents/MacOS/jxbrowser 1101 18078 --disable-remote-core-animation

In other execution, it presented "Loading Tab" with additional information:

com.teamdev.jxbrowser.chromium.internal.ipc.IPCException: Failed to initialize IPC. Remote process doesn't respond.

maxneal commented 3 years ago

This issue appears to be triggered when SemGen tries to maximize its main JFrame on startup (if the maximize key in the startSettings file is set to true). This was addressed in commit 9dc9a261117e3cbcf8a45425b937c85b0e8baefb, and now window maximization only occurs on non-Mac OSs.

A potential fix for users who are running the SemGen.app on Mac OS would be to set the maximize key in their start files to false. Or (as Yuda indicated above) delete their cache folder which will cause SemGen to revert to default window settings where the maximize key is false.