Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 06-03-2019, 03:22   #166
Registered User

Join Date: May 2012
Posts: 1,210
Re: OpenCPN Version 5 Beta Release 4.99.1426

Building a local copy of OpenCPN from yesterdays GitHub master for testing on Linux. This warning when opening the program. Happens each time:
Code:
11:11:27 GMT: can't seek on file descriptor 10 (error 22: Invalid argument)
11:11:27 GMT: can't find length of file on file descriptor 10 (error 0: Success)
11:11:27 GMT: can't seek on file descriptor 10 (error 22: Invalid argument)
11:11:27 GMT: can't find length of file on file descriptor 10 (error 0: Success)
Installed to /usr/local/. Ubuntu 16.04.03, 32bit. Does not stop OpenCPN. Seems to work normally.

Probably my system but reporting it here in case anyone else has seen this.
Mike
Rasbats is offline   Reply With Quote
Old 06-03-2019, 03:34   #167
Registered User

Join Date: Jun 2015
Posts: 379
Re: OpenCPN Version 5 Beta Release 4.99.1426

Quote:
Originally Posted by Rasbats View Post
Building a local copy of OpenCPN from yesterdays GitHub master for testing on Linux. This warning when opening the program. Happens each time:
Code:
11:11:27 GMT: can't seek on file descriptor 10 (error 22: Invalid argument)
11:11:27 GMT: can't find length of file on file descriptor 10 (error 0: Success)
11:11:27 GMT: can't seek on file descriptor 10 (error 22: Invalid argument)
11:11:27 GMT: can't find length of file on file descriptor 10 (error 0: Success)
Installed to /usr/local/. Ubuntu 16.04.03, 32bit. Does not stop OpenCPN. Seems to work normally.

Probably my system but reporting it here in case anyone else has seen this.
Mike
Are you using wxWidgets 3.1 ?


On linux file under /proc/ aren't seekable and 3.1 is complaining about it while testing for file 'seekability'.


Too bad O is using /proc/meminfo a lot and it makes 3.1 unusable on Linux.


Must be fixed in wx.
did-g is offline   Reply With Quote
Old 06-03-2019, 04:36   #168
Registered User

Join Date: May 2012
Posts: 1,210
Re: OpenCPN Version 5 Beta Release 4.99.1426

Should have added this from the log file:
Code:
2:24:28 GMT: Metrics:  m_display_size_mm: 338     wxDisplaySize:  1280:1024   
12:24:28 GMT: Error: can't seek on file descriptor 20 (error 22: Invalid argument)
12:24:28 GMT: Error: can't find length of file on file descriptor 20 (error 0: Success)
12:24:29 GMT: Metrics:  m_display_size_mm: 338     wxDisplaySize:  1280:1024   
12:24:29 GMT: Error: can't seek on file descriptor 20 (error 22: Invalid argument)
12:24:29 GMT: Error: can't find length of file on file descriptor 20 (error 0: Success)
12:24:29 GMT: Error: can't seek on file descriptor 20 (error 22: Invalid argument)
12:24:29 GMT: Error: can't find length of file on file descriptor 20 (error 0: Success)
12:24:29 GMT: Error: can't seek on file descriptor 20 (error 22: Invalid argument)
12:24:29 GMT: Error: can't find length of file on file descriptor 20 (error 0: Success)
12:24:29 GMT: Error: can't seek on file descriptor 20 (error 22: Invalid argument)
12:24:29 GMT: Error: can't find length of file on file descriptor 20 (error 0: Success)
12:24:29 GMT: Error: can't seek on file descriptor 20 (error 22: Invalid argument)
12:24:29 GMT: Error: can't find length of file on file descriptor 20 (error 0: Success)
12:24:29 GMT: Error: can't seek on file descriptor 20 (error 22: Invalid argument)
12:24:29 GMT: Error: can't find length of file on file descriptor 20 (error 0: Success)
12:24:29 GMT: Error: can't seek on file descriptor 20 (error 22: Invalid argument)
12:24:29 GMT: Error: can't find length of file on file descriptor 20 (error 0: Success)
And in other places as well. wxWidgets 3.1.2

Mike
Rasbats is offline   Reply With Quote
Old 06-03-2019, 05:14   #169
Registered User

