Cruisers Forum
 


Closed Thread
  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 Rating: Thread Rating: 4 votes, 4.75 average. Display Modes
Old 26-06-2009, 02:28   #241
Registered User
 
idpnd's Avatar

Join Date: Sep 2007
Location: Almería, ES
Boat: Chiquita 46 - Libertalia
Posts: 1,558
Arrow

Thanks for your attention Dave, I will respond one by one..

Quote:
Originally Posted by bdbcat View Post
1. Soundings on Dutch charts: Surprisingly. there simply aren't any soundings on many (most??) of these inland charts. CM93 is better, really.
I find that very very hard to believe.. the inland water is mostly shallow, and these are the official charts. maybe they didn't implement the ENC spec properly?

Quote:
This kind of backtrace gets me immediately to the crux of the problem, most of the time. It is very useful, and is exactly what I do to isolate segfaults in otherwise running code.
Will do. Nice GUI for gdb btw!

Find screenshot of backtrace window for segfault attached.. Doesn't looj all that ifnormative.. Perhaps it would be better to generate textfiles to send to you?

Output from gdb:

Code:
(gdb) run
Starting program: /usr/local/bin/opencpn 
[Thread debugging using libthread_db enabled]
[New Thread 0xb69e2700 (LWP 20527)]
[New Thread 0xb6250b90 (LWP 20535)]
[Thread 0xb6250b90 (LWP 20535) exited]
[New Thread 0xb6250b90 (LWP 20540)]
[Thread 0xb6250b90 (LWP 20540) exited]
[New Thread 0xb6250b90 (LWP 20545)]
[Thread 0xb6250b90 (LWP 20545) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb69e2700 (LWP 20527)]
triangulate_single_polygon (nvert=<value optimized out>, 
    posmax=<value optimized out>, side=<value optimized out>, op=0xbc64558)
    at src/tri.c:1565
1565                  rc[ri] = v;
Current language:  auto; currently c
then:

Code:
(gdb) bt
#0  triangulate_single_polygon (nvert=<value optimized out>, 
    posmax=<value optimized out>, side=<value optimized out>, op=0xbc64558)
    at src/tri.c:1565
#1  0x08163dc9 in triangulate_monotone_polygons (nvert=30, nmonpoly=19, 
    op=0xbc64558) at src/tri.c:1499
#2  0x081658f0 in triangulate_polygon (ncontours=2, cntr=0xbc63948, 
    vertices=0xbc52ac8) at src/tri.c:555
#3  0x0815ffd8 in PolyTessGeo::PolyTessGeoTri (this=0xbc53790, poly=0xbc536b8, 
    bSENC_SM=true, ref_lat=51.625, ref_lon=4.0833332538604736)
    at src/mygeom.cpp:589
#4  0x081608c6 in PolyTessGeo (this=0xbc53790, poly=0xbc536b8, bSENC_SM=true, 
    ref_lat=51.625, ref_lon=4.0833332538604736, bUseInternalTess=false)
    at src/mygeom.cpp:305
#5  0x0814a718 in s57chart::CreateSENCRecord (this=0xaff3818, 
    pFeature=0xafb47e0, fpOut=0xaff5f80, mode=1, poReader=0xaff81b0)
    at src/s57chart.cpp:4966
#6  0x0814f7cb in s57chart::BuildSENCFile (this=0xaff3818, 
    FullPath000=@0xbff1fba0, SENCFileName=@0xbff1f9b8) at src/s57chart.cpp:3773
#7  0x08152be6 in s57chart::FindOrCreateSenc (this=0xaff3818, name=@0xbff1fba0)
    at src/s57chart.cpp:2208
#8  0x0815c77c in s57chart::Init (this=0xaff3818, name=@0xbff1fba0, 
    flags=FULL_INIT, cs=GLOBAL_COLOR_SCHEME_DAY) at src/s57chart.cpp:2012
#9  0x0807d954 in ChartDB::OpenChartFromStack (this=0xa2ca030, 
---Type <return> to continue, or q <return> to quit---
    pStack=0xa35bb08, StackEntry=0, init_flag=FULL_INIT)
    at src/chartdb.cpp:1585
#10 0x0807dd94 in ChartDB::OpenStackChartConditional (this=0xa2ca030, 
    ps=0xa35bb08, bLargest=true, bVector=true) at src/chartdb.cpp:1699
