Cruisers Forum
 


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 14-07-2014, 04:22   #1201
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,628
Images: 2
Re: Beta Test / Technical

Does this mean you can add an image handler on the fly in the plugin code, by calling Addhandler? Or do you use this call to include TIF in the compile of wxWidgets 2.8.12 dlls?

wxWidgets: wxImage Class Reference

Quote:
static void wxImage::AddHandler ( wxImageHandler * handler)
static Register an image handler.
Typical example of use:
wxImage::AddHandler(new wxPNGHandler);

See Available image handlers for a list of the available handlers. You can also use wxInitAllImageHandlers() to add handlers for all the image formats supported by wxWidgets at once.
Parameters handlerA heap-allocated handler object which will be deleted by wxImage if it is removed later by RemoveHandler() or at program shutdown.
rgleason is offline   Reply With Quote
Old 14-07-2014, 04:38   #1202
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,628
Images: 2
Re: Beta Test / Technical

I look in
C:\wxWidgets-2.8.12\build\bakefiles
Bakefiles.bkgen and it looks to me like it has a wildcard for all the *.bkl files

This is pretty complex and I am at the bottom of the process here I think.

Also found this tidbit, which is a guy having trouble compiling without the tif library... but then he says it gets to be 2.4 mb.
http://forums.codeblocks.org/index.p...c=17514.0;wap2
rgleason is offline   Reply With Quote
Old 15-07-2014, 06:05   #1203
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,628
Images: 2
Re: Beta Test / Technical

On my computer using wxWidgets2.8.12 copied from Pavel two years ago,
it looks to me like TIFF is enabled.
Under C:\wxWidgets-2.8.12\include\wx\imageTIFF.h

In readme C:\wxWidgets-2.8.12\build
autogen.mk is a makefile provided to automatically update the GNU autotools
build system. It will run Bakefile, aclocal, and autoconf as appropriate.

---there is an TIFF bakefile... tiff.bkl
which exists under C:\wxWidgets-2.8.12\build\bakefiles

======

C:\wxWidgets-2.8.12\build\script\setup.h

under DEBUG if statement
Line 50-52
#if wxUSE_LIBTIFF
#pragma comment(lib,"wxtiffd")
#endif
Line 47-50
#if wxUSE_LIBPNG
#pragma comment(lib,"wxpngd")
#endif

It is also at line 99 which is under RELEASE if statment
#if wxUSE_LIBTIFF
#pragma comment(lib,"wxtiff")
#endif


So why does weatherfax_pi FAIL when trying to read TIFF?
rgleason is offline   Reply With Quote
Old 15-07-2014, 10:19   #1204
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: Beta Test / Technical

As pointed out it only fails for monochrome TIFF and only in windows.

Maybe this issue goes away with wx version 3?
seandepagnier is offline   Reply With Quote
Old 17-07-2014, 17:41   #1205
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,628
Images: 2
Re: Beta Test / Technical

Re two posts above about tiff problem with monochrome in windows. We have a temp solution for this. Pavel found a small freeware converter .... The plugin now works for Win dows. Thankyou sean and pavel.

Sent from my SCH-I545 using Cruisers Sailing Forum mobile app
rgleason is offline   Reply With Quote
Old 02-08-2014, 15:12   #1206
Registered User
 
Temptress's Avatar

Join Date: Apr 2009
Location: On the sea; Gone saiing
Boat: Jenneau SO 47
Posts: 29
Thumbs down Re: Beta Test / Technical

Just upgraded to the latest Beta on Ubuntu.

OpenCPN Version 3.3.1931 Build 2014-07-31
Ununtu - 14.04 trusty lts

When I select the 'Options' button the application crashes out. Can't find an error messages or any log entries. Previous OPENCPN version was great.

Any ideas anyone?
Temptress is offline   Reply With Quote
Old 02-08-2014, 15:43   #1207
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,207
Re: Beta Test / Technical

Trusty...
Works just fine on my 14.04 testing machine. Please, if you can, run it using gdb and post a backtrace of the crash.
Install gdb
Code:
sudo apt-get install gdb
Run OpenCPN
Code:
gdb opencpn
gdb opencpn
GNU gdb (GDB) 7.6.2 (Debian 7.6.2-1.1+b1)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/bin/opencpn...done.
(gdb) run
After it crashes, do
Code:
(gdb) bt
and post the output

If you can't, try to get rid of your configuration for a while and see if it helps. If it does, post the config file you had while OpenCPN was crashing. To do it:
Code:
mv ~/.opencpn/opencpn.conf ~/.opencpn/opencpn.conf.bak
The one we will then be interested in is the ~/.opencpn/opencpn.conf.bak

