keesverruijt / BR24radar_pi

OpenCPN radar plugin for Navico Broadband Radars (BR24, 3G, 4G models) [HISTORIC]
17 stars 26 forks source link

Crash when OpenCPN restarted after shutting down with RADAR ON #281

Closed NAHANNIV closed 7 years ago

douwefokkema commented 7 years ago

Is this reproducible and consistent each time you start O after shutting down with running radar? Do you have a log file of this happening? Can you make a log with VerboseLog=63 in the ini file. I can not reproduce this.

Hakansv commented 7 years ago

Win10: I've shut down with a live radar several times without subsequent crashes.

NAHANNIV commented 7 years ago

image

NAHANNIV commented 7 years ago

.... 8:02:15 AM: BR24radar_pi: SetNMEASentence $AIMWV,1.6,R,12.9,N,A*08 8:02:15 AM: BR24radar_pi: RenderGLOverlay context=00000000 8:02:15 AM: BR24radar_pi: Automatic range changed from 0 to 423 meters 8:02:15 AM: BR24radar_pi: Radar A transmit: range 231 meters 8:02:15 AM: Error: BR24radar_pi: Unable to transmit command to unknown radar 8:02:15 AM: BR24radar_pi: RenderRadarOverlay lat=12.0027 lon=-61.7351 v_scale_ppm=2.22679 vp_rotation=0 skew=0 scale=1754.588013 rot=0

NAHANNIV commented 7 years ago

This is consistently repeatable. Win 10 Home 1607

keesverruijt commented 7 years ago

I think I know what the issue is.

We start processing stuff before the configuration file is loaded, and a structure is not initialised before it is used.

I will have a fix for you to try soon.

keesverruijt commented 7 years ago

JM,

Can you try this download and see if this fixes your crash issue:

https://www.dropbox.com/s/bhqao5276qfpxen/br24radar_pi-3.908-win32.exe?dl=0 https://www.dropbox.com/s/bhqao5276qfpxen/br24radar_pi-3.908-win32.exe?dl=0

keesverruijt commented 7 years ago

Found another issue, please download from the same link above.

NAHANNIV commented 7 years ago

That works better. Can restart OK RADAR starts, but when I zoom in and then out it crashes.

NAHANNIV commented 7 years ago

nahanniv-log.zip

NAHANNIV commented 7 years ago

Why do others not have this problem ?

douwefokkema commented 7 years ago

I am really puzzled. Please try also with VerboseLog= 0, there is a chance that all the logging itself influences results.

NAHANNIV commented 7 years ago

Tried with VeboseLog=0

It Immediate crashes on restarting after shutting down with RADAR on.

keesverruijt commented 7 years ago

I think it is related to the new way of calculating trails, which happens even if you have them disabled, so that they show immediately if you change the trails timeout or display method.

I fixed two issues in that area but not enough.

Can you try restarting with a really long range selected, or with gain = 0 so that there are no targets, and see if that makes any difference?

Sent from my iPhone

On 8 Sep 2017, at 21:43, NAHANNIV notifications@github.com wrote:

Tried with VeboseLog=0

It Immediate crashes on restarting after shutting down with RADAR on.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

NAHANNIV commented 7 years ago

Tried shutting down with range 36NM and gain 0 a few times.

Seems to take longer before crashing when restarted.

It usually seems to crash when zooming in and out.

NAHANNIV commented 7 years ago

Here is my OpenCPN.ini file after shutting down with the radar on:

nahanniv-opencpn.zip

NAHANNIV commented 7 years ago

Is anyone else able to reproduce this problem ?

keesverruijt commented 7 years ago

Ok the zooming in/out is a good hint. Watching 'true lies' with family now, a new version should be there for you tomorrow morning.

On 8 Sep 2017, at 23:08, NAHANNIV notifications@github.com wrote:

Here is my OpenCPN.ini file after shutting down with the radar on:

[Settings] ConfigVersionString=Version 4.8.0 Build 2017-08-11 NavMessageShown=1 UIexpert=1 UIStyle=Traditional ChartNotRenderScaleFactor=2 ShowStatusBar=1 ShowMenuBar=0 DefaultFontSize=0 Fullscreen=0 ShowCompassWindow=1 SetSystemTime=0 ShowGrid=0 PlayShipsBells=0 SoundDeviceIndex=0 FullscreenToolbar=1 TransparentToolbar=1 PermanentMOBIcon=0 ShowLayers=1 ShowDepthUnits=1 AutoAnchorDrop=0 ShowChartOutlines=0 ShowActiveRouteTotal=1 ShowActiveRouteHighway=1 SDMMFormat=0 DistanceFormat=0 SpeedFormat=0 MostRecentGPSUploadConnection= ShowChartBar=1 GUIScaleFactor=0 ChartObjectScaleFactor=0 FilterNMEA_Avg=0 FilterNMEA_Sec=1 ShowMag=0 UserMagVariation=0.00 CM93DetailFactor=0 CM93DetailZoomPosX=200 CM93DetailZoomPosY=200 ShowCM93DetailSlider=0 SkewToNorthUp=0 OpenGL=1 SoftwareGL=0 ShowFPS=1 ZoomDetailFactor=0 FogOnOverzoom=0 OverzoomVectorScale=1 OverzoomEmphasisBase=10 UseAcceleratedPanning=1 GPUTextureCompression=1 GPUTextureCompressionCaching=1 GPUTextureDimension=512 GPUTextureMemSize=128 SmoothPanZoom=1 UseRasterCharts=1 UseVectorCharts=0 UseCM93Charts=0 CourseUpMode=0 LookAheadMode=1 COGUPAvgSeconds=15 UseMagAPB=0 OwnshipCOGPredictorMinutes=5 OwnshipCOGPredictorWidth=3 OwnshipHDTPredictorMiles=1 OwnShipIconType=1 OwnShipLength=12 OwnShipWidth=4 OwnShipGPSOffsetX=-1 OwnShipGPSOffsetY=9 OwnShipMinSize=10 RouteArrivalCircleRadius=0.05 ChartQuilting=1 FullScreenQuilt=1 ChartQuiltingInitial=1 NMEALogWindowSizeX=718 NMEALogWindowSizeY=937 NMEALogWindowPosX=601 NMEALogWindowPosY=51 PreserveScaleOnX=1 StartWithTrackActive=1 AutomaticDailyTracks=0 TrackRotateAt=0 TrackRotateTimeType=3 HighlightTracks=0 InitialStackIndex=3 InitialdBIndex=0 ActiveChartGroup=0 NMEAAPBPrecision=0 TalkerIdText=EC AnchorWatch1GUID= AnchorWatch2GUID= ToolbarX=0 ToolbarY=0 ToolbarOrient=4 ToolbarConfig=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX GPSIdent=Generic UseGarminHostUpload=0 MobileTouch=0 ResponsiveGraphics=0 AutoHideToolbar=0 AutoHideToolbarSecs=2 DisplaySizeMM=480 DisplaySizeManual=0 PlanSpeed=6 VisibleLayers= InvisibleLayers= Locale=en_US KeepNavobjBackups=5 LegacyInputCOMPortFilterBehaviour=0 AdvanceRouteWaypointOnArrivalOnly=0 InlandEcdis=0 ShowTrue=1 ZoomDetailFactorVector=0 iENCToolbarX=-1 iENCToolbarY=-1 LocaleOverride=en_US SpaceDropMark=0 [Settings/GlobalState] bShowS57Text=1 bShowS57ImportantTextOnly=0 nDisplayCategory=79 nSymbolStyle=76 nBoundaryStyle=79 bShowSoundg=0 bShowMeta=0 bUseSCAMIN=0 bShowAtonText=0 bShowLightDescription=0 bExtendLightSectors=0 bDeClutterText=0 bShowNationalText=0 S52_MAR_SAFETY_CONTOUR=8.001 S52_MAR_SHALLOW_CONTOUR=2.99923 S52_MAR_DEEP_CONTOUR=10.0005 S52_MAR_TWO_SHADES=0 S52_DEPTH_UNIT_SHOW=0 VPLatLon=" 12.0025, -61.7349" VPScale=4.88388 VPRotation=0 OwnShipLatLon=" 12.0027, -61.7349" bFollow=0 nColorScheme=0 FrameWinX=1936 FrameWinY=1056 FrameWinPosX=-8 FrameWinPosY=-8 FrameMax=1 ClientPosX=0 ClientPosY=0 ClientSzX=1920 ClientSzY=1040 [Settings/WMM] ShowIcon=1 ShowLiveIcon=1 ViewType=1 ShowPlotOptions=1 ShowAtCursor=1 Opacity=255 DialogPosX=20 DialogPosY=20 [Settings/WMM/Plot] Declination=1 DeclinationSpacing=10 Inclination=0 InclinationSpacing=10 FieldStrength=0 FieldStrengthSpacing=10000 StepSize=6 PoleAccuracy=2 [Settings/ChartDnldr] ChartSources= Source=-1 BaseChartDir=C:\Users\Nahanni\Documents\Charts PreselectNew=0 PreselectUpdated=1 AllowBulkUpdate=0 [Settings/AIS] bNoCPAMax=1 NoCPAMaxNMi=20 bCPAWarn=1 CPAWarnNMi=1 bTCPAMax=1 TCPAMaxMinutes=30 bMarkLostTargets=1 MarkLost_Minutes=8 bRemoveLostTargets=1 RemoveLost_Minutes=1 bShowCOGArrows=1 CogArrowMinutes=6 bShowTargetTracks=0 TargetTracksMinutes=20 bHideMooredTargets=0 MooredTargetMaxSpeedKnots=0.2 bAISAlertDialog=0 bAISAlertAudio=0 AISAlertAudioFile=C:\Program Files (x86)\OpenCPN\sounds\Warning_AIS_Dangerous_target_detected.wav bAISAlertSuppressMoored=1 bShowAreaNotices=1 bDrawAISSize=0 bShowAISName=0 ShowAISTargetNameScale=250000 bWplIsAprsPositionReport=1 AISCOGPredictorWidth=3 bShowScaledTargets=0 AISScaledNumber=10 AISScaledNumberWeightSOG=50 AISScaledNumberWeightCPA=60 AISScaledNumberWeightTCPA=25 AISScaledNumberWeightRange=75 AISScaledNumberWeightSizeOfTarget=25 AISScaledSizeMinimal=50 AISShowScaled=0 AlertDialogSizeX=227 AlertDialogSizeY=460 AlertDialogPosX=200 AlertDialogPosY=200 QueryDialogPosX=1325 QueryDialogPosY=315 AISTargetListPerspective=name=AISTargetList;caption=AIS target list;state=2103265;dir=4;layer=0;row=0;pos=0;prop=100000;bestw=700;besth=150;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=141;floaty=90;floatw=1384;floath=332 AISTargetListRange=71 AISTargetListSortColumn=1 bAISTargetListSortReverse=0 AISTargetListColumnSpec=28;117;49;70;49;70;84;42;56;42;42; S57QueryDialogSizeX=400 S57QueryDialogSizeY=400 bAISRolloverShowClass=1 bAISRolloverShowCOG=1 bAISRolloverShowCPA=1 bAISAlertAckTimeout=0 AlertAckTimeoutMinutes=0 [Settings/NMEADataSource] DataConnections=0;0;192.168.15.1;39150;0;COM3;38400;1;1;1;;0;RMB,RMC,WPL,RTE,VTG,GSV,GGA,GPwpl,APB,XTE,ECRMB,ECRMC,ECAPB,FRPOS,CD;0;0;1;0;1 [Settings/Others] ShowRadarRings=0 RadarRingsNumberVisible=0 RadarRingsStep=1 RadarRingsStepUnits=0 WaypointRangeRingsNumber=0 WaypointRangeRingsStep=1 WaypointRangeRingsStepUnits=0 WaypointRangeRingsColour=#FF0000 ConfirmObjectDeletion=1 WaypointPreventDragging=1 EnableZoomToCursor=1 TrackIntervalSeconds=60 TrackDeltaDistance=0.1 TrackPrecision=2 RouteLineWidth=2 TrackLineWidth=2 CurrentArrowScale=100 DefaultWPIcon=triangle TideRectangleScale=100 TideCurrentWindowScale=100 [Settings/ObjectFilter] vizADMARE=0 vizAIRARE=0 vizACHBRT=0 vizACHPNT=0 vizACHARE=0 vizBCNCAR=0 vizBCNISD=0 vizBCNLAT=0 vizBCNSAW=0 vizBCNSPP=0 vizBERTHS=0 vizBRIDGE=1 vizBUISGL=0 vizBUIREL=0 vizBUAARE=0 vizBOYCAR=0 vizBOYINB=0 vizBOYISD=0 vizBOYLAT=0 vizBOYSAW=0 vizBOYSPP=0 vizCBLARE=0 vizCBLOHD=1 vizCBLSUB=0 vizCANALS=1 vizCANBNK=0 vizCTSARE=0 vizCAUSWY=0 vizCTNARE=0 vizCHNWIR=0 vizCHKPNT=0 vizCGUSTA=0 vizCOALNE=1 vizCONZNE=0 vizCOSARE=0 vizCTRPNT=0 vizCONVYR=1 vizCRANES=0 vizCURENT=0 vizCUSZNE=0 vizDAMCON=1 vizDAYMAR=0 vizDWRTCL=1 vizDWRTPT=0 vizDEPARE=1 vizDEPCNT=0 vizDISMAR=0 vizDOCARE=1 vizDRGARE=0 vizDRYDOC=0 vizDMPGRD=0 vizDYKCON=0 vizEXEZNE=0 vizFAIRWY=0 vizFNCLNE=0 vizFERYRT=0 vizFSHZNE=0 vizFSHFAC=0 vizFSHGRD=0 vizFLODOC=1 vizFOGSIG=0 vizFORSTC=0 vizFRPARE=0 vizGATCON=1 vizGRIDRN=0 vizHRBARE=0 vizHRBFAC=0 vizHULKES=1 vizICEARE=1 vizICNARE=0 vizISTZNE=0 vizLAKARE=0 vizLAKSHR=0 vizLNDARE=1 vizLNDELV=0 vizLNDRGN=0 vizLNDMRK=0 vizLIGHTS=1 viz_extgn=0 vizLITFLT=0 vizLITVES=0 vizLOCMAG=0 vizLOKBSN=1 vizLOGPON=1 vizMAGVAR=0 vizMARCUL=0 vizMIPARE=0 vizMONUMT=0 vizMORFAC=1 vizNAVLNE=0 vizOBSTRN=1 vizOFSPLF=1 vizOSPARE=0 vizOILBAR=1 vizPILPNT=0 vizPILBOP=0 vizPIPARE=0 vizPIPOHD=1 vizPIPSOL=0 vizPONTON=1 vizPRCARE=0 vizPRDARE=0 vizPYLONS=1 vizRADLNE=0 vizRADRNG=0 vizRADRFL=0 vizRADSTA=0 vizRTPBCN=0 vizRDOCAL=0 vizRDOSTA=0 vizRAILWY=0 vizRAPIDS=0 vizRCRTCL=0 vizRECTRC=0 vizRCTLPT=0 vizRSCSTA=0 vizRESARE=0 vizRETRFL=0 vizRIVERS=0 vizRIVBNK=0 vizROADWY=0 vizRUNWAY=0 vizSNDWAV=0 vizSEAARE=0 vizSPLARE=0 vizSBDARE=0 vizSLCONS=1 vizSISTAT=0 vizSISTAW=0 vizSILTNK=0 vizSLOTOP=0 vizSLOGRD=0 vizSMCFAC=0 vizSOUNDG=0 vizSPRING=0 vizSQUARE=0 vizSTSLNE=0 vizSUBTLN=0 vizSWPARE=0 vizTESARE=0 viz_texto=0 vizTS_PRH=0 vizTS_PNH=0 vizTS_PAD=0 vizTS_TIS=0 vizT_HMON=0 vizT_NHMN=0 vizT_TIMS=0 vizTIDEWY=0 vizTOPMAR=0 vizTOWERS=0 vizTSELNE=0 vizTSSBND=0 vizTSSCRS=0 vizTSSLPT=0 vizTSSRON=0 vizTSEZNE=0 vizTUNNEL=0 vizTWRTPT=0 vizUWTROC=0 vizUNSARE=0 vizVEGATN=0 vizWATTUR=0 vizWATFAL=0 vizWEDKLP=0 vizWRECKS=0 vizZEMCNT=0 vizTS_FEB=0 vizM_ACCY=0 vizM_CSCL=0 vizM_COVR=0 vizM_HDAT=0 vizM_HOPA=0 vizM_NPUB=0 vizM_NSYS=0 vizM_PROD=0 vizM_QUAL=0 vizM_SDAT=0 vizM_SREL=0 vizM_UNIT=0 vizM_VDAT=0 vizC_AGGR=0 vizC_ASSO=0 vizC_STAC=0 viz$AREAS=1 viz$LINES=0 viz$CSYMB=0 viz$COMPS=0 viz$TEXTS=0 viznotmrk=1 vizwtwaxs=0 vizwtwprf=0 vizbrgare=0 vizbunsta=0 vizcomare=0 vizhrbbsn=1 vizlokare=0 vizlkbspt=1 vizprtare=0 vizbcnwtw=1 vizboywtw=1 vizrefdmp=0 vizrtplpt=0 viztermnl=0 viztrnbsn=0 vizwtware=0 vizwtwgag=0 viztisdge=0 vizvehtrf=0 vizexcnst=1 vizlg_sdm=0 vizlg_vsp=0 vizANNOTA=0 vizRESTRC=0 vizTRFLNE=0 vizGENNAV=0 vizNEWOBJ=0 [Settings/GRIB] GribSettingsBookPageIndex=0 WindPlot=1 WindGustPlot=1 PressurePlot=1 WavePlot=1 CurrentPlot=1 PrecipitationPlot=1 CloudPlot=1 AirTemperaturePlot=1 SeaTemperaturePlot=1 CAPEPlot=1 CursorDataShown=1 lastdatatype=0 GribDataTablePosition_x=378 GribDataTablePosition_y=322 GribDataTableWidth=900 GribDataTableHeight=350 [Settings/GRIB/FileNames] [Settings/MSWFonts] en_US-00c6075a=Menu:0;-12;0;0;0;400;0;0;0;1;0;0;2;32;Segoe UI:rgb(0, 0, 0) en_US-0b36378d=AISRollover:0;-12;0;0;0;400;0;0;0;1;0;0;2;32;Segoe UI:rgb(0, 0, 0) en_US-1eb72530=StatusBar:0;-12;0;0;0;400;0;0;0;1;0;0;2;32;Segoe UI:rgb(0, 0, 0) en_US-26be3ad9=Dialog:0;-12;0;0;0;400;0;0;0;1;0;0;2;32;Segoe UI:rgb(0, 0, 0) en_US-2eb15281=AISTargetAlert:0;-12;0;0;0;400;0;0;0;1;0;0;2;32;Segoe UI:rgb(0, 0, 0) en_US-3b4348eb=AISTargetQuery:0;-12;0;0;0;400;0;0;0;1;0;0;2;32;Segoe UI:rgb(0, 0, 0) en_US-471438f9=ToolTips:0;-12;0;0;0;400;0;0;0;1;0;0;2;32;Segoe UI:rgb(0, 0, 0) en_US-6e0b01ed=ExtendedTideIcon:0;-12;0;0;0;400;0;0;0;1;0;0;2;32;Segoe UI:rgb(0, 0, 0) en_US-7073483f=Console Value:0;-12;0;0;0;400;0;0;0;1;0;0;2;32;Segoe UI:rgb(0, 0, 0) en_US-7489c8cb=TideCurrentGraphRollover:0;-12;0;0;0;400;0;0;0;1;0;0;2;32;Segoe UI:rgb(0, 0, 0) en_US-7f1076b7=RouteLegInfoRollover:0;-12;0;0;0;400;0;0;0;1;0;0;2;32;Segoe UI:rgb(0, 0, 0) en_US-9495cd06=ObjectQuery:0;-12;0;0;0;400;0;0;0;1;0;0;2;32;Segoe UI:rgb(0, 0, 0) en_US-a9609c17=Console Legend:0;-12;0;0;0;400;0;0;0;1;0;0;2;32;Segoe UI:rgb(0, 0, 0) en_US-ab70bac9=Marks:0;-12;0;0;0;400;0;0;0;1;0;0;2;32;Segoe UI:rgb(0, 0, 0) en_US-cdd49e1d=ChartTexts:0;-12;0;0;0;400;0;0;0;1;0;0;2;32;Segoe UI:rgb(0, 0, 0) en_US-dc026923=CurrentValue:0;-12;0;0;0;400;0;0;0;1;0;0;2;32;Segoe UI:rgb(0, 0, 0) en_US-fbbaad6c=AIS Target Name:0;-12;0;0;0;400;0;0;0;1;0;0;2;32;Segoe UI:rgb(0, 0, 0) [PlugIns] PluginOrder=ChartDownloader;WMM;BR24Radar;Dashboard;GRIB;WeatherRouting;Watchdog [PlugIns/chartdldr_pi.dll] bEnabled=1 [PlugIns/wmm_pi.dll] bEnabled=1 [PlugIns/Dashboard] Version=2 FontTitle=0;-13;0;0;0;400;1;0;0;1;0;0;2;32;Arial FontData=0;-19;0;0;0;400;0;0;0;1;0;0;2;32;Arial FontLabel=0;-11;0;0;0;400;0;0;0;1;0;0;2;32;Arial FontSmall=0;-11;0;0;0;400;0;0;0;1;0;0;2;32;Arial SpeedometerMax=12 SpeedUnit=0 DepthUnit=3 DistanceUnit=0 WindSpeedUnit=0 DashboardCount=1 COGDamp=0 SOGDamp=0 UTCOffset=0 [PlugIns/Dashboard/Dashboard1] Name=7b2effff-a543-41eb-b18f-fe59489cffff Caption=Dashboard Orientation=V Persistence=1 InstrumentCount=11 Instrument1=0 Instrument2=20 Instrument3=22 Instrument4=23 Instrument5=24 Instrument6=13 Instrument7=40 Instrument8=6 Instrument9=5 Instrument10=1 Instrument11=7 Instrument12=38 [PlugIns/Dashboard/Dashboard2] Name=4e8bffff-2ed0-44d5-8f9d-ea1d467effff Caption=Dashboard Orientation=V Persistence=1 InstrumentCount=0 Instrument1=11 Instrument2=30 Instrument3=25 [PlugIns/br24radar_pi.dll] bEnabled=1 [PlugIns/dashboard_pi.dll] bEnabled=1 [PlugIns/grib_pi.dll] bEnabled=1 [PlugIns/watchdog_pi.dll] bEnabled=0 [PlugIns/weather_routing_pi.dll] bEnabled=1 [PlugIns/GRIB] LoadLastOpenFile=0 OpenFileOption=1 ShowGRIBIcon=1 GRIBUseHiDef=1 GRIBUseGradualColors=1 GRIBTimeZone=0 CopyFirstCumulativeRecord=1 CopyMissingWaveRecord=1 GRIBCtrlBarSizeX=553 GRIBCtrlBarSizeY=83 GRIBCtrlBarPosX=935 GRIBCtrlBarPosY=20 GRIBCursorDataPosX=20 GRIBCursorDataPosY=170 OverlayTransparency=220 Interpolate=0 LoopMode=0 LoopStartPoint=0 SlicesPerUpdate=5 UpdatesPerSecond=2 GribCursorDataDisplayStyle=0 CtrlBarCtrlVisibility1=XXXXXXXXX CtrlBarCtrlVisibility2=XXXXXXXXX WindUnits=0 WindBarbedArrows=0 WindBarbedVisibility=1 WindBarbedColors=0 WindBarbedArrowFixedSpacing=0 WindBarbedArrowSpacing=50 WindDisplay\ Isobars=0 WindIsoBarSpacing=4 WindOverlayMap=0 WindOverlayMapColors=1 WindNumbers=0 WindNumbersFixedSpacing=0 WindNumbersSpacing=50 WindParticles=1 WindParticleDensity=80.3421 WindGustUnits=0 WindGustDisplay\ Isobars=0 WindGustIsoBarSpacing=4 WindGustOverlayMap=1 WindGustOverlayMapColors=1 WindGustNumbers=0 WindGustNumbersFixedSpacing=0 WindGustNumbersSpacing=50 PressureUnits=0 PressureDisplay\ Isobars=1 PressureIsoBarSpacing=4 PressureIsoBarVisibility=1 PressureNumbers=0 PressureNumbersFixedSpacing=0 PressureNumbersSpacing=50 WavesUnits=0 WavesDirectionArrows=1 WavesDirectionArrowForm=0 WavesDirectionArrowSize=0 WavesDirectionArrowFixedSpacing=0 WavesDirectionArrowSpacing=50 WavesOverlayMap=1 WavesOverlayMapColors=0 WavesNumbers=0 WavesNumbersFixedSpacing=0 WavesNumbersSpacing=50 WavesParticles=0 WavesParticleDensity=1 CurrentUnits=0 CurrentDirectionArrows=1 CurrentDirectionArrowForm=1 CurrentDirectionArrowSize=0 CurrentDirectionArrowFixedSpacing=0 CurrentDirectionArrowSpacing=50 CurrentOverlayMap=1 CurrentOverlayMapColors=6 CurrentNumbers=0 CurrentNumbersFixedSpacing=0 CurrentNumbersSpacing=50 CurrentParticles=0 CurrentParticleDensity=0.541341 RainfallUnits=0 RainfallOverlayMap=1 RainfallOverlayMapColors=4 RainfallNumbers=0 RainfallNumbersFixedSpacing=0 RainfallNumbersSpacing=50 CloudCoverUnits=0 CloudCoverOverlayMap=1 CloudCoverOverlayMapColors=5 CloudCoverNumbers=0 CloudCoverNumbersFixedSpacing=0 CloudCoverNumbersSpacing=50 AirTemperatureUnits=0 AirTemperatureDisplay\ Isobars=0 AirTemperatureIsoBarSpacing=2 AirTemperatureOverlayMap=1 AirTemperatureOverlayMapColors=2 AirTemperatureNumbers=0 AirTemperatureNumbersFixedSpacing=0 AirTemperatureNumbersSpacing=50 SeaTemperatureUnits=0 SeaTemperatureDisplay\ Isobars=0 SeaTemperatureIsoBarSpacing=2 SeaTemperatureOverlayMap=0 SeaTemperatureOverlayMapColors=3 SeaTemperatureNumbers=0 SeaTemperatureNumbersFixedSpacing=0 SeaTemperatureNumbersSpacing=50 CAPEUnits=0 CAPEDisplay\ Isobars=0 CAPEIsoBarSpacing=100 CAPEOverlayMap=1 CAPEOverlayMapColors=0 CAPENumbers=0 CAPENumbersFixedSpacing=0 CAPENumbersSpacing=50 AltitudeUnits=0 RelativeHumidityUnits=0 MailRequestConfig=000220XX.............. MailSenderAddress= MailRequestAddresses=query@saildocs.com;gribauto@zygrib.org ZyGribLogin= ZyGribCode= SendMailMethod=0 MovingGribSpeed=1 MovingGribCourse=1 ManualRequestZoneSizing=0 RequestZoneMaxLat=33 RequestZoneMinLat=32 RequestZoneMaxLon=-64 RequestZoneMinLon=-65 [PlugIns/WeatherRouting] CursorColor=yellow DestinationColor=magenta RouteThickness=4 IsoChronThickness=2 AlternateRouteThickness=0 AlternatesForAll=0 MarkAtPolarChange=1 DisplayWindBarbs=0 DisplayCurrent=1 ConcurrentThreads=4 Column0=1 Column1=1 Column2=1 Column3=1 Column4=1 Column5=1 Column6=1 Column7=0 Column8=0 Column9=0 Column10=0 Column11=0 Column12=0 Column13=0 Column14=0 Column15=0 Column16=0 Column17=0 Column18=0 Column19=0 Column20=1 UseLocalTime=0 SettingsDialogX=507 SettingsDialogY=344 DialogX=23 DialogY=238 DialogWidth=600 DialogHeight=250 ConfigurationX=1037 ConfigurationY=482 [PlugIns/WeatherRouting/BoatDialog] Orientation1=1 FilePath=C:\Program Files (x86)\OpenCPN\plugins\weather_routing_pi\data\polars\boat_A35.pol Path=C:\ProgramData\opencpn\plugins\weather_routing [PlugIns/BR24Radar] AlarmPosX=25 AlarmPosY=175 AlertAudioFile=C:\Program Files (x86)\OpenCPN\sounds\1bells.wav ChartOverlay=0 DrawingMethod=0 EmulatorOn=0 EnableCOGHeading=0 EnableDualRadar=1 GuardZoneDebugInc=0 GuardZoneOnOverlay=1 GuardZoneTimeout=5 GuardZonesRenderStyle=1 GuardZonesThreshold=5 IgnoreRadarHeading=0 MainBangSize=10 ShowExtremeRange=1 AntennaForward=-3 AntennaStarboard=1 MenuAutoHide=0 PassHeadingToOCPN=0 RadarInterface=169.254.253.199 RangeUnits=0 Refreshrate=5 ReverseZoom=1 RunTimeOnIdle=120 ScanMaxAge=6 Show=1 SkewFactor=1 ThresholdBlue=50 ThresholdGreen=100 ThresholdRed=200 TrailColourStart=white TrailColourEnd=rgb(63, 63, 63) TrailsOnOverlay=1 Transparency=5 VerboseLog=0 AISatARPAoffset=18 ColourStrong=red ColourIntermediate=green ColourWeak=blue ColourArpaEdge=white ColourAISText=medium grey ColourPPIBackground=rgb(0, 0, 50) Radar0Rotation=1 Radar0Transmit=2 Radar0WindowShow=0 Radar0ControlShow=1 Radar0Trails=4 Radar0TrueMotion=0 Radar0WindowPosX=-506 Radar0WindowPosY=163 Radar0ControlPosX=1466 Radar0ControlPosY=214 Radar0MinContourLength=6 Radar0Zone0StartBearing=0 Radar0Zone0EndBearing=0 Radar0Zone0OuterRange=148 Radar0Zone0InnerRange=14 Radar0Zone0Type=1 Radar0Zone0AlarmOn=0 Radar0Zone0ArpaOn=0 Radar0Zone1StartBearing=0 Radar0Zone1EndBearing=0 Radar0Zone1OuterRange=0 Radar0Zone1InnerRange=0 Radar0Zone1Type=0 Radar0Zone1AlarmOn=0 Radar0Zone1ArpaOn=0 Radar1Rotation=0 Radar1Transmit=1 Radar1WindowShow=0 Radar1ControlShow=0 Radar1Trails=0 Radar1TrueMotion=0 Radar1WindowPosX=1816 Radar1WindowPosY=-3 Radar1ControlPosX=1373 Radar1ControlPosY=439 Radar1MinContourLength=6 Radar1Zone0StartBearing=0 Radar1Zone0EndBearing=0 Radar1Zone0OuterRange=0 Radar1Zone0InnerRange=0 Radar1Zone0Type=0 Radar1Zone0AlarmOn=0 Radar1Zone0ArpaOn=0 Radar1Zone1StartBearing=0 Radar1Zone1EndBearing=0 Radar1Zone1OuterRange=0 Radar1Zone1InnerRange=0 Radar1Zone1Type=0 Radar1Zone1AlarmOn=0 Radar1Zone1ArpaOn=0 [Directories] S57DataLocation= InitChartDir=C:\Users\Nahanni\Desktop\Johns\Charts GPXIODir=C:\Users\Nahanni\Desktop TCDataDir= WMMDataLocation=C:\Program Files (x86)\OpenCPN\plugins\wmm_pi\data\ GRIBDirectory=C:\Users\Nahanni\Desktop [ChartDirectories] ChartDir1=C:\Users\Nahanni\Desktop\Johns\Charts\Cm93 jan 2011^ ChartDir2=C:\Users\Nahanni\Desktop\Johns\Charts\BermudaBahamas^171520263602 ChartDir3=C:\Users\Nahanni\Desktop\Johns\Charts\EasternCaribean^108576690584 ChartDir4=C:\Users\Nahanni\Desktop\Johns\Charts\ErieOntStLawrenceNovaScotia^203111750199 [AUI] AUIPerspective=layout2|name=ChartCanvas;caption=;state=768;dir=5;layer=0;row=0;pos=0;prop=100000;bestw=1920;besth=997;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=BR24radar_pi-0;caption=Radar A;state=2099151;dir=4;layer=0;row=0;pos=0;prop=100000;bestw=960;besth=540;minw=256;minh=256;maxw=-1;maxh=-1;floatx=-506;floaty=163;floatw=512;floath=512|name=BR24radar_pi-1;caption=Radar B;state=2099151;dir=4;layer=0;row=0;pos=0;prop=100000;bestw=960;besth=540;minw=256;minh=256;maxw=-1;maxh=-1;floatx=1816;floaty=-3;floatw=512;floath=512|name=7b2effff-a543-41eb-b18f-fe59489cffff;caption=Dashboard;state=2098124;dir=2;layer=1;row=0;pos=0;prop=134660;bestw=150;besth=842;minw=150;minh=842;maxw=-1;maxh=-1;floatx=1836;floaty=512;floatw=150;floath=842|dock_size(5,0,0)=398|dock_size(2,1,0)=260| [TideCurrentDataSources] tcds0=C:\Program Files (x86)\OpenCPN\tcdata\HARMONIC.IDX

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