#11 0x0806d0dc in MyFrame::DoChartUpdate (this=0x9fcbce8, bSelectType=0)
    at src/chart1.cpp:3294
#12 0x0806dee4 in MyFrame::OnFrameTimer1 (this=0x9fcbce8, event=@0xbff1fe64)
    at src/chart1.cpp:2664
#13 0xb7710151 in wxAppConsole::HandleEvent ()
   from /usr/lib/libwx_baseu-2.8.so.0
#14 0xb77ae47a in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/lib/libwx_baseu-2.8.so.0
#15 0xb77af694 in wxEventHashTable::HandleEvent ()
   from /usr/lib/libwx_baseu-2.8.so.0
#16 0xb77af79b in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.8.so.0
#17 0xb7a9fda7 in wxTimerBase::Notify ()
   from /usr/lib/libwx_gtk2u_core-2.8.so.0
#18 0xb799052d in ?? () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#19 0xb6d6de46 in ?? () from /usr/lib/libglib-2.0.so.0
#20 0xb6d6d718 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#21 0xb6d70dc3 in ?? () from /usr/lib/libglib-2.0.so.0
#22 0xb6d712e2 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#23 0xb71b9309 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#24 0xb7986e95 in wxEventLoop::Run () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#25 0xb7a1d5ce in wxAppBase::MainLoop ()
   from /usr/lib/libwx_gtk2u_core-2.8.so.0
#26 0xb7a1d1a1 in wxAppBase::OnRun () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#27 0xb7749a7a in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#28 0xb7749c77 in wxEntry () from /usr/lib/libwx_baseu-2.8.so.0
#29 0x080787bc in main (argc=-747502980, argv=0x401009b0) at src/chart1.cpp:514
(gdb)
Quote:
Who said this was really a geek's forum?
Who said it wasn't?
Attached Thumbnails
Click image for larger version

Name:	Screenshot.png
Views:	190
Size:	30.9 KB
ID:	8727  
idpnd is offline  
Old 26-06-2009, 02:32   #242
Registered User
 
blubaju's Avatar

Join Date: Mar 2008
Location: where my little boat is ;-) now Philippines
Boat: Catamaran Schionning Wilderness 1320, built myself
Posts: 475
Ubuntu

Quote:
Originally Posted by idpnd View Post
Ubuntu really is best for beginners,... Might be an idea trying to get it into repositories I guess? Will research..

Gibt's natürlich auch auf Deutsch.
Merci, Efchariston, thanks, gratias, salamat po, I'll give it a try
blubaju is offline  
Old 26-06-2009, 02:34   #243
Registered User
 
Talbot's Avatar

Join Date: Jun 2004
Location: Brighton, UK
Boat: Privilege 37
Posts: 3,735
Images: 32
One of the best ways of forcing MS operating systems to designate a specific comm port for the GPS input within the 1-16 series is to use Franson GPSGate software. This takes the GPS input from windows and then forces it to form virtual ports with specific numbers to feed whatever devices you need. I have mine set up to feed one GPS serial input (via usb converter) to Maxsea, Shipplotter AIS, and Virtual Passage Planner software, and know that each time I switch my system on, the output to each of these software wil be provided at the designated com port set as a default into the software.
__________________
"Be wary of strong drink. It can make you shoot at tax collectors - and miss."
Robert A Heinlein
Talbot is offline  
Old 26-06-2009, 03:41   #244
Registered User
 
idpnd's Avatar

Join Date: Sep 2007
Location: Almería, ES
Boat: Chiquita 46 - Libertalia
Posts: 1,558
"Deze kaarten zijn in de huidige vorm testdata, dus niet foutloos, en kunnen dan ook alleen voor testdoeleinden gebruikt worden."

It does actually say the NL charts are merely test data.. go figure..
idpnd is offline  
Old 26-06-2009, 09:06   #245
Registered User

Join Date: Jun 2009
Location: Morbihan Brittany France
Boat: Hallberg Rassy 37
Posts: 65
I would also recommend Ubuntu

While Ubuntu is easy to install, I don't think it is easier than other major distributions (OpenSuSE, Fedora). Nevertheless it has a clear advantage on Laptop special devices detection. If you want WIFI, ACPI, Bluethooth, ... to work out of the box, then Ubuntu is your best friend .

