PROOF crash before event loop

Hello,

I am trying to use PROOF on my ROOT Tree Selector macro.
There are 2 Trees per input file and the macro works fine when running locally. Changing to PROOF let the macro crash.
To configure PROOF I use the following code

  TProof *p = TProof::Open("");
  p->UploadPackage("ANAROOTPKG");
  p->EnablePackage("ANAROOTPKG");
  TDSet *set = new TDSet("TTree","egamma");
  TDSet *set2 = new TDSet("TTree2","egammaTrigDec");
  std::cout << " .. open File " << std::endl;

  ifstream myfile (argStr1.c_str());
  std::string line;

  if (myfile.is_open()){
    while (myfile >> line){
      set->Add(line.c_str());
      set2->Add(line.c_str());
     }
    myfile.close();
   }
  else {
    std::cout << "file " << myfile << " is not open " << std::endl;
   }

  std::cout << " .. Start process " << std::endl;
  set->AddFriend(set2,"friend");
  set->Process("WenuEoverP");

Appearently PROOF crashes between SlaveBegin() and Process(), see the error log:

Maybe someone of you has a clue.
Thanks!
Florian

Hi,

Sorry for the late re-action.
Do you still have this problem?

If yes, from your post it looks like the crash happens when the friend tree is loaded.
Can you re-run with gProof->SetLogLevel(2) to get some more verbosity?

G. Ganis