fixed in 10.0.2

RawArray seems to crash the kernel on my machine

RawArray["Byte", {}]

Is this a bug? Any insights why this happens?

My system:

version 10.01 on Mac OS X 10.0

enter image description here


I heard back from the technical support that "a correction is already being worked on for a future version".

  • $\begingroup$ Well, it is an undocumented thing, not meant for public consumption ... do you have any reason to believe that it should work? $\endgroup$ – Szabolcs Oct 25 '14 at 3:58
  • 2
    $\begingroup$ @Szabolcs It has been used in the documentation example of Raster3D (under Neat Examples). I was playing with the parameters in the example and it crashed the kernel. $\endgroup$ – xslittlegrass Oct 25 '14 at 6:44
  • $\begingroup$ I can reproduce the crash on Win7 64 Pro SP1, Mma . I think that crashing the kernel is not an acceptable behaviour, irrespective if its an undocumented function or not. Anybody available to test on Linux? $\endgroup$ – rhermans Oct 25 '14 at 9:45
  • 1
    $\begingroup$ @rhermans If you were implementing hybrid Mathematica/C libraries, I think you woulnd't say that. Mathematica happens to be a language where it's not easy to hide the internal wiring. "Undocumented" often really means that it's a helper function for the developer, not meant for the end user. Implementing checks to make sure all arguments passed to a function are correct and reporting errors if they aren't is a lot of work, not to mention it also hurts performance. It just makes no sense to include these checks for a function not meant for public consumption. $\endgroup$ – Szabolcs Oct 25 '14 at 15:03
  • 1
    $\begingroup$ Of course if RawArray is used somewhere in the documentation that makes things a bit different, but we knew Mathematica was messing ... BTW it also crashes in v9 but not in v8. $\endgroup$ – Szabolcs Oct 25 '14 at 15:05

I can reproduce the crash on Win7 64 Pro SP1, Mma

This has been fixed in version 10.0.2. On windows 7:

(*10.0 for Microsoft Windows (64-bit) (December 4, 2014)*)

RawArray["Byte", {}]

Mathematica graphics

No crash. Just the above error message.


Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.