motorcycle.C crashes at TCanvas::DrawFrame()

Dear Rooters

I have just downloaded from cvs the new ROOT version (my last version is from Dec 2006),
and tested the tutorial “motorcycle.C”

Sorrowly, it crashes at line 16:

TH1F *vFrame = vC1->DrawFrame(0,-130,60,70);

Can someone tell me what has changed after all these years, so that it crashes?

Below is the crash report.
I am running root on Intel MacBook Pro with MacOS X 10.4.8.

Best regards
Christian

root [0] .x motorcycle.C

*** Break *** bus error
/Volumes/CoreData/ROOT/root/tutorials/graphs/1384: No such file or directory.
Attaching to process 1384.
Reading symbols for shared libraries . done
Reading symbols for shared libraries … done
0x90029a67 in wait4 ()

========== STACKS OF ALL THREADS ==========

Thread 1 (process 1384 thread 0xd03):
#0 0x90029a67 in wait4 ()
#1 0x90046d9b in system ()
#2 0x010aeedd in TUnixSystem::StackTrace ()
#3 0x010b2249 in TUnixSystem::DispatchSignals ()
#4 0x010b237d in SigHandler ()
#5
#6 0x037b1c2f in TPad::DrawFrame ()
#7 0x0112acca in G__G__Base1_133_0_17 ()
#8 0x019301af in Cint::G__ExceptionWrapper ()
#9 0x01a318d4 in G__call_cppfunc ()
#10 0x01a11f1d in G__interpret_func ()
#11 0x01a0049b in G__getfunction ()
#12 0x01ad40d4 in G__getstructmem ()
#13 0x01acb5d2 in G__getvariable ()
#14 0x019b2b58 in G__getitem ()
#15 0x019b4c88 in G__getexpr ()
#16 0x019a0365 in G__define_var ()
#17 0x01ab2fc9 in G__defined_type ()
#18 0x01a61484 in G__exec_statement ()
#19 0x01a131cb in G__interpret_func ()
#20 0x01a00917 in G__getfunction ()
#21 0x019b2cb4 in G__getitem ()
#22 0x019b4c88 in G__getexpr ()
#23 0x01a5bbc8 in G__exec_function ()
#24 0x01a623e6 in G__exec_statement ()
#25 0x01a131cb in G__interpret_func ()
#26 0x01a00917 in G__getfunction ()
#27 0x019b2cb4 in G__getitem ()
#28 0x019b4c88 in G__getexpr ()
#29 0x019cdd00 in G__calc_internal ()
#30 0x01a6fc41 in G__process_cmd ()
#31 0x0108a51e in TCint::ProcessLine ()
#32 0x0100ee3a in TApplication::ProcessFile ()
#33 0x0100d0ba in TApplication::ProcessLine ()
#34 0x000338d1 in TRint::HandleTermInput ()
#35 0x00032fff in TTermInputHandler::Notify ()
#36 0x0004be1a in TTermInputHandler::ReadNotify ()
#37 0x010b257c in TUnixSystem::CheckDescriptors ()
#38 0x010b2cac in TUnixSystem::DispatchOneEvent ()
#39 0x010566dd in TSystem::InnerLoop ()
#40 0x01056681 in TSystem::Run ()
#41 0x0100be36 in TApplication::Run ()
#42 0x000340c7 in TRint::Run ()
#43 0x00002ba3 in main ()
Root > Function DrawSmooth() busy flag cleared
Function motorcycle() busy flag cleared

Hi Christian,
in ROOT ChangeLog:

[quote]2007-04-16 10:35 couet Olivier.Couet@cern.ch

* gpad/src/TPad.cxx:
- DrawFrame() change gPad to the current pad to fix some inconsistent
  behavior pointed here: [savannah.cern.ch/bugs/?25542](https://savannah.cern.ch/bugs/?25542)[/quote]

in “motorcycle.C” change line 16:

I hope this help,
Jan

Great, thank you, now it works.

Could someone please make the corresponding change in the tutorial, thank you.

Best regards
Christian

Thanks Christian for reporting the problem and Jan for fixing it.
Fix now in CVS.

Rene