Further more while recompiling OpenCPN on Linux is very easy, Dave only provides binary pre-compiled packages for Debian/Ubuntu. If you're not interested in recompiling OpenCPN then Ubuntu is the only option .

Note that if want Linux, but are not interested in doing the installation, you can buy a Mini10u notebooks pre-installed with Linux from Dell. I have no finacial relation with DELL, but the Mini10u is one of the last SSD (no hard -disk) notebook shipped pre-installed with Linux. And in my opinion SSD is a major plus on a boat. For me a good boat laptop, should have no moving parts (no hard disk, no fan) .
fulup is offline  
Old 26-06-2009, 19:49   #246
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
For idpnd....
1. Dutch ENC soundings:
Not there. Checked on 7C's "SeeMyDenc", which I consider to be something of a "gold standard" for ENC rendering, since 7Cs is on the IMO committee.

2. Your segfault on 1R5MG001.000
I see by your gdb traceback that you are using the internal tesselator built into opencpn instead of the preferred OpenGL tesselator.

I think this is the last straw. The internal tesselator is borrowed code, and breaks badly with intricate geometry. It needs major analysis and therapy. I'm ready to drop it, and assume that every system has some version of OpenGL or compatible libraries aboard. Comments, anyone?

Your workaround:
$sudo apt-get install libglu1 libglu-dev
$./configure
$make clean
$make


Take a look at config.log to verify the build, looking for something like:

configure:4975: checking for gluNewTess in -lGLU
configure:5010: g++ -o conftest -Wall -g -fexceptions -fno-stack-protector conftest.cpp -lGLU >&5
configure:5016: $? = 0
configure:5034: result: yes

Probably you already have libglu. You need libglu-dev to compile locally.

Thanks for your input.
Dave
bdbcat is offline  
Old 26-06-2009, 21:33   #247
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
For all Windows users....

I have put a Beta copy of opencpn 1.3.2 setup program on our boat website for interested folks to download and test. It has most of the stuff we have talked about here implemented. Wrenna and Kermit take note....

The link is opencpnbeta

The setup program is an .exe, and loads the new version of opencpn 1.3.1 over the top of your existing version. Your config files and chart database remain intact.

This is beta code, may have flaws, may change daily, and comes with no assurance that it won't eat all the cheese in your house.

Thanks, and good luck
Dave
bdbcat is offline  
Old 26-06-2009, 22:08   #248
Registered User
 
Viking Sailor's Avatar

Join Date: Nov 2006
Location: San Francisco Bay
Boat: Fantasia 35
Posts: 1,251
Dave,

Downloaded 1.3.1. It looks good across the pacific. Was unable to scroll with the mouse wheel. I use a wireless logitech trackball with a wheel. The OS is XP sp3. Any throughts? Anything else you want me to check?

Thanks again,

Paul
Viking Sailor is offline  
Old 26-06-2009, 23:11   #249
Registered User

Join Date: Oct 2008
Location: San Diego, CA
Boat: Beneteau Oceanis 38.1
Posts: 284
Dave,

Thanks much for the beta! It's working well at home on Windows Vista. CM93 is totally seamless now - I can just keep scrolling around the world and things work fine. Zooming in to max details in areas near 180 E/W works fine. Also, regular ENC charts seem to be working better. I'm able to load a *lot* of them and scroll all over zooming in and out without a crash. It looks like the memory management bug fixes you've done have helped tremendously without implementing an LRU algorithm.

I'll have to load it up on my boat laptop (running Windows XP) tomorrow and try it. I installed an AIS receiver on my boat today, and openCPN 1.3.0 consistently hangs when I turn AIS on. Symptoms are that openCPN comes up and runs fine with many AIS targets appearing on the display. After about a minute the program locks up. Task manager shows it consuming 100% of the CPU, and I end up having to kill openCPN from task manager. The AIS receiver is a Comar AIS Multi with the PC interface via USB through the virtual com port driver that came with the unit. It works fine with Seaclear so I think the unit and driver are working ok. I'll let you know tomorrow how the beta works.
gjorgensen is offline  
Old 27-06-2009, 00:19   #250
Registered User