Pavel
nohal is offline   Reply With Quote
Old 03-08-2014, 05:26   #1208
Registered User
 
Temptress's Avatar

Join Date: Apr 2009
Location: On the sea; Gone saiing
Boat: Jenneau SO 47
Posts: 29
Re: Beta Test / Technical

Pavel

output is:


#0 memset () at ../sysdeps/x86_64/rtld-memset.S:33
#1 0x00007ffff7de0bf9 in _dl_map_object_from_fd (
name=name@entry=0x1be8db0 "/usr/lib/opencpn/libwatchdog_amd64_pi110_v10_pi.so", fd=<optimized out>, fbp=fbp@entry=0x7fffffffcdc8,
realname=<optimized out>, loader=loader@entry=0x0, l_type=l_type@entry=2,
mode=mode@entry=-1879048190, stack_endp=stack_endp@entry=0x7fffffffcdc0,
nsid=nsid@entry=0) at dl-load.c:1393
#2 0x00007ffff7de2e00 in _dl_map_object (loader=0x0,
loader@entry=0x7ffff7ff94d0,
name=name@entry=0x1be8db0 "/usr/lib/opencpn/libwatchdog_amd64_pi110_v10_pi.so", type=type@entry=2, trace_mode=trace_mode@entry=0,
mode=mode@entry=-1879048190, nsid=<optimized out>) at dl-load.c:2605
#3 0x00007ffff7deea54 in dl_open_worker (a=a@entry=0x7fffffffd348)
at dl-open.c:235
#4 0x00007ffff7de9ff4 in _dl_catch_error (
objname=objname@entry=0x7fffffffd338,
errstring=errstring@entry=0x7fffffffd340,
mallocedp=mallocedp@entry=0x7fffffffd330,
operate=operate@entry=0x7ffff7dee9a0 <dl_open_worker>,
args=args@entry=0x7fffffffd348) at dl-error.c:187
#5 0x00007ffff7dee3bb in _dl_open (
file=0x1be8db0 "/usr/lib/opencpn/libwatchdog_amd64_pi110_v10_pi.so",
mode=-2147483646, caller_dlopen=<optimized out>, nsid=-2, argc=1,
---Type <return> to continue, or q <return> to quit---
argv=0x7fffffffe018, env=0xbf1f20) at dl-open.c:661
#6 0x00007ffff4b4002b in dlopen_doit (a=a@entry=0x7fffffffd560) at dlopen.c:66
#7 0x00007ffff7de9ff4 in _dl_catch_error (objname=0xbf3740,
errstring=0xbf3748, mallocedp=0xbf3738,
operate=0x7ffff4b3ffd0 <dlopen_doit>, args=0x7fffffffd560)
at dl-error.c:187
#8 0x00007ffff4b4062d in _dlerror_run (
operate=operate@entry=0x7ffff4b3ffd0 <dlopen_doit>,
args=args@entry=0x7fffffffd560) at dlerror.c:163
#9 0x00007ffff4b400c1 in __dlopen (file=<optimized out>, mode=<optimized out>)
at dlopen.c:87
#10 0x00007ffff7b5454d in wxDynamicLibrary::RawLoad(wxString const&, int) ()
from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#11 0x00007ffff7afa482 in wxDynamicLibrary::Load(wxString const&, int) ()
from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#12 0x00000000006d0162 in wxDynamicLibrary::wxDynamicLibrary(wxString const&, int) ()
#13 0x00000000006c3666 in PlugInManager::LoadPlugIn(wxString) ()
#14 0x00000000006c1fe0 in PlugInManager::LoadAllPlugIns(wxString const&, bool)
()
#15 0x0000000000688fb2 in options::CreateControls() ()
#16 0x0000000000672297 in options:ptions(MyFrame*, int, wxString const&, wxPoint const&, wxSize const&, long) ()
---Type <return> to continue, or q <return> to quit---
#17 0x000000000051b26e in MyFrame:oOptionsDialog() ()
#18 0x000000000051899e in MyFrame::OnToolLeftClick(wxCommandEvent&) ()
#19 0x00007ffff7b68966 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEn tryBase const&, wxEvtHandler*, wxEvent&) ()
from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#20 0x00007ffff7b68a0b in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#21 0x00007ffff7b68d77 in wxEvtHandler::ProcessEvent(wxEvent&) ()
from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#22 0x00007ffff7b68d00 in wxEvtHandler::ProcessEvent(wxEvent&) ()
from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#23 0x00007ffff7760ef9 in wxWindowBase::TryParent(wxEvent&) ()
from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
#24 0x00007ffff7b688c8 in wxEvtHandler::ProcessPendingEvents() ()
from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#25 0x00007ffff7ae6161 in wxAppConsole::ProcessPendingEvents() ()
from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#26 0x00007ffff76f4d4e in wxAppBase::ProcessIdle() ()
from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
#27 0x00007ffff766fdb1 in ?? ()
from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
#28 0x00007ffff38d2ce5 in g_main_context_dispatch ()
from /lib/x86_64-linux-gnu/libglib-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#29 0x00007ffff38d3048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007ffff38d330a in g_main_loop_run ()
from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007ffff462e447 in gtk_main ()
from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#32 0x00007ffff768328a in wxEventLoop::Run() ()
from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
#33 0x00007ffff76f4b4c in wxAppBase::MainLoop() ()
from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
#34 0x00007ffff7b15e5d in wxEntry(int&, wchar_t**) ()
from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#35 0x000000000050d166 in main ()



