Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 14-06-2019, 02:10   #1
Registered User
 
Schnapsy's Avatar

Join Date: Jan 2018
Location: Dunkirk, France
Boat: Fisher 34
Posts: 96
Images: 3
Trouble starting OpenCPN

Hello,

Today, at my home, I started OpenCPN.
No card installed, all additional plugins are inactive. (see attached pictures)
No connection (com port and UDP) appears in the dedicated tab.

I enclose the ini and log files.

For information, I installed two days ago the WatchDog plugin by setting it to trigger in the absence of GPS signal.
As it was triggered each time (PC at home), I finally uninstalled this plugin because even after removing the alert settings, I had a regular sound that was triggered (NB: despite the uninstallation of the plugin Watchdog , the small steady sound continued, so it was probably not bound).

What can be the origin of this problem knowing that it is the computer that I take on board to navigate and which therefore understands only few programs ?
Win10
OpenCPN 5.0
Attached Thumbnails
Click image for larger version

Name:	OCN5_1.jpg
Views:	44
Size:	141.7 KB
ID:	193858   Click image for larger version

Name:	OCN5_2.jpg
Views:	38
Size:	183.3 KB
ID:	193859  

Click image for larger version

Name:	OCN5_3.jpg
Views:	41
Size:	189.3 KB
ID:	193860  
Attached Files
File Type: pdf opencpn.log.pdf (950.0 KB, 9 views)
File Type: pdf opencpn.ini.pdf (76.6 KB, 9 views)
__________________

Schnapsy is offline   Reply With Quote
Old 17-06-2019, 01:29   #2
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,531
Re: Trouble starting OpenCPN

The reason that...
Quote:
No connection (com port and UDP) appears in the dedicated tab.
is that no connections are configured in the ini file.
You have to restart from the beginning and reconfigure your previous settings.

Thomas
__________________

cagney is offline   Reply With Quote
Old 17-06-2019, 07:40   #3
Registered User
 
Schnapsy's Avatar

Join Date: Jan 2018
Location: Dunkirk, France
Boat: Fisher 34
Posts: 96
Images: 3
Re: Trouble starting OpenCPN

Quote:
Originally Posted by cagney View Post
You have to restart from the beginning and reconfigure your previous settings.
Thomas
Yes, that's what I did ...

But my question was :
Why, while everything is well configured and that the PC has been used for several trips at sea with OpenCPN connected that worked very well, why suddenly (during a restart) nothing appears anymore?

Schnapsy is offline   Reply With Quote
Old 17-06-2019, 08:01   #4
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,531
Re: Trouble starting OpenCPN

No one will ever be able to give you a satisfactory answer to that.
OpenCPN does not, without reason, loose it's settings. I have on occasions thought that to be the case, but it has always boiled down to my own screw up.
I have learnt the hard way always to save a good ini/config file as a backup.
If you can produce a repeatable way to loose .ini files settings, then we would be looking at a bug.

Thomas
cagney is offline   Reply With Quote
Old 18-06-2019, 09:05   #5
Registered User

Join Date: Jun 2015
Posts: 353
Re: Trouble starting OpenCPN

Quote:
Originally Posted by Schnapsy View Post
Yes, that's what I did ...

But my question was :
Why, while everything is well configured and that the PC has been used for several trips at sea with OpenCPN connected that worked very well, why suddenly (during a restart) nothing appears anymore?




Maybe because

Quote:
despite the uninstallation of the plugin Watchdog , the small steady sound continued, so it was probably not bound).
From your logs it's like many opencpn were running at the same time and at some point one trashed the configuration file.

Could be a sound handling related bug. ie O seems to exit but doesn't fully.
did-g is online now   Reply With Quote
Old 21-06-2019, 06:44   #6
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 13,090
Re: Trouble starting OpenCPN

Schnapsy,

I think Didier hit the button on the head so to speak. Opencpn using a single configuration file named opencpn.ini unless run in Portable mode. When you try to run two instances of OpenCPN at the same time, they are thrashing to write changes to the opencpn.ini or opencpn.conf it is no wonder your's got trashed. Note: I have had two different versions of Opencpn running at the same time by accident, but I always shut one down as soon as I see that.


Others may have more current/accurate information on this.
rgleason is offline   Reply With Quote
Old 21-06-2019, 07:22   #7
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,531
Re: Trouble starting OpenCPN

Quote:
Originally Posted by did-g View Post
Maybe because

From your logs it's like many opencpn were running at the same time and at some point one trashed the configuration file.

Could be a sound handling related bug. ie O seems to exit but doesn't fully.
I don't think so.
OK there are many back to back instances of O, but they are all terminated with a "opencpn::MyApp exiting cleanly", before the next one starts. Trying on Linux where it's possible to run multiple instances, and looking at the log file, the stream from a new instance just blends in to the previous one. Stopping one instance results in a "opencpn::MyApp exiting cleanly" appears anywhere in the stream of messages from remaining instances.
It's not supposed to be possible to run more than one instance on windows, so if you are right, there must be a code path available that is "out of control", and "opencpn::MyApp exiting cleanly" is not true.

Thomas
cagney is offline   Reply With Quote
Old 21-06-2019, 08:45   #8
Registered User

Join Date: Jun 2015
Posts: 353
Re: Trouble starting OpenCPN

Quote:
Originally Posted by cagney View Post
I don't think so.
OK there are many back to back instances of O, but they are all terminated with a "opencpn::MyApp exiting cleanly", before the next one starts. Trying on Linux where it's
It's not supposed to be possible to run more than one instance on windows, so if you are right, there must be a code path available that is "out of control", and "opencpn::MyApp exiting cleanly" is not true.