Hakansv commented 7 years ago

I'm on Win10 and as said no similar experiences but havn't stressed extensively zooming lately. I'll take present code for a live test on board now and revert.

Hakansv commented 7 years ago

Been testing also the latest code on my BR24 using Win10 and O 4.8. I can still close O with an active radar and restart wo any issues. The radar is directly transmitting after restart. Zoom in/out is also fine wo issues although my BR24 is in AUTO limited to 24 NM range.

One note though; In radarwindow, after "North up" is "Course up" still viewing north up but next level "Course up (Stabilized)" shows heading up. I use HDG from external compass via O NMEA and WMM.

keesverruijt commented 7 years ago

Douwe reports that he has a crash, but that is not reproducible by me.

I did fix a number of 'trails' issues in zooming in. These are fixed in the following:

https://www.dropbox.com/s/0pc7ablmojqw44x/br24radar_pi-3.909-win32.exe?dl=0

Can you try again?

If this still crashes, please make a copy of your ini file and remove the entire [AUI] section, this contains the onscreen location for the AUI manager that controls the different panes, then try again.

We saw that you had Radar A at a negative offset. Do you use multiple screens?

keesverruijt commented 7 years ago

I shortened this issue by putting the logs and ini files in zip files and attaching those to the comment.

NAHANNIV commented 7 years ago