If I remove the conf file ...mv ~/.opencpn/opencpn.conf ~/.opencpn/opencpn.conf.bak

then opencpn starts tells me 'no charts installed go to options...' and crashes straight away.

gdb bt output:

#0 memset () at ../sysdeps/x86_64/rtld-memset.S:33
#1 0x00007ffff7de0bf9 in _dl_map_object_from_fd (
name=name@entry=0x17686f0 "/usr/lib/opencpn/libwatchdog_amd64_pi110_v10_pi.so", fd=<optimized out>, fbp=fbp@entry=0x7fffffffc7e8,
realname=<optimized out>, loader=loader@entry=0x0, l_type=l_type@entry=2,
mode=mode@entry=-1879048190, stack_endp=stack_endp@entry=0x7fffffffc7e0,
nsid=nsid@entry=0) at dl-load.c:1393
#2 0x00007ffff7de2e00 in _dl_map_object (loader=0x0,
loader@entry=0x7ffff7ff94d0,
name=name@entry=0x17686f0 "/usr/lib/opencpn/libwatchdog_amd64_pi110_v10_pi.so", type=type@entry=2, trace_mode=trace_mode@entry=0,
mode=mode@entry=-1879048190, nsid=<optimized out>) at dl-load.c:2605
#3 0x00007ffff7deea54 in dl_open_worker (a=a@entry=0x7fffffffcd68)
at dl-open.c:235
#4 0x00007ffff7de9ff4 in _dl_catch_error (
objname=objname@entry=0x7fffffffcd58,
errstring=errstring@entry=0x7fffffffcd60,
mallocedp=mallocedp@entry=0x7fffffffcd50,
operate=operate@entry=0x7ffff7dee9a0 <dl_open_worker>,
args=args@entry=0x7fffffffcd68) at dl-error.c:187
#5 0x00007ffff7dee3bb in _dl_open (
file=0x17686f0 "/usr/lib/opencpn/libwatchdog_amd64_pi110_v10_pi.so",
mode=-2147483646, caller_dlopen=<optimized out>, nsid=-2, argc=1,
argv=0x7fffffffe018, env=0xbf1f20) at dl-open.c:661
#6 0x00007ffff4b4002b in dlopen_doit (a=a@entry=0x7fffffffcf80) at dlopen.c:66
#7 0x00007ffff7de9ff4 in _dl_catch_error (objname=0xbf3740,
errstring=0xbf3748, mallocedp=0xbf3738,
operate=0x7ffff4b3ffd0 <dlopen_doit>, args=0x7fffffffcf80)
at dl-error.c:187
#8 0x00007ffff4b4062d in _dlerror_run (
operate=operate@entry=0x7ffff4b3ffd0 <dlopen_doit>,
args=args@entry=0x7fffffffcf80) at dlerror.c:163
#9 0x00007ffff4b400c1 in __dlopen (file=<optimized out>, mode=<optimized out>)
at dlopen.c:87
#10 0x00007ffff7b5454d in wxDynamicLibrary::RawLoad(wxString const&, int) ()
from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#11 0x00007ffff7afa482 in wxDynamicLibrary::Load(wxString const&, int) ()
from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#12 0x00000000006d0162 in wxDynamicLibrary::wxDynamicLibrary(wxString const&, int) ()
#13 0x00000000006c3666 in PlugInManager::LoadPlugIn(wxString) ()
#14 0x00000000006c1fe0 in PlugInManager::LoadAllPlugIns(wxString const&, bool)
()
#15 0x0000000000688fb2 in options::CreateControls() ()
#16 0x0000000000672297 in options:ptions(MyFrame*, int, wxString const&, wxPoint const&, wxSize const&, long) ()
---Type <return> to continue, or q <return> to quit---
#17 0x000000000051b26e in MyFrame:oOptionsDialog() ()
#18 0x0000000000510aa6 in MyApp::OnInit() ()
#19 0x0000000000530505 in wxAppConsole::CallOnInit() ()
#20 0x00007ffff7b15e4c in wxEntry(int&, wchar_t**) ()
from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#21 0x000000000050d166 in main ()
Temptress is offline   Reply With Quote
Old 03-08-2014, 06:32   #1209
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,396
Re: Beta Test / Technical

