GeoDaCenter / geoda

GeoDa: An introduction to spatial data analysis
http://geodacenter.github.io
GNU General Public License v3.0
680 stars 155 forks source link

Geary Local index debugging issues [Bug] #2484

Open blackokatt opened 1 month ago

blackokatt commented 1 month ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Load dataset
  2. Create weigth matrix (of any type).
  3. Ask for univariate local Geary
  4. When you click ok for seing the map, a debugging check is shown as "application has failed" on the ...\src\msw\brush.cpp archive.

Expected behavior Not have a debugging alert at al, and it doesnt affect the performance of the software after the problem shows for the first time.

Screenshots

image

Desktop (please complete the following information):

Additional context I think a block of code is missing or maybe an archive, but i'm not quite sure how to solve it, either way, this debug alert should not apear, because from the time it shows and afterwards, the bug makes the program to start failing in this way for the rest of local indexes.

This error sometimes also happens when you try to calculate other local autocorrelation indexes, but not every time.

I don't know if this issue is related, but in the case of multivariate local geary, the program just shuts down completely, even without any debugging alert and doesnt give any results.

lanselin commented 1 month ago

Please check with the latest version: 1.22.0.6

blackokatt commented 1 month ago

I installed the lastest version (1.22.0.4), and now the behavior is quite strange. No debugging alert now, but the behavior is odd. I loaded the same dataset but created a new weight matrix with the updated software (Queen, 2nd orden, including lower order), i asked for univariate local geary and the program crashed before showing any results, it just opens the significance and cluster map windows, and then closes all.

I tried again, same dataset, same new W matrix, but asked for the following indexed (in this order:

  1. local moran
  2. local median moran
  3. bivariate local moran
  4. Local G
  5. Local G*
  6. Univariate Quantile LISA
  7. Univariate local Geary

All of them with all options of resuults selected, all worked, inckluding univariate local geary; then i asked for multivariate local geary, and the program crashed again just after opening the maps windows but before showing anything it chrashes and closes all.

Opened again, asked for univariate local geary, crashed again, opened again, asked for multivariate local geary, and crashed again in the same way.

Opened again, asked for other indexes, no problems, until i ask again for multivariate local geary,

lanselin commented 1 month ago

Latest release is 1.22.0.6, but I don't think that is the issue. You can find binaries at:

https://github.com/GeoDaCenter/geoda/releases

If you check with the included sample data sets, it works. The problems you describe would suggest some issue with the data/weights/variables selected. If you care to share, we can check (e-mail to @lixun910 or @lanselin. Alternatively, it could be related to Windows. I cannot check that, but @lixun910 may be able to.