The latest version will not load.

Shows Incompatible in the plugin configuration.

keesverruijt commented 7 years ago

Oops, that was a debug build. Replaced it with a release build, same link.

NAHANNIV commented 7 years ago

Latest version crashed immediately on restart.

then I deleted [AUI] section from .ini file.

Restarted OK, but crashed when scrolling out.

NAHANNIV commented 7 years ago

The automatically re-created [AUI] section [AUI] AUIPerspective=layout2|name=ChartCanvas;caption=;state=768;dir=5;layer=0;row=0;pos=0;prop=100000;bestw=1920;besth=997;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=BR24radar_pi-0;caption=Radar A;state=2099151;dir=4;layer=0;row=0;pos=0;prop=100000;bestw=960;besth=540;minw=256;minh=256;maxw=-1;maxh=-1;floatx=-506;floaty=163;floatw=512;floath=512|name=BR24radar_pi-1;caption=Radar B;state=2099151;dir=4;layer=0;row=0;pos=0;prop=100000;bestw=960;besth=540;minw=256;minh=256;maxw=-1;maxh=-1;floatx=1816;floaty=-3;floatw=512;floath=512|name=7b2effff-a543-41eb-b18f-fe59489cffff;caption=Dashboard;state=2098127;dir=4;layer=0;row=0;pos=0;prop=100000;bestw=150;besth=842;minw=150;minh=842;maxw=-1;maxh=-1;floatx=100;floaty=100;floatw=166;floath=881|dock_size(5,0,0)=398|