Temptress...

There is a problem with one of your installed PlugIns.

Simple workaround:
#rm /usr/lib/opencpn/libwatchdog_amd64_pi110_v10_pi.so

Now, to the root cause.
Where did you download this PlugIn from?
We know that this particular version of this PlugIn has troubles, but have not encountered it on AMD64 architecture yet.

Any info you can provide will be appreciated.

Thanks
Dave
bdbcat is offline   Reply With Quote
Old 03-08-2014, 07:06   #1210
Registered User
 
Temptress's Avatar

Join Date: Apr 2009
Location: On the sea; Gone saiing
Boat: Jenneau SO 47
Posts: 29
Re: Beta Test / Technical

Dave

removed the plugin and it still crashes.......

FYI the plugins were downloaded from the link on OpenCPN.org

as i said - all fine on the previous beta build. Also noticed that OpenCPN crashed sometimes when I close the 'Show AIS Targets' popup - but not every time here!

BTW is running on INTEL \not AMD

Genuine Intel® CPU U2300 @ 1.20GHz × 2
Temptress is offline   Reply With Quote
Old 03-08-2014, 07:13   #1211
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,396
Re: Beta Test / Technical

Temptress...

OK, lets temporarily move or rename all the PlugIns.

#mkdir /usr/lib/opencpn/pi_save
#cp /usr/lib/opencpn/lib*.so /usr/lib/opencpn/pi_save
#rm /usr/lib/opencpn/lib*.so

If this does not work, we should look again at the gdb dump results as before.

Dave
bdbcat is offline   Reply With Quote
Old 03-08-2014, 07:20   #1212
Registered User
 
Temptress's Avatar

Join Date: Apr 2009
Location: On the sea; Gone saiing
Boat: Jenneau SO 47
Posts: 29
Re: Beta Test / Technical

dave

that's done the trick - Options working now.

Now to get the plugins working......

perhaps I should download a new set?
Temptress is offline   Reply With Quote
Old 03-08-2014, 07:29   #1213
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,396
Re: Beta Test / Technical

Temptress...

First try to re-enable (i.e. copy to /usr/lib/opencpn) the two built-in plugins, GRIB and dashboard. They are the most reliable, tested, and built with the same tooltree as your base installation.

Dave
bdbcat is offline   Reply With Quote
Old 03-08-2014, 08:15   #1214
Registered User
 
Temptress's Avatar

Join Date: Apr 2009
Location: On the sea; Gone saiing
Boat: Jenneau SO 47
Posts: 29
Re: Beta Test / Technical

Quote:
Originally Posted by bdbcat View Post
Temptress...

First try to re-enable (i.e. copy to /usr/lib/opencpn) the two built-in plugins, GRIB and dashboard. They are the most reliable, tested, and built with the same tooltree as your base installation.

Dave

Dave - due to bad fingers I have deleted the 2 built-in plugins - do you know where can download them again?

Tried the AIS radar and status bar plugins - workng OK.....
Temptress is offline   Reply With Quote
Old 03-08-2014, 08:28   #1215
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,207
Re: Beta Test / Technical

Quote:
Originally Posted by Temptress View Post
Dave - due to bad fingers I have deleted the 2 built-in plugins - do you know where can download them again?

Tried the AIS radar and status bar plugins - workng OK.....
You can't download them separately, have to reinstall opencpn or open the deb package with "Archive Manager" end extract them from there.

Pavel
nohal is offline   Reply With Quote
Reply


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
Beta Marine Diesel michaelmrc Engines and Propulsion Systems 48 23-03-2016 13:44
Need some technical advice....antennas. Just a Tinch Marine Electronics 15 01-12-2007 15:57
Blue Sea Systems Technical Brief GordMay Electrical: Batteries, Generators & Solar 0 16-03-2007 04:16
technical difficulties witchcraft The Sailor's Confessional 1 30-05-2005 14:09
Dow Corning Technical Manual GordMay The Library 0 12-04-2005 16:25

Advertise Here


All times are GMT -7. The time now is 15:00.


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.