1
$\begingroup$

I have a severe problem with variables being "emptied" occassionally. I am not able to reproduce the behavior but this is basically what happens:

1) store list list obtained from large symbolc computation in file list.mx using Export["list.mx",list]

2) close the notebook and import the data to another notebook (same machine, same OS etc) using list=Import["list.mx"]

Now everything is fine from time to time, in the sense that I can easily work with list. However, sometimes I look at list[[10]] or any other part of it, the part is displayed and all of a sudden list just returns (* list *) and moreover also all other previously imported .mx content is deleted as well (although not used at that time). Is there anything wrong with my usage of Export/Import or is it a bug? As said, it is not reproducable - but clearly not related to memory being filled up to maximum, yet maybe another memory issue?.

Is there a way to find out what is occasionally going on there?

$\endgroup$
  • $\begingroup$ What type of processor are you using 32 bit or 64? $\endgroup$ – rcollyer Jul 24 '15 at 12:52
  • $\begingroup$ Wild guess: do you have Evaluation -> Notebook's Default Context set to Global or to Unique To ... ? Make sure to set it to Global and try again. I haven't experimented with this at all, just a guess. $\endgroup$ – Szabolcs Jul 24 '15 at 12:56
  • $\begingroup$ @rcollyer 64bit processor (AMD Opteron™ 6176) $\endgroup$ – Lukas Jul 24 '15 at 12:59
  • $\begingroup$ @Szabolcs it is set to Global, so unfortunately no potential cause there $\endgroup$ – Lukas Jul 24 '15 at 13:00
  • 1
    $\begingroup$ Apart from Szabolcs's suggestion, it sounds possible that the kernel is crashing. When this occurs, do all symbols become dark blue at the same time and are all other definitions lost as well, or just list? $\endgroup$ – Oleksandr R. Jul 24 '15 at 13:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.