douwefokkema commented 7 years ago

I can now fully reproduce your crash (that is: start up with running radar) using your ini file. With the new version of Kees it is no longer crashing always but sometimes. I did another mod that solves the crash with me completely. But that does not mean it solves the problem on your system. Test version at https://www.dropbox.com/s/skwxn7cmrbvz114/br24radar_pi-3.908-win32-test.exe?dl=0 . Dll only at: https://www.dropbox.com/s/wb50m26ock7n5em/br24radar_pi.dll?dl=0 But when you wait a bit, Kees might have a better implementation. Source is on https://github.com/douwefokkema/BR24radar_pi/tree/master1

NAHANNIV commented 7 years ago

Douwe, I downloaded the .exe version, but it did not fix the issue on my system. Tried it twice and it crashed almost immediately (without any action from me).

What was the problem you fixed ? I have re-enabled and located my dashboard display after deleting the [AUI] section of my .ini file, but everything else is the same.

douwefokkema commented 7 years ago

I did put a wait in the processing of the received data from the radar until all transmit sockets were ready. It seemed that the system when started with running radar started processing before all inits were done. Earlier this produced error messages. Problem now is that I can't reproduce your errors any longer (after my update). As I could only reproduce with your opencpn.ini, there seems to be a dependency on the ini file. Could you try to throw away (rename) yr opencpn.ini and let OpenCPN make a new one. You will have to set comms and chart settings again. Please let me have again the opencpn.log made with VerboseLog=1.