Join Date: Jun 2010
Location: St. Petersburg, Florida
Boat: Gemini 3200
Posts: 983
Re: OpenCPN Version 5 Beta Release 4.99.1426

I have experienced several Windows crashes (blue screen) while running OpenCPN 4.99.1426+c1bad7c on my Toshiba Satellite running Windows 7. I first noticed the problem while I was exploring some charts of Cuba. The most recent crash occurred with NOAA charts only. Maybe there is a problem with vector charts, maybe it is a function of how long the program has run. Maybe it's a completely unrelated Windows problem, but so far it only happens when running OpenCPN, so I suspect there's a connection. I'm attaching a log file with every session of the 1426 build as well as the two Windows dump files from the latest crash.


I am using OpenGL if that makes any difference.


Fabbian
Attached Files
File Type: doc opencpn.log.doc (72.3 KB, 21 views)
File Type: doc 030619-18517-01.dmp.doc (268.6 KB, 19 views)
File Type: doc WER-38079-0.sysdata.xml.doc (184.7 KB, 16 views)
fgd3 is offline   Reply With Quote
Old 06-03-2019, 06:16   #170
Registered User

Join Date: Sep 2012
Location: Baikal
Posts: 582
Re: OpenCPN Version 5 Beta Release 4.99.1426

Here there is PhotoLayer, vfkaps plugins for overlay small raster to vector!
Why spoil MBTiles which was designed to store a large amount of information and cover large areas!
This format should not be used as an overlay, but as an independent source, and satellite maps are more accurate and visible than vector maps. Combine satellite maps and vector in two canvases and get the maximum benefit.
I do not understand!
They killed the possibility of using only satellite maps of large coverage from different sets of sources
Baikal is offline   Reply With Quote
Old 06-03-2019, 06:41   #171
Registered User

Join Date: Feb 2012
Location: Austria
Posts: 320
Re: OpenCPN Version 5 Beta Release 4.99.1426

W10 O4.99-1428
degration: when waypoint is named e.g. @~~Vigo the next tide values is not shown anymore in the route details - this was a very useful, however somehow not promoted feature in previous versions. Please enable linking to tides again.
skipperearly is offline   Reply With Quote
Old 06-03-2019, 06:55   #172
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,405
Re: OpenCPN Version 5 Beta Release 4.99.1426

Baikal...


1. "I made the whole world of satellite maps up to scale 9, the volume is only 650mb, it was beautiful and clear. Now this map is not displayed."
If you could provide a link, I'll check this file. It should display...

2. "Maps now do not apply a display scale and are always shown. This is a very heavy load on the PC."
Tiles display if zoomed in far enough, relative to their advertised scale. Zoom out, and the tile will disappear.



3. "Previously, I could place a low resolution map under a high resolution map. Now only the base map is under it and the tile cutting grid has begun to shine through."
I cannot see how a photo-tiles-only display could in any way be suitable for navigation. No NAVAIDS, no depth soundings, no text.... Normal use would suggest having a useful cartographic chart as a backing image.


4. "Need a guide on the proper preparation of MBTiles. Similar to the ENC cells and their scale."

A good idea, and I agree. We also need to reasonably handle the existing base of MBTiles sets widely available on the net today.


Thanks for the comments
Dave
bdbcat is offline   Reply With Quote
Old 06-03-2019, 07:00   #173
Registered User

Join Date: Jun 2010
Location: St. Petersburg, Florida
Boat: Gemini 3200
Posts: 983
Re: OpenCPN Version 5 Beta Release 4.99.1426

Here's more information about the crashes I've been experiencing on my Windows 7 Toshiba Satellite with OpenCPN 4.99.1426+c1bad7c.


In the 08:40:09 session I started OpenCPN with my home raster chart and let it sit for almost ten minutes. Then I exited the program. No crash.


In the 08:50:35 session I started OpenCPN, switched to the vector chart of the same area. I didn't move the boat, scroll, pan, or anything else. After about a minute the system crashed. The Windows crash files I've attached are from that crash.


In the 09:04:18 session I started OpenCPN, turned off OpenGL, and exited the program.


In the 09:04:52 session I started OpenCPN, switched to the vector chart with the same area as my home chart, and let it sit for 32 minutes. No crash.


