GithubHelp home page GithubHelp logo

Segmentation violation detected about mcx HOT 8 CLOSED

Eidantz avatar Eidantz commented on July 25, 2024
Segmentation violation detected

from mcx.

Comments (8)

fangq avatar fangq commented on July 25, 2024

@Eidantz, sorry for the delay, only saw it today.

I noticed the same when I upgraded my desktop from 14.04 to 16.04 yesterday. I am not yet sure what cause the crash, but it seems matlab 2016 does not seem to like the mex compiled on Ubuntu 16.04.

I, however, found that matlab 2017a and 2018a work fine with mcxlab. Do you have those versions? if yes, do you see the same?

from mcx.

Eidantz avatar Eidantz commented on July 25, 2024

I am using MATLAB R2017a (9.2.0.556344) 64-bit (glnxa64). I contact MATLAB company but they haven't responded yet.
If it helps the mcxlab stop at this point:

normalizing raw data ...        normalization factor alpha=33.333332
simulated 30000000 photons (30000000) with 57344 threads (repeat x1)
MCX simulation speed: 9511.73 photon/ms
total simulated energy: 30000000.00     absorbed: 28.61906%
(loss due to initial specular reflection is excluded in the total)

from mcx.

fangq avatar fangq commented on July 25, 2024

the above log is the end of mcxlab's kernel command line messages - so it looks like the kernel was completed correctly.

can you checkout the current dev branch "etherdome" and recompile on your system (git clone first, and then git checkout etherdome inside mcx folder), and see if this issue remains.

If this does not help, to really figure out what happened, you should install valgrind on your system, and run the below command

matlab -nojvm -r "scriptname_caused_crash" -D"valgrind --error-limit=no --tool=memcheck -v --log-file=valgrind.log" ”

then, the valgrind.log will contain the debug info for the crashes, if you can post it, I would be able to find out which line of the code failed in your simulation.

from mcx.

fangq avatar fangq commented on July 25, 2024

let me know if you have tested the above command with the valgrind debug log. happy to look into the log file and find any clue.

from mcx.

Eidantz avatar Eidantz commented on July 25, 2024

I tried the Etherdome version, but the mcx.mex I took from the old version and the problem is from the mcx.mex file, doesn't it?
Did you update the mcx.mex file?
I will try tomorrow the Valgrind and I will update you.

from mcx.

fangq avatar fangq commented on July 25, 2024

I assume you meant the mcx.mexa64 file? it is a binary recompiled in the nightly build. you can download the latest binary from http://mcx.space/nightly/linux64/

from mcx.

Eidantz avatar Eidantz commented on July 25, 2024

I used this version

http://mcx.space/nightly/linux64/mcxlab-linux-x86_64-v2018.12.zip

and it works perfectly!

from mcx.

fangq avatar fangq commented on July 25, 2024

thanks, I will close this issue for now.

from mcx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.