tschoonj / xmimsim

Monte Carlo simulation of energy-dispersive X-ray fluorescence spectrometers
Other
32 stars 11 forks source link

XMI-MSIM crash on Apple M2 laptop #105

Open PATpat30-prog opened 1 month ago

PATpat30-prog commented 1 month ago

I installed the latest version of XMI-MSIM (8.1) on my MacBook air (M2) and when i press the ‘add’ button in ‘composition’ (first page) the program shut down with this type of error: Code Type: x86-64 (Translated) Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x000000000000bf37 Exception Codes: 0x0000000000000001, 0x000000000000bf37 I try to virtualize Windows 11 with UTM (RAM 6-8 gb, 4 core CPU, 64 gb of memory) on my laptop but the architecture still the same (ARM) infact the software didn't even start and an error pop up: “This program can only be installed on versions of Windows designed for the following processor architectures” So, i try even emulating Windows 7 also with UTM (RAM 8-10 gb, 4 core CPU, 64 gb of memory) changing the architecture (ARM to x86-64) but another error came out when i try to open the win64.exe file: “The file size exceeds the limit allowed and cannot be saved” Let me know if anybody can fix this type of problem or if It’s impossibile due to the architecture of the new Apple processors.

tschoonj commented 1 month ago

Try installing via Homebrew on macOS.

PATpat30-prog commented 1 month ago

Sorry, i can't read the instructions due to the security, could you please open it? i linked the screen of what i could see, let me know, thanks Picture

tschoonj commented 1 month ago

Apologies, I sent you the wrong link. Instructions can be found in the Wiki.

PATpat30-prog commented 7 hours ago

Hi, I've trying to install the XMIMSIM on my notebook (macOS with m2 chip), using the Homebrew, but something it's wrong, given me this error: ==> Installing tschoonj/tap/xrmc --with-xmi-msim ==> ./configure --disable-silent-rules --enable-openmp --docdir=/opt/homebrew/Ce ==> make Last 15 lines from /Users/patricknunziati/Library/Logs/Homebrew/xrmc/02.make: ./../sample/xrmc_sample.h:89:7: note: candidate found by name lookup is 'sample' 89 | class sample : public basesource | ^ /opt/homebrew/opt/llvm/bin/../include/c++/v1/__algorithm/sample.h:105:1: note: candidate found by name lookup is 'std::sample' 105 | sample(_PopulationIterator __first, | ^ 7 errors generated. make[3]: [libdetector_la-detector.lo] Error 1 make[3]: Waiting for unfinished jobs.... 2 errors generated. libtool: compile: /opt/homebrew/opt/llvm/bin/clang++ -DHAVE_CONFIG_H -I. -I../.. -I./../xrmc_math -I./../xrmc_algo -I./../arrayNd -I./../device -I./../source -I./../photon -I./../spectrum -I./../exception -I./../main -I./../gettoken -I./../randmt -I./../sample -I./../composition -I./../geom3d -I./../phasecontrast -I./../fft -fopenmp -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -g -O2 -c xrmc_screen.cpp -o libdetector_la-xrmc_screen.o >/dev/null 2>&1 make[3]: [libdetector_la-loaddetector.lo] Error 1 make[2]: [all-recursive] Error 1 make[1]: [all-recursive] Error 1 make: [all] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core): https://github.com/tschoonj/homebrew-tap/issues

Before this another error came out (the same reported by https://github.com/diegofelixdias) so i followed the instruction linked by tschoonj about Xcode and Command line tools.

Thanks for your attention.

PATpat30-prog commented 6 hours ago

Now i also have this type of error Last 15 lines from /Users/patricknunziati/Library/Logs/Homebrew/xrmc/02.make: ./../sample/xrmc_sample.h:89:7: note: candidate found by name lookup is 'sample' 89 | class sample : public basesource | ^ /opt/homebrew/opt/llvm/bin/../include/c++/v1/__algorithm/sample.h:105:1: note: candidate found by name lookup is 'std::sample' 105 | sample(_PopulationIterator __first, | ^ 7 errors generated. make[3]: [libdetector_la-detector.lo] Error 1 make[3]: Waiting for unfinished jobs.... 2 errors generated. libtool: compile: /opt/homebrew/opt/llvm/bin/clang++ -DHAVE_CONFIG_H -I. -I../.. -I./../xrmc_math -I./../xrmc_algo -I./../arrayNd -I./../device -I./../source -I./../photon -I./../spectrum -I./../exception -I./../main -I./../gettoken -I./../randmt -I./../sample -I./../composition -I./../geom3d -I./../phasecontrast -I./../fft -fopenmp -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -g -O2 -c xrmc_screen.cpp -o libdetector_la-xrmc_screen.o >/dev/null 2>&1 make[3]: [libdetector_la-loaddetector.lo] Error 1 make[2]: [all-recursive] Error 1 make[1]: [all-recursive] Error 1 make: [all] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core): https://github.com/tschoonj/homebrew-tap/issues

Warning: Unable to query GitHub for recent issues on the tap GitHub API Error: Bad credentials HOMEBREW_GITHUB_API_TOKEN may be invalid or expired; check: https://github.com/settings/tokens

The warning at the end i don't know how it comes and how to fix it, please if anyone can help me, thanks