Dear experts
I tried to print canvas directly to printer but a seg fault occurred.
*** Break *** segmentation violation
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[/Users/siyuan/Physics/root/install/lib/libGui.so] TGPrintDialog::GetPrinters() (no debug info)
[/Users/siyuan/Physics/root/install/lib/libGui.so] TGPrintDialog::TGPrintDialog(TGWindow const*, TGWindow const*, unsigned int, unsigned int, char**, char**, int*, unsigned int) (no debug info)
[/Users/siyuan/Physics/root/install/lib/libGui.so] TRootCanvas::PrintCanvas() (no debug info)
[/Users/siyuan/Physics/root/install/lib/libGui.so] TRootCanvas::ProcessMessage(long, long, long) (no debug info)
[/Users/siyuan/Physics/root/install/lib/libGui.so] TGMainFrame::HandleClientMessage(Event_t*) (no debug info)
[/Users/siyuan/Physics/root/install/lib/libGui.so] TGFrame::HandleEvent(Event_t*) (no debug info)
[/Users/siyuan/Physics/root/install/lib/libGui.so] TGClient::HandleEvent(Event_t*) (no debug info)
[/Users/siyuan/Physics/root/install/lib/libGui.so] TGClient::ProcessOneEvent() (no debug info)
[/Users/siyuan/Physics/root/install/lib/libGui.so] TGInputHandler::Notify() (no debug info)
[/Users/siyuan/Physics/root/install/lib/libCore.so] TMacOSXSystem::DispatchOneEvent(bool) (no debug info)
[/Users/siyuan/Physics/root/install/lib/libCore.so] TSystem::InnerLoop() (no debug info)
[/Users/siyuan/Physics/root/install/lib/libCore.so] TSystem::Run() (no debug info)
[/Users/siyuan/Physics/root/install/lib/libCore.so] TApplication::Run(bool) (no debug info)
[/Users/siyuan/Physics/root/install/lib/libRint.so] TRint::Run(bool) (no debug info)
[/Users/siyuan/Physics/root/install/bin/root.exe] main (no debug info)
[/usr/lib/dyld] start (no debug info)
I searched for some information that changing printer information in $ROOTSYS/etc/system.rootrc
can make it work. Then I add Mac’s print command lp
in to Unix.*.Print.Command
, but no thing changed. How can I make it work? I can understand format in this file…
ROOT Version: 6.28.10
Platform: MacOS
Compiler: clang