Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: Segmentation fault when start recording



Ernst Fürst wrote:
> 
> Hello Klaus
> nice to help you :-)
> > > try to do so. the ':' character is the bad guy here. because of it the
> > > directory is not created. and VDR is confused by the missing dir.
> The directory in /video will be created and i can change to this directory
> in the console.
> Why is in the logfile the entry for record before the entry for creating the
> directory?

That's because it first logs that it is going to record to that directory,
and then initiates creating the directories as necessary.

> I'm not a developper but it looks strange to me. The file
> 2003-07-28.20:52.50.50.rec is not created. Is it taking the name from the
> actual time? I'm living in switzerland. My system-time settings are like
> this: Mon Jul 28 21:03:02 CEST 2003, with double points.
> 
> Here is the output in the logfile:
> ----------------start recording------------------------------
> 
> Jul 28 20:52:14 tvstation vdr[7792]: transfer thread started (pid=7792)
> 
> Jul 28 20:52:15 tvstation vdr[7793]: receiver thread started on device 1
> (pid=7793)
> 
> Jul 28 20:52:15 tvstation vdr[7755]: timer 1 (10 2052-2352 '@TITLE EPISODE')
> start
> 
> Jul 28 20:52:15 tvstation vdr[7755]: Title: 'Faszination Freiheit' Subtitle:
> 'Spektakuläre Fluchtgeschichten 4. Teil'
> 
> Jul 28 20:52:15 tvstation vdr[7755]: record
> /video/@Faszination_Freiheit_Spektakuläre_Fluchtgeschichten_4._Teil/2003-07-
> 28.20:52.50.50.rec
> 
> Jul 28 20:52:15 tvstation vdr[7755]: creating directory
> /video/@Faszination_Freiheit_Spektakuläre_Fluchtgeschichten_4._Teil
> 
> Jul 28 20:52:15 tvstation vdr[7755]: creating directory
> /video/@Faszination_Freiheit_Spektakuläre_Fluchtgeschichten_4._Teil/2003-07-
> 28.20:52.50.50.rec
> 
> Jul 28 20:52:15 tvstation vdr[7755]: ERROR:
> /video/@Faszination_Freiheit_Spektakuläre_Fluchtgeschichten_4._Teil/2003-07-
> 28.20:52.50.50.rec: Invalid argument

Well, here we go: the directory containing the ':' could not be created.
This would indicate that you are using a VFAT file system, but haven't
built VDR with VFAT=1.

> Jul 28 20:52:15 tvstation vdr[7794]: recording thread started (pid=7794)
> 
> Jul 28 20:52:15 tvstation vdr[7755]: ERROR:
> /video/@Faszination_Freiheit_Spektakuläre_Fluchtgeschichten_4._Teil/2003-07-
> 28.20:52.50.50.rec/summary.vdr: No such file or directory

Here's the problem! The cRecorder itself does check whether MakeDirs() returns
'true', but in menu.c, line 2999, the 'summary' is written anyway.

Please try the following modification to menu.c, which puts the creation of
the directories _before_ setting up the cRecorder:

-------- cut here --------------
--- menu.c      2003/07/26 16:10:39     1.262
+++ menu.c      2003/08/02 12:53:12
@@ -2993,6 +2993,7 @@
      }
 
   cRecordingUserCommand::InvokeCommand(RUC_BEFORERECORDING, fileName);
+  if (MakeDirs(fileName, true)) {
   const cChannel *ch = timer->Channel();
   recorder = new cRecorder(fileName, ch->Ca(), timer->Priority(), ch->Vpid(), ch->Apid1(), ch->Apid2(), ch->Dpid1(), ch->Dpid2());
   if (device->AttachReceiver(recorder)) {
@@ -3003,6 +3004,7 @@
      }
   else
      DELETENULL(recorder);
+     }
 }
 
 cRecordControl::~cRecordControl()
-------- cut here --------------

Line numbers may be somewhat off, but it shouldn't be too hard
to insert these two lines manually.

Let me know if this helps.

Klaus


-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index