NAHANNIV commented 7 years ago

Content moved to attachment. nahanniv_log4.txt

NAHANNIV commented 7 years ago

OK, I deleted my OpenCPN.ini file. enabled OpenGL added connection for NMEA data Enabled radar plugin.

turned on RADAR closed OpenCPN Re Opened OpenCPN

Crash !

NAHANNIV commented 7 years ago

VerboseLog=1 I had to zoom in and out before it crashed; Sometimes it crashes without any user input, other times it crashes when I zoom in/out

08:13:07: 

________
08:13:07: 2017-09-10
08:13:07:  ------- Starting OpenCPN -------
08:13:07: Version 4.8.0 Build 2017-08-11
...
8:13:15 AM: BR24radar_pi: main timer
8:13:15 AM: BR24radar_pi: main timer
8:13:16 AM: BR24radar_pi: main timer
8:13:16 AM: BR24radar_pi: Radar reports status STANDBY
8:13:16 AM: BR24radar_pi: main timer
8:13:16 AM: BR24radar_pi: main timer
8:13:16 AM: BR24radar_pi: main timer
8:13:16 AM: BR24radar_pi: SetPositionFixEx var=-14.000000 var_wd=1
8:13:16 AM: BR24radar_pi: main timer
8:13:16 AM: BR24radar_pi: main timer
8:13:16 AM: BR24radar_pi: main timer
8:13:16 AM: BR24radar_pi: main timer
8:13:16 AM: BR24radar_pi: main timer
NAHANNIV commented 7 years ago