It seems pretty clear the problem has to do with using vector charts when OpenGL is selected. You may not want to pursue the issue since Windows 7 is pretty old and probably includes a buggy version of OpenGL. Switching off OpenGL seems to be a satisfactory workaround for me.



Fabbian
Attached Files
File Type: doc opencpn.log.doc (25.2 KB, 16 views)
File Type: doc 030619-14554-01.dmp.doc (268.6 KB, 17 views)
File Type: doc WER-34445-0.sysdata.xml.doc (185.1 KB, 19 views)
fgd3 is offline   Reply With Quote
Old 06-03-2019, 07:19   #174
Registered User

Join Date: Sep 2009
Location: Angers - France
Boat: Beneteau First 29 Ptizef
Posts: 844
Re: OpenCPN Version 5 Beta Release 4.99.1426

Hi All,
About compiling on Windows 10, am a little bit confused.
In the manual it is said that we should use wxWidgets-3.1.2 and v141 but what is coming from sources and buildwin-4.99 is version 3.1.1 and v140 for the DLLs. The last beta is also based on 3.1.1.
Do I have to revert back to 3.1.1 to be at the same level as the current development.
Thanks for your help
JP Joubert
Ptizef is offline   Reply With Quote
Old 06-03-2019, 07:32   #175
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,405
Re: OpenCPN Version 5 Beta Release 4.99.1426

jp...


Windows builds should be using wx3.1.2.


What says your logfile?


Code:
08:40:09: wxWidgets version: wxWidgets 3.1.2 Microsoft Windows NT 64 bit wxMSW

Dave
bdbcat is offline   Reply With Quote
Old 06-03-2019, 08:19   #176
Registered User

Join Date: Mar 2017
Location: Brittany, France
Boat: First 18
Posts: 323
Re: OpenCPN Version 5 Beta Release 4.99.1426

Quote:
Originally Posted by nohal View Post
Looking at your crashes, the first one does not even seem to be in wx, but rather lower, maybe in Wayland's X11 emulation layer.
The other one seems to be in wmm plugin, probably in https://github.com/OpenCPN/OpenCPN/b...mm_pi.cpp#L593 (Never seen this crash before) and I would first try to disable it as well to se how far you can get.

When disabling the wmm plugin, there is no crash anymore, but OpenCPN hangs instead with a partially rendered window (see attachement):
#0 0x00007ffff6292af6 in wxStatusBar::GetFieldRect(int, wxRect&) const ()
at /usr/lib/x86_64-linux-gnu/libwx_gtk3u_core-3.0.so.0
#1 0x00007ffff629257e in wxStatusBar:rawField(wxDC&, int, int) ()
at /usr/lib/x86_64-linux-gnu/libwx_gtk3u_core-3.0.so.0
#2 0x00007fffb9d94536 in wxStatusBar::OnPaint(wxPaintEvent&) ()
at /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#3 0x00007ffff5d3b4be in wxEvtHandler::ProcessEventIfMatchesId(wxEventTable EntryBase const&, wxEvtHandler*, wxEvent&) () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#4 0x00007ffff5d3b5c3 in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) ()
at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#5 0x00007ffff5d3b98b in wxEvtHandler::TryHereOnly(wxEvent&) ()
at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#6 0x00007ffff5d3ba13 in wxEvtHandler::ProcessEventLocally(wxEvent&) ()
at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#7 0x00007ffff5d3ba75 in wxEvtHandler::ProcessEvent(wxEvent&) ()
at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#8 0x00007ffff5d3b7d7 in wxEvtHandler::SafelyProcessEvent(wxEvent&) ()
at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#9 0x00007ffff626ae8f in wxWindow::GTKSendPaintEvents(_cairo*) ()
at /usr/lib/x86_64-linux-gnu/libwx_gtk3u_core-3.0.so.0

...
#37 0x00005555557e633e in ChartCanvas::SetCursorStatus(double, double)
(this=0x5555565d8000, cursor_lat=48.813038540262269, cursor_lon=-3.4411027639623879)
at /home/stelian/TMP/OpenCPN_stelian.git/src/chcanv.cpp:4034
#38 0x00005555557e6dc8 in ChartCanvas::OnCursorTrackTimerEvent(wxTimerEvent& )
(this=0x5555565d8000, event=...) at /home/stelian/TMP/OpenCPN_stelian.git/src/chcanv.cpp:4016
...


