[Gate-users] Problem with 'std::bad_alloc'

David Boersma david.boersma at physics.uu.se
Tue Jan 12 18:11:38 CET 2016


Hi Michał,

Some more simple questions:

* Can you run macros from the example directory successfully, or do some 
of them result in this same error?


* Do you have multiple versions of Geant4 and/or Root installed? If yes, 
could you check with the following command:

ldd $(which Gate)

that your Gate executable gets indeed linked to the same versions as the 
ones you configured during installation of Gate? If the versions do not 
match: then fix your environment, or reinstall Gate (from scratch).



If these simple questions do not help, then I think the next step is to 
make a minimalistic version of your macro that demonstrates the error 
you are seeing and post it here on the list, so that other people have a 
chance to reproduce this problem. Please also specify how you run the 
Gate command (with which options).

HTH,
David Boersma

Den 12/01/2016 kl. 17:35, skrev Michal Knap:
> Hi David,
> I checked you idea but i use only 50-60% RAM memory.
> While i'm running simulation i do not use any other apps.
> Even browser is closed.
>
> I have intel i5 vPRO, 8GB RAM, 120 GB SSD
> Ubuntu 14.04 LTS, Geant4.9.6.p04,Gate7.0,Root 5.34.34
>
> Kind regards
>
>
> 17:01 wtorek, 2016-1-12, David Boersma <david.boersma at physics.uu.se>
> napisał(a):
>
>
>
>
> Hi Michał,
>
> My first guess would be a memory problem. Could you check with some
> resource monitor ("top" or "htop" on linux, "Activity Monitory" on
> MacOSX) how much RAM is used on your machine, by which programs?
>
> It could be that other programs than GATE (e.g. a web browser) are using
> so much RAM that there is not enough available for your GATE
> application. Then this is easily solved by quitting those other programs.
>
> It could be that you configured GATE too optimistically, e.g. using a
> scoring volume with too many voxels. Then you should either use a more
> modest configuration, or run on a bigger machine.
>
> There are many other possible causes, but these are the easiest ones, I
> can think of. It would be good if you could tell us whether these are
> already ruled out.
>
> Also: when reporting problems and asking for help, it could be helpful
> if you would add some basic specs about the OS (+version) and the
> hardware (in particular how much RAM your have). Which version of GATE
> are you using, with which version of Geant4? How did you install it? Did
> you install it recently or long ago?
>
> HTH,
> David
>
> Den 12/01/2016 kl. 15:55, skrev Michal Knap:
>  > Hi All,
>  > As i'm trying to simulate a minigammacamera i'm getting this error
> message.
>  > I still do not know how to fix this.
>  > Can anybody know what is wrong?
>  > //
>  > /[Acquisition-0] Slice 0 from 0 to 37.5 s [slice=37.5 s], final stop at
>  > 150 s./
>  > /terminate called after throwing an instance of 'std::bad_alloc'/
>  > /  what():  std::bad_alloc/
>  > /Przerwane (core dumped)/
>  > /
>  > /
>  > I'll be very thankful for any help.
>  >
>  > Thanks in advance
>  >
>  > Kind regards
>  > Michał Knap
>
>  >
>  >
>  > _______________________________________________
>  > Gate-users mailing list
>  > Gate-users at lists.opengatecollaboration.org
> <mailto:Gate-users at lists.opengatecollaboration.org>
>  > http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>  >
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> <mailto:Gate-users at lists.opengatecollaboration.org>
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>


More information about the Gate-users mailing list