Could there be something about my hardware ?

http://minix.com.hk/en/products/neo-z83-4

It has Intell Graphics; I know OpenCPN has several exceptions for OpenGL when running on Intell Graphics ?

douwefokkema commented 7 years ago

I am testing ow on a Intel I7 with simulated radar, so I can not zoom in/out myself, but the simulation contains many zooms. I will dust off an older Atom based laptop and try on that with the real radar, mid of the week I expect to be on board. And yes, there are issues with Windows Creator version and Intel graphics with OpenGL.

NAHANNIV commented 7 years ago

I don't have creator version yet. I'm at 1607.

NAHANNIV commented 7 years ago

I also have heading by Serial (USB) and quite a few AIS targets.

Here is a sample of my Serial data: nahanniv_nmea.txt

keesverruijt commented 7 years ago

John, can you please upload files instead of copy/pasting long strings in took keep the issue readable?

keesverruijt commented 7 years ago

It has Intell Graphics; I know OpenCPN has several exceptions for OpenGL when running on Intell Graphics ?

That was mostly related to the '500' hardware in the original Atom, which was utter crap. The Intel HD is not that bad actually.

NAHANNIV commented 7 years ago

I'm in a remote anchorage at the limit of WiFi connectivity. I have tried to upload files, but usually cutting and pasting text into the comment has a better chance of posting. Sorry, JM.