Thomas
Huh?
around line 10815


Code:
10:19:05: wxSound::worker()
10:19:06: wxSound::worker()
10:19:11: PlugInManager: Deactivating PlugIn: C:\Program Files (x86)\OpenCPN\plugins\watchdog_pi.dll
10:19:13: Metrics:  m_display_size_mm: 381     wxDisplaySize:  1440:900   
10:19:13: oesenc_pi:  Calculated pix/mm = 3.77953
10:19:46: 

________
10:19:46: 2019-06-12
10:19:46:  ------- Starting OpenCPN -------
10:19:46: 5.0.0+9065270
1
same line 12038, 12447, 13863, 14066, 14667, 14878, 15091, 15812 this one is interesting because it's the last and there's a lot of ascii null., it could be an unclean shutdown or the shutdown finally killed all lingering O which trashed log and opencpn.ini files.

Now, how this is possible I have no idea, but the sound subsystem seems to be involved.
did-g is online now   Reply With Quote
Old 21-06-2019, 09:20   #9
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,531
Re: Trouble starting OpenCPN

Well I asked for it!

You are correct!

Thomas
cagney is offline   Reply With Quote
Old 25-06-2019, 06:23   #10
Registered User
 
Schnapsy's Avatar

Join Date: Jan 2018
Location: Dunkirk, France
Boat: Fisher 34
Posts: 96
Images: 3
Re: Trouble starting OpenCPN

Hello,

I followed all your interventions with interest even if it is difficult for me to answer.
In no case was Opencpn launched twice at once (opencpn opens automatically when the computer starts with a batch in the boot session).

That being so, I have reinstalled everything and made a backup of opencpn.ini.

Monday, in the marina,I found that several times opencpn froze, nothing worked and I had to turn it off on a request from windows.

I attach the log files.
This is the date of 24/06 and what is disturbing is for example lines 2771 to 2773, or 3125 to 3132 in the log.log file.

If necessary, I will uninstall and then reinstall Opencpn, but I would like to know the origin of these troubles.
Attached Files
File Type: pdf opencpn.log.pdf (205.7 KB, 5 views)
File Type: pdf opencpn.log.log.pdf (1.04 MB, 5 views)
Schnapsy is offline   Reply With Quote
Old 25-06-2019, 06:37   #11
Registered User
 
Schnapsy's Avatar

Join Date: Jan 2018
Location: Dunkirk, France
Boat: Fisher 34
Posts: 96
Images: 3
Re: Trouble starting OpenCPN

After reading this post "http://www.cruisersforum.com/forums/f134/opencpn-crashes-constantly-219449.html", I must say that Opencpn only freezes since I connected my sonar on a RS-232 USB Breakout Cable (https://www.milltechmarine.com/USB-B...ble_p_220.html).
Schnapsy is offline   Reply With Quote
Old 25-06-2019, 07:43   #12
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 13,090
Re: Trouble starting OpenCPN

Are you absolutely sure you have this wired up properly?
https://opencpn.org/wiki/dokuwiki/do...:serial_cables
rgleason is offline   Reply With Quote
Old 26-06-2019, 01:25   #13
Registered User
 
Schnapsy's Avatar

Join Date: Jan 2018
Location: Dunkirk, France
Boat: Fisher 34
Posts: 96
Images: 3
Re: Trouble starting OpenCPN

Quote:
Originally Posted by rgleason View Post
Are you absolutely sure you have this wired up properly?
https://opencpn.org/wiki/dokuwiki/do...:serial_cables

Yes, I have been using this type of cable for at least 5 years. ( https://www.schnaps.fr/articles.php?...=311&tconfig=0 )

It worked perfectly on OCN 4.8 and seems to work on OCN 5.0 since the sonar data are displayed correctly.
I do not think this cable is causing the problem (I just explained its installation, just in case) but as a new driver has been released, I will install it this WE.

However, I do not think that Opencpn freezes because of this cable ...
Schnapsy is offline   Reply With Quote
Old 26-06-2019, 06:52   #14
Registered User

Join Date: Jun 2015
Posts: 353
Re: Trouble starting OpenCPN

Quote:
Originally Posted by Schnapsy View Post


It worked perfectly on OCN 4.8 and seems to work on OCN 5.0 since the sonar data are displayed correctly.
I do not think this cable is causing the problem (I just explained its installation, just in case) but as a new driver has been released, I will install it this WE.

However, I do not think that Opencpn freezes because of this cable ...
Hi,


Do you remember if the working version was 4.8.6 or 4.8.8?
did-g is online now   Reply With Quote
Old 27-06-2019, 00:48   #15
Registered User
 
Schnapsy's Avatar

Join Date: Jan 2018
Location: Dunkirk, France
Boat: Fisher 34
Posts: 96
Images: 3
Re: Trouble starting OpenCPN

Quote:
Originally Posted by did-g View Post
Hi,
Do you remember if the working version was 4.8.6 or 4.8.8?
Very good question...
For version 4.8.6, it's certain ...
However, for version 4.8.8, I'm not sure because I had - meanwhile - removed these cables usb / serial and replace them with a multiplexer.
__________________

Schnapsy is offline   Reply With Quote
Reply

Tags
enc, opencpn

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Another hard starting 3GM-30f hard starting issue phantomracer Engines and Propulsion Systems 29 17-05-2017 03:19
Trouble starting engine when hot, soon after shutting off jipcho Engines and Propulsion Systems 15 11-01-2015 17:57
Trouble Installing (and Running) OpenCPN jdoutt OpenCPN 2 17-02-2011 15:40
Trouble Installing OpenCPN 555051 OpenCPN 1 03-02-2011 19:46



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 10:06.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2019, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.