Join Date: Jun 2009
Location: Morbihan Brittany France
Boat: Hallberg Rassy 37
Posts: 65
USB/Serial adaptator hack to support GPS proprietary cables.

Many of you may have notice that often GPS NMEA pc cable don't work with generic USB/Serial adaptors. This is because most GPS do not send full RS232 signalisation. Two options:
  1. Buy from the original brand an official adaptor (rarely cheap).
  2. Hack a cheap generic "Chinese" usb/db9 connector.
The problem is easy to understand and to solve, but it require you to open and hack your usb/db9 device (at less than 3euro the adaptor, the risk is minimal, even for beginers ).
  • problem: GPS does not send the "Data-Set-Ready" as a result the adaptor think the GPS is offline and do not open the connection. This lack of signalling is not a problem with real physical RS232 connector, because the driver bypass them, unfortunately it is a show stopper for most usb/db9 adaptor.
  • solution: short circuit the adaptor signal "I'm ready' to its own signal "Remote equipment (GPS) is online and ready to transmit". You may also take adavantage of the operation to short-circuit the hardware flow control (rarely necessary, but in case of).
As soon you've done those short-circuits the adaptor will think your GPS is connected and ready to transmit, even if it is not the case. As the result OpenCPN will try to read NMEA data even if GPS is offline. It may look stupid, but the direct result is that as soon your GPS will send data OpenCPN will get them, this despite the fact that your GPS/NMEA does not have a proper serial/rs232 signalling.

The only limit find an adaptor that is not to complex to open . Outside of that the operation should not take more than 5mn..

fulup is offline  
Old 27-06-2009, 01:40   #251
Registered User
 
idpnd's Avatar

Join Date: Sep 2007
Location: Almería, ES
Boat: Chiquita 46 - Libertalia
Posts: 1,558
GJ fulup!!
idpnd is offline  
Old 27-06-2009, 20:46   #252
Registered User

Join Date: Oct 2008
Location: San Diego, CA
Boat: Beneteau Oceanis 38.1
Posts: 284
The good: Whatever you've fixed in the beta version has fixed the AIS problems. It works like a champ. Everything I tried with the beta version today was solid.

The bad: The scroll wheel does not work under Windows, XP or Vista. This is just a normal old Dell wheel mouse. It acts like the scroll wheel code is either not compiled in or not activated.

On the whole much improved. Thanks Dave!
gjorgensen is offline  
Old 27-06-2009, 21:03   #253
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Windows Users:

New 1.3.1 Beta available now at previously listed link. 0400 GMT 28 June.

Scroll wheel for XP/Vista fixed. Please confirm.

Thanks
Dave
bdbcat is offline  
Old 27-06-2009, 21:44   #254
Registered User
 
Islander's Avatar

Join Date: Jan 2008
Posts: 166
Just tried the zooming with an Acer (Synaptics) Touchpad with Vista - works great.

Thanks again for a great product Dave.

Cheers.
Islander is offline  
Old 27-06-2009, 21:46   #255
Registered User
 
blubaju's Avatar

Join Date: Mar 2008
Location: where my little boat is ;-) now Philippines
Boat: Catamaran Schionning Wilderness 1320, built myself
Posts: 475
Quote:
Originally Posted by bdbcat View Post
Windows Users:

New 1.3.1 Beta available now at previously listed link. 0400 GMT 28 June.

Scroll wheel for XP/Vista fixed. Please confirm.

Thanks
Dave
Great, works, but only after switching ENC-txt off & on again, mice are Logitech MX10 & G5.
Suggestion: modern mice have wheels with side switches, wouldn't it be nice to scroll side to side with the mouse wheel, up/down with the mouse wheel and in/out with the mouse wheel same time pressing right mouse button? ;-)

after installing xport my pc went havoc (regarding gps), uninstalled it, back to GPSgate.

tried to install ubuntu 9.04 32 live cd on a hp pavillion, no way, F-keys work, whatever else (install, memory test, run from liveCD) no reaction, tried all available setting (F4 & F6), nothing. Spend 6 h reading ubuntu help sites. Any other LINUX suggestion? a live cd download in my place takes about 15h!
blubaju is offline  
Closed 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


Advertise Here


All times are GMT -7. The time now is 23:36.


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.