douwefokkema commented 7 years ago

Just another try. Here: https://www.dropbox.com/s/bswvb062vehklj6/br24radar_pi-2.3-5c778bb-win32.exe?dl=0 is the version from June this year which I used all summer. It does not have the ARPA and AIS targets on the radar windows yet. Interesting to know if problem is there as well.

keesverruijt commented 7 years ago

Also, AIS target count for you is relatively low. My AIS target count is 210, and this does not cause any issues, other than looking ugly:

screen shot 2017-09-10 at 17 39 30
keesverruijt commented 7 years ago

ok helgrind has found some unprotected cross-thread access, preparing a fix quickly.

keesverruijt commented 7 years ago

And here is the location for the latest build, with various small issues regarding memory and threading fixed.

https://www.dropbox.com/s/kzslq4fijwa68bl/br24radar_pi-3.910-win32.exe?dl=0

NAHANNIV commented 7 years ago

The old version did not crash.

keesverruijt commented 7 years ago

And new 3.910 version? If it does crash, is this still related to the radar being on, or does it also crash if you turn the radar off, shutdown/start O, turn radar on? I can't see any code path that would make it different when the radar is already on, but we've been proven wrong for days ;-)

keesverruijt commented 7 years ago

I've just updated the 3.910 version with one that can hide the AIS and MARPA targets on the PPI window. Basically that is the biggest difference between Douwe's June version and the production release.

Can you test with:

NAHANNIV commented 7 years ago

The new version is not crashing.

Some remaining questions:

1/ after copying back my original OpenCPN.ini file I was unable to get the RADAR A PPI window to display ? Tried deleting all the RADAR settings from the ini file, but then could not get the RADAR to work at all ? How did it get into this state ?

2/ Your picture shows AIS target names on the PPI window. Mine is not showing names?

douwefokkema commented 7 years ago

Using your ini file I also had the radar A window hidden. It was outside the visible area. Go inside the ini file and find Radar0WindowPosX= In my case this was -604, that is outside the visible area. Make it 100 or so. After running O, I found this position being reset to its previous value again, that was the value of the first floatx of the [AUI] section. Also correct this floatx to some decent value; 0 or 100, and all remained OK, radar A window visible again. Don't ask me why.

NAHANNIV commented 7 years ago

OK, got the PPI window back. That happened sometime after updating to latest OpenCPN and plugin.

Should the plugin be displaying AIS target names on the PPI window as in the example posted by Canboat ? Or is that a test version ?

keesverruijt commented 7 years ago

If you have AIS labels on the chart they should be present in the PPI window as well. We’re calling the OpenCPN AIS drawing code, so it should be exactly the same — with all that entails. Unfortunately most black additions to the symbols are not very visible on the PPI window unless you change the background color in the preferences.