[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3760: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3184)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3762: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3184)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3763: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3184)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3764: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3184)
ProtocaseDesigner.com • View topic - Crashes on startup on Ubuntu 18.04.3 LTS

ProtocaseDesigner.com

Custom Electronic Enclosure Design Software Forum

Skip to content

Crashes on startup on Ubuntu 18.04.3 LTS

For general Protocase Designer questions. Anything and everything about Protocase Designer except support questions.

Moderators: akirk, Colin, dronne, mpyne, mrodden

Crashes on startup on Ubuntu 18.04.3 LTS

Postby apparentlymart on Sun Jan 12, 2020 6:38 pm

apparentlymart
 
Posts: 5
Joined: Sun Jan 12, 2020 5:54 pm

Re: Crashes on startup on Ubuntu 18.04.3 LTS

Postby mpyne on Mon Jan 13, 2020 1:22 pm

Hello,

We have another user haveing the same issue. First off thanks for looking into this! Some background information we use Opencascade for exporting step files and we load these libraries at runtime. You are right about the locations of libraries. Java runtime will load natives from certian folders all ways. One of those on linux is /usr/lib/x86_64-linux-gnu/. In this case we have miss matched libraries of Opencascade being loaded that don't work together. We do compile opencascade our self so our binaries maybe different from the ones stored in /usr/lib/x86_64-linux-gnu/.

What you can try is.

1.) change the name of /usr/local/lib/Protocase\ Designer/natives/occjava/linux-x86_64

to something like

/usr/local/lib/Protocase\ Designer/natives/occjava/linux-x86_64-disable

it will not find these on boot and wont be loaded.

2.) Am hesitant to suggest this but if you delete all the libTK*.so from /usr/lib/x86_64-linux-gnu/. I wouldn't want to mess up any programs you may have that require these.

If you can try these and let me know I would like to know the results. It may help me in our next build of Protocase Designer.

Matt
mpyne
 
Posts: 10
Joined: Mon Nov 14, 2016 11:15 am

Re: Crashes on startup on Ubuntu 18.04.3 LTS

Postby apparentlymart on Tue Jan 14, 2020 12:30 pm

apparentlymart
 
Posts: 5
Joined: Sun Jan 12, 2020 5:54 pm

Re: Crashes on startup on Ubuntu 18.04.3 LTS

Postby apparentlymart on Tue Jan 14, 2020 12:36 pm

Oh, a follow-up:

Remembering that there's still a known issue on the wiki about using OpenJDK (I'm not sure if that's still relevant since Protocase Designer bundles its own JDK) I also tried using the Oracle JDK 11 I installed in earlier troubleshooting, but the results were no different aside from it now loading some standard library things from /usr/lib/jvm/jdk-13.0.1 instead, as expected.
apparentlymart
 
Posts: 5
Joined: Sun Jan 12, 2020 5:54 pm

Re: Crashes on startup on Ubuntu 18.04.3 LTS

Postby mpyne on Thu Jan 23, 2020 12:37 pm

apparentlymart, would you mind if I sent you a special Designer build with some things I would like to try?
mpyne
 
Posts: 10
Joined: Mon Nov 14, 2016 11:15 am

Re: Crashes on startup on Ubuntu 18.04.3 LTS

Postby apparentlymart on Thu Mar 19, 2020 10:20 pm

Hi mpyne,

I tried to respond previously but the forum didn't seem to be functioning properly. I saw that you posted a test message after an upgrade so I'm trying again...

I would be willing to try a development build.
apparentlymart
 
Posts: 5
Joined: Sun Jan 12, 2020 5:54 pm

Re: Crashes on startup on Ubuntu 18.04.3 LTS

Postby apparentlymart on Fri Mar 20, 2020 1:40 am

I'm still seeing some PHP notices from the forum but it does at least seem to be letting me post, so I have something else to add.

I suspected that it had been something else on my system that was causing a conflict before, so I was trying a few different options to run Protocase Designer in an environment separated from the rest of my system. The one that seemed most promising was Ubuntu Snaps because it already has the infrastructure in place to support GUI apps without a lot of fuss, so I've been fiddling with that on and off since my message back in January.

After more stracing and gradually installing things it seemed like the hang on the splash screen was related to particular libraries not being available, and so I gradually added more libraries into my snap definition, seeing it get further each time before getting stuck.

What finally did the trick today was building OpenCascade 7.3.0 from source, in addition to the other things I'd added previously, and now I'm able to get Protocase Designer to start up enough to get through the initial configuration wizard and to the main screen, though I've evidently not put files in quite the right directory structure because it doesn't seem to be able to find the cutout library.

With that said, I was able to load one of the templates, which worked aside from some missing items it was expecting to find in the library:

[img]https://user-images.githubusercontent.com/20180/77139034-9a20bd00-6a31-11ea-90a6-b064351d1cb9.png[/img]

I don't know if you're interested in Snaps as an alternative distribution model for official releases, but maybe the contents of this "snapcraft" configuration are helpful in seeing what set of Ubuntu packages I had to install in the isolated snap environment to get Designer to launch:
https://github.com/apparentlymart/protocase-designer-snap/blob/master/snap/snapcraft.yaml

If you happen to have a hint for what I might tweak to get it to be able to find the cutout library (my snap configuration is causing it to end up at /snap/protocase-designer/current/library because that's the prefix where snaps get mounted) that'd be useful to get me over the line here to having a working setup for myself at least, even if this approach doesn't generalize for others.

Thanks!
apparentlymart
 
Posts: 5
Joined: Sun Jan 12, 2020 5:54 pm

Re: Crashes on startup on Ubuntu 18.04.3 LTS

Postby mpyne on Mon Mar 23, 2020 11:59 am

Hello apparentlymart,

Great to hear you got it mostly working. I will look into snap and see if we can use it or if we can update our current build process.

I'am thinking about the Cutout Library issue. Is this just with your Userlibrary or with the MainLibrary? I see screws in your picture and that make me uncertain. We keep screws in the main library and our templates. Maybe a debug log will help. The logs are found in userroot/ProtocaseDesigner and the file debug.0.log is the latest log file.

Matt
mpyne
 
Posts: 10
Joined: Mon Nov 14, 2016 11:15 am


Return to Protocase Designer General Chat / Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron