|
|
11-03-2013, 17:35
|
#241
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 18,131
|
Re: WeatherFax...
Quote:
Is this another weird NON-Polar projection?
00_UKMet_Boden+100-Polar.gif
Opencpn 3.2 is not turned on. (Sorry I meant OpenGL, it was getting late I guess.)
I am going to have to try this again tomorrow morning with Debug version.
|
After renaming my opencpn-git file, running a git clone to create a clean opencpn-git and debug environment, using Debug I found that this file had some break lines similar to some other polars tested.
In the popup window it was bitmap.cpp Line 802
In the call stack it was
> wxbase28ud_vc_custom.dll!wxTrap() Line 678 C++
wxmsw28ud_core_vc_custom.dll!wxGDIImage::IsOk() Line 158 + 0x11 bytes C++
|
|
|
11-03-2013, 18:53
|
#243
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 18,131
|
Re: WeatherFax...
Running Debug on the huge 15mb Wav file in this post:
http://www.cruisersforum.com/forums/...ml#post1181530
The screen shot shows "Image.cpp 1454".
This is the call stack.
Code:
KernelBase.dll!74df3219()
[Frames below may be incorrect and/or missing, no symbols loaded for KernelBase.dll]
> wxbase28ud_vc_custom.dll!wxTrap() Line 678 C++
wxbase28ud_vc_custom.dll!DoShowAssertDialog(const wxString & msg) Line 753 C++
wxbase28ud_vc_custom.dll!wxAppTraitsBase::ShowAssertDialog(const wxString & msgOriginal) Line 557 + 0x9 bytes C++
wxmsw28ud_core_vc_custom.dll!wxGUIAppTraitsBase::ShowAssertDialog(const wxString & msg) Line 635 C++
wxbase28ud_vc_custom.dll!ShowAssertDialog(const wchar_t * szFile, int nLine, const wchar_t * szFunc, const wchar_t * szCond, const wchar_t * szMsg, wxAppTraits * traits) Line 836 + 0x11 bytes C++
wxbase28ud_vc_custom.dll!wxAppConsole::OnAssertFailure(const wchar_t * file, int line, const wchar_t * func, const wchar_t * cond, const wchar_t * msg) Line 445 + 0x22 bytes C++
wxbase28ud_vc_custom.dll!wxOnAssert(const wchar_t * szFile, int nLine, const char * szFunc, const wchar_t * szCond, const wchar_t * szMsg) Line 713 C++
wxmsw28ud_core_vc_custom.dll!wxImage::GetWidth() Line 1454 + 0x30 bytes C++
weatherfax_pi.dll!0f4bdb46()
weatherfax_pi.dll!0f523eab()
weatherfax_pi.dll!0f4bcf25()
|
|
|
11-03-2013, 23:04
|
#244
|
Registered User
Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,451
|
Re: WeatherFax...
Quote:
Originally Posted by cagney
I was looking for chart projections used in wx maps and found this in a WMO document.
...
b)
Lambert’s conformal conic projection,
the cone cutting the sphere at the standard
parallels of latitude 10° and
40° or 30° and 60°; and
...
Regarding the AUS & SA wx maps. It looks like the "Lambert’s conformal conic projection", could be worth trying.
Thomas
|
Good idea. I think this is probably the case, I will look into the conformal conic projection and should eventually support it.
Quote:
Originally Posted by ChuckSK
There is an Assert error in wxImage.GetWidth() at
WeatherFaxDialog.cpp: 327 and
WeatherFaxImage.cpp: 54
when a new WAV file is selected.
I suspect that the image has not been initialized.
|
Yes it was not in the case of the wav file. I think this is a condition where it gets updated before this is hit on some platforms. Anyway it should be fixed now in git, and also phasing should work.
Quote:
Originally Posted by Taarnskov
It is a great plugin you are making. I have found that the name of the preset in the top left corner sometimes disappear when loading a new map. The preset is there. I would like the “coordinate mapping correction” to be part of the presets if that is possible, since they are the same every time, you use a certain type of map.
Lars
|
Yes good idea, I will do this for the next version.
Quote:
Originally Posted by jackdale
+1 please
|
Rotation is still available next to skew and phasing, I didn't remove it. Did you need rotation for other than 90 180 270?
As for color coding the gui, it should be possible. Displaying arrows pointing at the pole is a good idea eventually can be implemented.
|
|
|
12-03-2013, 06:37
|
#245
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 18,131
|
Re: WeatherFax...
Thanks Sean for advising about possibility of color. Here is a rework of the future interface idea, for thought/discussion.
Sean, I was thinking about your sailing your Bristol to New Zealand. What year is Alexandra? That's a long way from Bristol, RI. Where did you sail from and when did you start your journey? Someday I hope to get back the NZ, it was about 10 years ago..it was a very long flight! Sailing is low carbon. What a great place.
|
|
|
12-03-2013, 10:45
|
#246
|
Registered User
Join Date: Apr 2009
Location: Marina Del Rey
Boat: Hylas 44
Posts: 387
|
Re: WeatherFax...
There is another Assert error in weatherfaxdialog.cpp:438.
|
|
|
13-03-2013, 08:56
|
#247
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 18,131
|
Re: WeatherFax...
Seems to be working better on valid images in mercator. The first screen after selecting used to have transparency areas in the lower area. This situation is not occurring on Noaa mercator faxes now, but does occur on other types of faxes.
Tried to highlight a blank coordinate settings and pick "remove". Instant error see below, but it seemed like coord saving was working better, sometimes I would pick a file that had been loaded in that session, and the settings were already in place.
choice.cpp [277] ...invalid term index in wxChoice create
Code:
KernelBase.dll!757b3219()
[Frames below may be incorrect and/or missing, no symbols loaded for KernelBase.dll]
> wxbase28ud_vc_custom.dll!wxTrap() Line 678 C++
wxbase28ud_vc_custom.dll!DoShowAssertDialog(const wxString & msg) Line 753 C++
wxbase28ud_vc_custom.dll!wxAppTraitsBase::ShowAssertDialog(const wxString & msgOriginal) Line 557 + 0x9 bytes C++
wxmsw28ud_core_vc_custom.dll!wxGUIAppTraitsBase::ShowAssertDialog(const wxString & msg) Line 635 C++
wxbase28ud_vc_custom.dll!ShowAssertDialog(const wchar_t * szFile, int nLine, const wchar_t * szFunc, const wchar_t * szCond, const wchar_t * szMsg, wxAppTraits * traits) Line 836 + 0x11 bytes C++
wxbase28ud_vc_custom.dll!wxAppConsole::OnAssertFailure(const wchar_t * file, int line, const wchar_t * func, const wchar_t * cond, const wchar_t * msg) Line 445 + 0x22 bytes C++
wxbase28ud_vc_custom.dll!wxOnAssert(const wchar_t * szFile, int nLine, const char * szFunc, const wchar_t * szCond, const wchar_t * szMsg) Line 713 C++
wxmsw28ud_core_vc_custom.dll!wxChoice::Delete(unsigned int n) Line 277 + 0x34 bytes C++
weatherfax_pi.dll!EditFaxWizard::OnRemoveCoords(wxCommandEvent & event) Line 810 + 0x29 bytes C++
I should probably go back in and edit out those blank lines again in the settings file Config file location: C:\ProgramData\opencpn\opencpn.ini !! Which I will do now.
|
|
|
13-03-2013, 09:05
|
#248
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 18,131
|
Re: WeatherFax...
The problem appears to be a badly formed Names field?
Which seems to have multiple colons, and also a coordinate set called POLAR (in capitals) that does not exist. I also have "Polars" so maybe the code is not registering/checking capitals. I am going to take the red items out and see what happens (there were blank records showing for each of the red colons.
Code:
[Settings/WeatherFax/CoordinateSets]
Names=;;;;;Polar;;POLAR;New_Coord;New_Coord_1;New_Coord_2;
Point1X=75
Point1Y=61
Point1Lat=60
Point1Lon=-90
Point2X=700
Point2Y=446
Point2Lat=20
Point2Lon=0
[Settings/WeatherFax/CoordinateSets/Polar]
Point1X=295
Point1Y=35
Point1Lat=30
Point1Lon=0
Point2X=297
Point2Y=454
Point2Lat=60
Point2Lon=0
[Settings/WeatherFax/CoordinateSets/New_Coord]
Point1X=0
Point1Y=-1
Point1Lat=80
Point1Lon=-34
Point2X=0
Point2Y=-1
Point2Lat=50
Point2Lon=-34
[Settings/WeatherFax/CoordinateSets/New_Coord_1]
Point1X=2136
Point1Y=503
Point1Lat=-20
Point1Lon=27
Point2X=2136
Point2Y=1465
Point2Lat=-60
Point2Lon=27
[Settings/WeatherFax/CoordinateSets/New_Coord_2]
Point1X=174
Point1Y=0
Point1Lat=60
Point1Lon=-90
Point2X=1200
Point2Y=0
Point2Lat=20
Point2Lon=-50
[Settings/GRIB]
WindPlot=1
WavePlot=1
|
|
|
13-03-2013, 09:33
|
#249
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 18,131
|
Re: WeatherFax...
Restarted Opencpn in Debug mode after changing opencpn.ini.
Loaded a new image. The blank lines were gone.
- Directly after loading the file, you can see the "Browse file directory" has not closed yet.
- Also there are some transparency artifacts in the lower part of the window.
Skew and Phasing on mercator, these features work, it takes a little while to process them but it works. It would be useful to have a very small reset for both skew and phasing. Hit next to next coord window.
The second screen shot below shows the Coord saving dropdown open with the list of coordinate settings.
When I type in a new Coordinate Name, say '96hr500mb' it seems to save the name when I hit Apply, then I go through and complete and "finish" the fax.
Then I open another fax, get to the coord setttings and try to select/apply that same set of Coords '96hr500mb' the coordinates are correct, but the name '96hr500mb' disappears from the window. Shouldn't it stay there unless I change something, in which case it should get another New__Coord_Name_X?
Maybe these screen shots will help explain.
I was wondering if we need a "Save" coords but I think that gets done when we hit "Apply"
|
|
|
13-03-2013, 09:49
|
#250
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 18,131
|
Re: WeatherFax...
New image loaded. Blanks appearing in Set Coords dropdown though. Don't know why.
Also, on the first screen loaded after selecting an image, where there are transparency issues, I notice that if I click in that area, the skew and phase sliders appear and can be operated.
This has all been done with OPENGL turned on.
I am going to avoid exotic polars unless you ask that I test them.
|
|
|
13-03-2013, 10:10
|
#251
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 18,131
|
Re: WeatherFax...
Using Polar file 13021903-Polar.png attached
1. Trying to get it to work, with Lats positive it comes up with this message, when they are negative (-70 and -20 or -30 for example the image renders but is screwy. see screen shot
2. Popup, bitmap.cpp [802] error again. see screen shot.
Call stack
Code:
> wxbase28ud_vc_custom.dll!wxTrap() Line 678 C++
wxbase28ud_vc_custom.dll!DoShowAssertDialog(const wxString & msg) Line 753 C++
wxbase28ud_vc_custom.dll!wxAppTraitsBase::ShowAssertDialog(const wxString & msgOriginal) Line 557 + 0x9 bytes C++
wxmsw28ud_core_vc_custom.dll!wxGUIAppTraitsBase::ShowAssertDialog(const wxString & msg) Line 635 C++
wxbase28ud_vc_custom.dll!ShowAssertDialog(const wchar_t * szFile, int nLine, const wchar_t * szFunc, const wchar_t * szCond, const wchar_t * szMsg, wxAppTraits * traits) Line 836 + 0x11 bytes C++
wxbase28ud_vc_custom.dll!wxAppConsole::OnAssertFailure(const wchar_t * file, int line, const wchar_t * func, const wchar_t * cond, const wchar_t * msg) Line 445 + 0x22 bytes C++
wxbase28ud_vc_custom.dll!wxOnAssert(const wchar_t * szFile, int nLine, const char * szFunc, const wchar_t * szCond, const wchar_t * szMsg) Line 713 C++
wxmsw28ud_core_vc_custom.dll!wxBitmap::CreateFromImage(const wxImage & image, int depth, void * hdc) Line 802 + 0x30 bytes C++
wxmsw28ud_core_vc_custom.dll!wxBitmap::CreateFromImage(const wxImage & image, int depth) Line 788 C++
wxmsw28ud_core_vc_custom.dll!wxBitmap::wxBitmap(const wxImage & image, int depth) Line 73 + 0x4e bytes C++
weatherfax_pi.dll!EditFaxWizard::OnPaintImage(wxPaintEvent & event) Line 1045 + 0x78 bytes C++
wxbase28ud_vc_custom.dll!wxAppConsole::HandleEvent(wxEvtHandler * handler, void (wxEvent &)* func, wxEvent & event) Line 323 C++
wxbase28ud_vc_custom.dll!wxEvtHandler::ProcessEventIfMatches(const wxEventTableEntryBase & entry, wxEvtHandler * handler, wxEvent & event) Line 1241 C++
wxbase28ud_vc_custom.dll!wxEvtHandler::SearchDynamicEventTable(wxEvent & event) Line 1421 + 0x11 bytes C++
wxbase28ud_vc_custom.dll!wxEvtHandler::ProcessEvent(wxEvent & event) Line 1297 + 0x15 bytes C++
wxbase28ud_vc_custom.dll!wxEvtHandler::ProcessEvent(wxEvent & event) Line 1308 + 0x1c bytes C++
wxmsw28ud_core_vc_custom.dll!wxScrollHelperEvtHandler::ProcessEvent(wxEvent & event) Line 208 + 0xd bytes C++
wxmsw28ud_core_vc_custom.dll!wxWindow::HandlePaint() Line 4617 + 0x1c bytes C++
wxmsw28ud_core_vc_custom.dll!wxWindow::MSWWindowProc(unsigned int message, unsigned int wParam, long lParam) Line 2747 + 0xb bytes C++
wxmsw28ud_core_vc_custom.dll!wxScrolledWindow::MSWWindowProc(unsigned int nMsg, unsigned int wParam, long lParam) Line 1529 + 0x14 bytes C++
wxmsw28ud_core_vc_custom.dll!wxWndProc(HWND__ * hWnd, unsigned int message, unsigned int wParam, long lParam) Line 2618 + 0x1c bytes C++
user32.dll!75d662fa()
user32.dll!75d66d3a()
user32.dll!75d66ce9()
user32.dll!75d66de8()
user32.dll!75d680bb()
ntdll.dll!77aaf8ca()
user32.dll!75d66e44()
ntdll.dll!77aa010a()
user32.dll!75d7131c()
user32.dll!75d71332()
user32.dll!75d8cdfd()
user32.dll!75d8cf5c()
user32.dll!75dbf73c()
user32.dll!75dbfa18()
kernel32.dll!759b14dd()
msvcr100d.dll!_free_base(void * pBlock) Line 50 + 0x13 bytes C
00afb9f4()
00afc300()
I guess I need to find a GOOD Polar file to test with.
|
|
|
13-03-2013, 10:24
|
#252
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 18,131
|
Re: WeatherFax...
Tried IDY00030.201302181800-Polar.png its weird too.
another bitmap.cpp 802 assert error.
|
|
|
13-03-2013, 10:51
|
#253
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 18,131
|
Re: WeatherFax...
Tried ma-sy-polar.jpg
Worked hard to get this to render on chart.
used
-60
28
-20
28
Set Coord 1 toward the pole, on -60 lat, Set coord 2 directly above on -20 lat
Hit Get Mapping. Took picture.
Hit Apply, Took Picture
Then would hit reset and go through it again.
Finally when it became clear no matter what I did it would not render with straight lines, I hit "Finish" to see what would happen.
Bitmap.cpp [802] assert error again.
Note: I do think things are working better, the computer is not working as hard and pausing, etc. Failures are not as immediate and the computer is not freezing as it was before, where I had to go into task manager and simply shutdown opnecpn task and then under processes do the same thing.
Maybe I'll get one that works this next one!
|
|
|
13-03-2013, 11:15
|
#254
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 18,131
|
Re: WeatherFax...
Using 00_UKMet_Boden+00-Polar.gif
Pick Polar
Coord 1 70
-35
Coord 2 20
-35
Get Mapping take screenshot
Apply - resulting image has neg dimensions.
Then bipmap.cpp [802]
Can't seem to find a polar that works. Do you have one I should try?
These polars were all done with OpenGL OFF
|
|
|
|
|
Thread Tools |
Search this Thread |
|
|
Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
Advertise Here
Recent Discussions |
|
|
|
|
|
|
|
|
|
|
|
|
Vendor Spotlight |
|
|
|