Minimal code
Minimal code that reproduces the crash in Mathematica 11.1.1 Windows 7 64 bits
Export["g.pdf", Graphics3D[Point[{0, 0, 0}], Method -> {"ShrinkWrap" -> True}]]
Where as this will not cause a crash.
Export["g.pdf", Graphics3D[Point[{0, 0, 0}], Method -> {"ShrinkWrap" -> False}]]
Report
Reported to Wolfram Technical Support [CASE:3938717] .
Update 2017-09-11: Wolfram Technology Engineer confirmed the issue and have passed it along to developers for further diagnosis.
Workaround
Rasterize
would prevent the crash
Export["g.pdf", Rasterize@ Graphics3D[Point[{0, 0, 0}], Method -> {"ShrinkWrap" -> True}]]
TraceScan
The following TraceScan
TraceScan[
(PutAppend[#, "TracePrint.txt"]) &,
Export["g.pdf",
Graphics3D[Point[{0, 0, 0}], Method -> {"ShrinkWrap" -> True}]]
]
Comparing True
and False
options
The lines after the first significant differences include
"MathLink connection was lost."
HoldForm[First]
HoldForm[LinkError[LinkObject["wq5tk_shm", 3, 1]]]
HoldForm[LinkError]
HoldForm[LinkObject["wq5tk_shm", 3, 1]]
HoldForm[{1, "MathLink connection was lost."}]
HoldForm[First[{1, "MathLink connection was lost."}]]
HoldForm[1]
HoldForm[0]
HoldForm[1 === 0]
HoldForm[False]
HoldForm[False]
HoldForm[If[False, LinkObject["wq5tk_shm", 3, 1],
Developer`UninstallFrontEnd[]; System`UseFrontEndDump`LaunchFrontEnd[]]]
HoldForm[Developer`UninstallFrontEnd[]; System`UseFrontEndDump`LaunchFrontEnd[
]]
HoldForm[CompoundExpression]
HoldForm[Developer`UninstallFrontEnd[]]
HoldForm[Developer`UninstallFrontEnd]
HoldForm[AbortProtect[If[Head[System`UseFrontEndDump`$felink] === LinkObject,
LinkClose[System`UseFrontEndDump`$felink];
System`UseFrontEndDump`$felink =. ]*
If[Head[System`UseFrontEndDump`$xproc] === ProcessObject,
KillProcess[System`UseFrontEndDump`$xproc];
DeleteFile /@ Select[{StringJoin["/tmp/.X11-unix/X",
System`UseFrontEndDump`$vncport], StringJoin["/tmp/.X",
System`UseFrontEndDump`$vncport, "-lock"]}, FileExistsQ[#1] & ];
If[Environment["DISPLAY"] === StringJoin[":",
System`UseFrontEndDump`$vncport],
SetEnvironment["DISPLAY" -> None]; ];
Clear[System`UseFrontEndDump`$xproc]; ]]]
HoldForm[AbortProtect]
HoldForm[If[Head[System`UseFrontEndDump`$felink] === LinkObject,
LinkClose[System`UseFrontEndDump`$felink];
System`UseFrontEndDump`$felink =. ]*
If[Head[System`UseFrontEndDump`$xproc] === ProcessObject,
KillProcess[System`UseFrontEndDump`$xproc];
DeleteFile /@ Select[{StringJoin["/tmp/.X11-unix/X",
System`UseFrontEndDump`$vncport], StringJoin["/tmp/.X",
System`UseFrontEndDump`$vncport, "-lock"]}, FileExistsQ[#1] & ];
If[Environment["DISPLAY"] === StringJoin[":",
System`UseFrontEndDump`$vncport],
SetEnvironment["DISPLAY" -> None]; ];
Clear[System`UseFrontEndDump`$xproc]; ]]
HoldForm[Times]
HoldForm[If[Head[System`UseFrontEndDump`$felink] === LinkObject,
LinkClose[System`UseFrontEndDump`$felink];
System`UseFrontEndDump`$felink =. ]]
HoldForm[If]
HoldForm[Head[System`UseFrontEndDump`$felink] === LinkObject]
HoldForm[SameQ]
HoldForm[Head[System`UseFrontEndDump`$felink]]
HoldForm[Head]
HoldForm[System`UseFrontEndDump`$felink]
HoldForm[Symbol]
HoldForm[LinkObject]
HoldForm[Symbol === LinkObject]
HoldForm[False]
HoldForm[If[False, LinkClose[System`UseFrontEndDump`$felink];
System`UseFrontEndDump`$felink =. ]]
subsequently last lines before crashing.
HoldForm[LinkHost -> ""]
HoldForm[LinkOptions -> 256]
HoldForm[LinkProtocol -> Automatic]
HoldForm[LinkMode -> Launch]
HoldForm[System`Dump`lcoptions$2519 = Sequence[LinkHost -> "",
LinkOptions -> 256, LinkProtocol -> Automatic, LinkMode -> Launch]]
HoldForm[LinkHost -> "", LinkOptions -> 256, LinkProtocol -> Automatic,
LinkMode -> Launch]
HoldForm[LinkOpen["C:\\Program Files\\Wolfram \
Research\\Mathematica\\11.1\\SystemFiles\\FrontEnd\\Binaries\\Windows-x86-64\
\\Mathematica.exe /b /min -mathlink -server", System`Dump`lcoptions$2519]]
HoldForm[LinkOpen]
HoldForm["C:\\Program Files\\Wolfram \
Research\\Mathematica\\11.1\\SystemFiles\\FrontEnd\\Binaries\\Windows-x86-64\
\\Mathematica.exe /b /min -mathlink -server"]
HoldForm[System`Dump`lcoptions$2519]
HoldForm[LinkHost -> "", LinkOptions -> 256, LinkProtocol -> Automatic,
LinkMode -> Launch]
HoldForm[LinkOpen["C:\\Program Files\\Wolfram \
Research\\Mathematica\\11.1\\SystemFiles\\FrontEnd\\Binaries\\Windows-x86-64\
\\Mathematica.exe /b /min -mathlink -server", Sequence[LinkHost -> "",
LinkOptions -> 256, LinkProtocol -> Automatic, LinkMode -> Launch]]]
HoldForm[LinkOpen["C:\\Program Files\\Wolfram \
Research\\Mathematica\\11.1\\SystemFiles\\FrontEnd\\Binaries\\Windows-x86-64\
\\Mathematica.exe /b /min -mathlink -server", LinkHost -> "",
LinkOptions -> 256, LinkProtocol -> Automatic, LinkMode -> Launch]]