geoda icon indicating copy to clipboard operation
geoda copied to clipboard

[Bug] M1 MacBook on Monterey 12.0.1 can't run release 1.20

Open PeiPei0606 opened this issue 3 years ago • 14 comments

Well, I upgrade my MacBook to Monterey 12.0.1. Then the latest release can't run on it.

Does anyone have the same problem as me? Hope to get a suggestion.

PeiPei0606 avatar Nov 09 '21 02:11 PeiPei0606

Thanks @PeiPei0606 ! which version did you downloaded? Is there any error message?

lixun910 avatar Nov 09 '21 03:11 lixun910

Thanks @PeiPei0606 ! which version did you downloaded? Is there any error message?

I downloaded version 1.20 ( GeoDa1.20.0-M1-Installer.dmg ) when I was using Big Sur 11.6 on my MacBook. It was normal at Big Sur. But After that I upgraded to Monterey, it crashed and reported an error. I tried another package ( GeoDa1.20.0-Installer.dmg ) and also failed.

And why this report shows me that I installed version 1.18 but not 1.20? 截屏2021-11-09 13 03 22

PeiPei0606 avatar Nov 09 '21 05:11 PeiPei0606

Thanks, @PeiPei0606 ! I will check it. Can you use the x86_64 version as a fallback: https://github.com/GeoDaCenter/geoda/releases/download/v1.20/GeoDa1.20.0-Installer.dmg

lixun910 avatar Nov 09 '21 05:11 lixun910

Thanks, @PeiPei0606 ! I will check it. Can you use the x86_64 version as a fallback: https://github.com/GeoDaCenter/geoda/releases/download/v1.20/GeoDa1.20.0-Installer.dmg

Thank you so much! But unfortunately, I try the package you gave above and it still doesn't work. I think I may need to restart the computer or minimize its security before trying the next time. Hope it works.

PeiPei0606 avatar Nov 09 '21 07:11 PeiPei0606

I tried both the M1 and the Intel versions, but they both crash with the same exception type:

Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000100000000 Exception Codes: 0x0000000000000001, 0x0000000100000000 Exception Note: EXC_CORPSE_NOTIFY

milko avatar Nov 10 '21 17:11 milko

I got a problem upgrading my M1 to Monterey. Could anyone help me to check if the OpenCL framework is still on Monterey? (as MacRumor OpenCL will not work at all on Monterey https://forums.macrumors.com/threads/psa-opencl-and-opengl-will-not-work-at-all-for-monterey-vms-on-apple-silicon.2318995/)

just check if the path exists: /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL

Thanks!

lixun910 avatar Nov 10 '21 17:11 lixun910

I got a problem upgrading my M1 to Monterey. Could anyone help me to check if the OpenCL framework is still on Monterey? (as MacRumor OpenCL will not work at all on Monterey https://forums.macrumors.com/threads/psa-opencl-and-opengl-will-not-work-at-all-for-monterey-vms-on-apple-silicon.2318995/)

just check if the path exists: /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL

Thanks!

I check it on my mac but maybe they don't exsist.

OpenCL: image

OpenGL: image

PeiPei0606 avatar Nov 11 '21 15:11 PeiPei0606

Thanks @PeiPei0606 ! I just upgraded my M1 to Monterey, and I was able to create a new build of GeoDa that can run on Monterey: https://github.com/GeoDaCenter/geoda/releases/download/v1.20/GeoDa1.20.0-Installer.dmg Let me know if this one works on your machine. @milko

I am still working on a native M1 version GeoDa 1.20 for Monterey. Will keep you updated.

lixun910 avatar Nov 17 '21 02:11 lixun910

@lixun910 latest 1.20 for intel that you linked works for me on M1 Air, however the previous September 1.20 for Intel release also works fine with Monterey 12.0.1

e-kotov avatar Nov 18 '21 19:11 e-kotov

Thanks @PeiPei0606 ! I just upgraded my M1 to Monterey, and I was able to create a new build of GeoDa that can run on Monterey: https://github.com/GeoDaCenter/geoda/releases/download/v1.20/GeoDa1.20.0-Installer.dmg Let me know if this one works on your machine. @milko

I am still working on a native M1 version GeoDa 1.20 for Monterey. Will keep you updated.

Thanks, it works! Thank you so much!!

PeiPei0606 avatar Nov 20 '21 06:11 PeiPei0606

I'm also have the same crash issue after upgrading my M1 to Monterey. I downloaded the most recent version (1.20) and it is still not opening. Any tips?

anneandrebc avatar Nov 20 '21 12:11 anneandrebc

@anneandrebc use the intel version and wait for the updated M1 build.

e-kotov avatar Nov 20 '21 12:11 e-kotov

I was able to creat a native M1 GeoDa build for Monterey: https://github.com/GeoDaCenter/geoda/releases/download/v1.20/GeoDa1.20.0.8-M1-Monterey-Installer.dmg Could you please help to check if this one works on Monterey? Thanks! @e-kotov @anneandrebc @PeiPei0606 @milko

Also, my M1 machine has been upgrade from BigSur to Monterey. Anyone can help to verify if this installer works on M1 BigSur? Thank you very much!

  • [ ] does this installer work on M1 Monterey?
  • [ ] does this installer work on M1 BigSur?

The issue was introduced in M1 build with libgdal 3.3.3 (https://formulae.brew.sh/formula/gdal): the libsqlite 3.36.0 (https://formulae.brew.sh/formula/sqlite) raised the above reported error. So I have to downgrade the libsqlite from 3.36.0 to 3.30.1 to make the native M1 GeoDa works on Monterey. Below is the very basic gdal c++ code that couldn't load a sqlite file on M1 Monterey using homebrew libgdal 3.3.3:

#include "ogrsf_frmts.h"

int main()

{
    GDALAllRegister();

    GDALDataset *poDS = static_cast<GDALDataset*>(
        GDALOpenEx( "test.sqlite", GDAL_OF_VECTOR, NULL, NULL, NULL ));
    if( poDS == NULL )
    {
        printf( "Open failed.\n" );
        exit( 1 );
    }
   GDALClose( poDS );
}

lixun910 avatar Nov 22 '21 04:11 lixun910

@lixun910 the linked build works on Monterey 12.0.1 MB Air M1 . Cannot test on Big Sur, sorry.

e-kotov avatar Nov 22 '21 21:11 e-kotov