Quote:
Originally Posted by nohal View Post
I have done a little experiment on my machine, removed the the WX libs linked against gtk2, installed the ones linked against gtk3, built opencpn (nothing special, cmake -DOCPN_FORCE_GTK3 ..;make) and the product works as expected for me, so if I didn't see your backtraces, I would say it simply has no problem with GTK3 and WX as delivered on the latest LTS Ubuntu...
Pavel

Ok, if it works on Bionic I'll assume the WX/GTK3/Wayland libs are buggy on Cosmic. So I'll remain for now with wx 3.0.2 / gtk2 which works ok.


So, if we go back to the original report, I have problems detecting my monitor physical width because of the commit dd12fde0. The detection is resolved if using GTK3 (either using the new or the old API). So I guess the real question is are there more users of hidpi screens or more users of multi-monitor setups ? (I don't even think of those who have mixed hidpi multi-monitor setups...)


Stelian.
Attached Thumbnails
Click image for larger version

Name:	incomplete.jpg
Views:	60
Size:	75.1 KB
ID:	187381  
stelian is offline   Reply With Quote
Old 06-03-2019, 09:01   #177
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,212
Re: OpenCPN Version 5 Beta Release 4.99.1426

Quote:
Originally Posted by stelian View Post
When disabling the wmm plugin, there is no crash anymore, but OpenCPN hangs instead with a partially rendered window (see attachement):
#0 0x00007ffff6292af6 in wxStatusBar::GetFieldRect(int, wxRect&) const ()
at /usr/lib/x86_64-linux-gnu/libwx_gtk3u_core-3.0.so.0
#1 0x00007ffff629257e in wxStatusBar:rawField(wxDC&, int, int) ()
at /usr/lib/x86_64-linux-gnu/libwx_gtk3u_core-3.0.so.0
#2 0x00007fffb9d94536 in wxStatusBar::OnPaint(wxPaintEvent&) ()
at /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#3 0x00007ffff5d3b4be in wxEvtHandler::ProcessEventIfMatchesId(wxEventTable EntryBase const&, wxEvtHandler*, wxEvent&) () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#4 0x00007ffff5d3b5c3 in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) ()
at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#5 0x00007ffff5d3b98b in wxEvtHandler::TryHereOnly(wxEvent&) ()
at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#6 0x00007ffff5d3ba13 in wxEvtHandler::ProcessEventLocally(wxEvent&) ()
at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#7 0x00007ffff5d3ba75 in wxEvtHandler::ProcessEvent(wxEvent&) ()
at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#8 0x00007ffff5d3b7d7 in wxEvtHandler::SafelyProcessEvent(wxEvent&) ()
at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#9 0x00007ffff626ae8f in wxWindow::GTKSendPaintEvents(_cairo*) ()
at /usr/lib/x86_64-linux-gnu/libwx_gtk3u_core-3.0.so.0

...
#37 0x00005555557e633e in ChartCanvas::SetCursorStatus(double, double)
(this=0x5555565d8000, cursor_lat=48.813038540262269, cursor_lon=-3.4411027639623879)
at /home/stelian/TMP/OpenCPN_stelian.git/src/chcanv.cpp:4034
#38 0x00005555557e6dc8 in ChartCanvas::OnCursorTrackTimerEvent(wxTimerEvent& )
(this=0x5555565d8000, event=...) at /home/stelian/TMP/OpenCPN_stelian.git/src/chcanv.cpp:4016
...





Ok, if it works on Bionic I'll assume the WX/GTK3/Wayland libs are buggy on Cosmic. So I'll remain for now with wx 3.0.2 / gtk2 which works ok.


So, if we go back to the original report, I have problems detecting my monitor physical width because of the commit dd12fde0. The detection is resolved if using GTK3 (either using the new or the old API). So I guess the real question is are there more users of hidpi screens or more users of multi-monitor setups ? (I don't even think of those who have mixed hidpi multi-monitor setups...)


Stelian.
Stelian...
I wonder where the wx 3.0.2 libs come from - https://packages.ubuntu.com/search?s...searchon=names says it should also be 3.0.4 like in bionic...

It would be interesting to see what the pixel resolution reported for multi-monitor systems actually is. If it was the total, I would say we can easily assume that ratio closer to 32:9 than to 16:9 is a multi-monitor setup and pick the correct, or better say less broken, method...

Pavel
nohal is offline   Reply With Quote
Old 06-03-2019, 09:02   #178
Registered User

Join Date: Sep 2012
Location: Baikal
Posts: 582
Re: OpenCPN Version 5 Beta Release 4.99.1426

Quote:
Originally Posted by bdbcat View Post
Baikal...
1. "I made the whole world of satellite maps up to scale 9, the volume is only 650mb, it was beautiful and clear. Now this map is not displayed."
If you could provide a link, I'll check this file. It should display...
2. "Maps now do not apply a display scale and are always shown. This is a very heavy load on the PC."
Tiles display if zoomed in far enough, relative to their advertised scale. Zoom out, and the tile will disappear.
3. "Previously, I could place a low resolution map under a high resolution map. Now only the base map is under it and the tile cutting grid has begun to shine through."
I cannot see how a photo-tiles-only display could in any way be suitable for navigation. No NAVAIDS, no depth soundings, no text.... Normal use would suggest having a useful cartographic chart as a backing image.
4. "Need a guide on the proper preparation of MBTiles. Similar to the ENC cells and their scale."
A good idea, and I agree. We also need to reasonably handle the existing base of MBTiles sets widely available on the net today.

Thanks for the comments
Dave
1. If you could provide a link, I'll check this file. It should display ...

Under the link all my satellite maps involved in the testing.
https://www.dropbox.com/s/5imxrprs43b8grn/SAT.zip?dl=1

2. Tiles display if zoomed in far enough, relative to their advertised scale. Zoom out, and the tile will disappear.
3. I cannot see how a photo-tiles-only display could in any way be suitable for navigation. No NAVAIDS, no depth soundings, no text.... Normal use would suggest having a useful cartographic chart as a backing image.

I recorded a video of how everything worked well on version 1426 and how it became in 1428.
https://www.dropbox.com/s/jsy7nll21l...Tiles.mp4?dl=0
I note that I use satellite maps as a separate group of maps. Split into two canvases where to the left are satellite maps on the right ENC. On high-quality satellite images you can clearly see stones, underwater destroyed obstacles to shallow waters and coastal structures. We need experience for the interpretation of information on satellite images. In any case, the two types of charts complement each other.
And if you can implement a hybrid overlay of information from ENC to MBTiles with enabling and disabling this function in the chart Options, it will be just great!

You can leave as is now.
But if you use MBTiles as one main source in a selected charts groups, then the wish to make it functional as in version 1426
Attached Thumbnails
Click image for larger version

Name:	screen-photofusion-med.jpg
Views:	61
Size:	132.6 KB
ID:	187383  
Baikal is offline   Reply With Quote
Old 06-03-2019, 09:08   #179
Registered User

Join Date: Mar 2017
Location: Brittany, France
Boat: First 18
Posts: 323
Re: OpenCPN Version 5 Beta Release 4.99.1426

Pavel,


Quote:
Originally Posted by nohal View Post
Stelian...
I wonder where the wx 3.0.2 libs come from - https://packages.ubuntu.com/search?s...searchon=names says it should also be 3.0.4 like in bionic...

Sorry, it was a typo. I have the standard Ubuntu 3.0.4 libwx libs.


Stelian.
stelian is offline   Reply With Quote
Old 06-03-2019, 09:35   #180
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: OpenCPN Version 5 Beta Release 4.99.1426

Left-clicking on a quilted MBTile chart, in the piano bar, hides the chart. Using a separate MBTile chart group.

Surely a mistake??

Thomas
cagney is offline   Reply With Quote
Reply

Tags
enc, lease, opencpn


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
OpenCPN Beta Version 4.6.26 Release Candidate bdbcat OpenCPN 21 11-08-2017 19:51
OpenCPN Beta test 4.1.1108 Release bdbcat OpenCPN 694 14-01-2016 07:10
OpenCPN Beta test 4.1.1022 Release bdbcat OpenCPN 122 07-11-2015 01:12
OpenCPN Beta test 4.1.925 Release bdbcat OpenCPN 177 04-11-2015 08:16
OpenCPN Beta test 4.1.602 Release bdbcat OpenCPN 193 13-10-2015 08:19

Advertise Here


All times are GMT -7. The time now is 09:02.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.