[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[IDV #DEQ-350906]: infinite loop in MapProjectionDisplay (and an easy fix)!

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: [IDV #DEQ-350906]: infinite loop in MapProjectionDisplay (and an easy fix)!
  • Date: Tue, 31 Jan 2012 10:37:20 -0700

Hi Jon,

Thanks for sleuthing this down. I propose that your bug fix be the first github 
pull request.

The switchover to git will be happening imminently, hopefully at the end of 
this week or beginning of next.

-Julien


> Hi everyone!
> 
> 
> 
> Anyway, there seems to be a loop when using a MapProjectionDisplayJ3D 
> initialized with MapProjectionDisplay.MODE_2Din3D. The underlying cause is 
> that the MapProjectionDisplay doesn't have a "zMap" value (~line 426) and 
> makeLatLonScales passes the array "{ 0.0, 0.0 }" to updateLatLonScale as the 
> maxmin param.
> 
> This eventually causes "majorTickSpacing" to be initialized to 0.0...and 
> since that is used to advance through the for-loop…! Anyways, I was able to 
> fix things by simply skipping the loop if majorTickSpacing is 0.0.
> 
> Jon
> 
> PS: I'm nearly done wrangling mcidasv.ssec.wisc.edu into existence--it just 
> needs the SSL cert and a working email address. ETA: Monday; apologies for 
> the delay.
> 


Ticket Details
===================
Ticket ID: DEQ-350906
Department: Support IDV
Priority: Normal
Status: Open