[mythtv-users] backend crashing when recording with "Received Aborted: Code -6..."
Peter Bennett
pb.mythtv at gmail.com
Mon May 28 23:43:08 UTC 2018
On 05/28/2018 01:14 PM, Michael wrote:
> On 05/24/2018 09:22 AM, Michael T. Dean wrote:
>> On 05/24/2018 12:07 PM, Richard Fellinger wrote:
>>> Hi,
>>>
>>> I recently upgraded my system to Fedora 28 (server) and my Myth TV
>>> backend started started crashing when a recording was supposed to
>>> start. This is the log output from the latest occurance:
>>>
>>> 2018-05-24 00:59:00.001456 I New DB connection, total: 9
>>> 2018-05-24 00:59:00.006481 I Reschedule requested for PLACE
>>> PrepareToRecord
>>> 2018-05-24 00:59:00.190943 I Scheduled 323 items in 0.2 = 0.00
>>> match + 0.00 check + 0.17 place
>>> 2018-05-24 00:59:30.190532 I TVRec[3]: ASK_RECORDING 3 29 0 0
>>> 2018-05-24 00:59:30.599092 I TVRec[4]: ASK_RECORDING 4 29 0 0
>>> 2018-05-24 01:00:00.027867 I TVRec[3]: Changing from None to
>>> RecordingOnly
>>> 2018-05-24 01:00:00.027957 I New DB connection, total: 9
>>> 2018-05-24 01:00:00.029794 I TVRec[3]: TuningFrequency
>>> 2018-05-24 01:00:00.206651 C ProgramInfo(): Failed to find recorded
>>> entry for 0.
>>> 2018-05-24 01:00:00.374903 I Tuning recording: "Match Game":
>>> channel 1073 on cardid [3], sourceid 1
>>> /usr/include/c++/8/bits/stl_vector.h:932: std::vector<_Tp,
>>> _Alloc>::reference std::vector<_Tp,
>>> _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp =
>>> unsigned char; _Alloc = std::allocator<unsigned char>;
>>> std::vector<_Tp, _Alloc>::reference = unsigned char&;
>>> std::vector<_Tp, _Alloc>::size_type = long unsigned int]: Assertion
>>> '__builtin_expect(__n < this->size(), true)' failed.
>>> 2018-05-24 01:00:00.993542 C Received Aborted: Code -6, PID 13831,
>>> UID 978, Value 0x00000000
>>> 2018-05-24 01:00:01.093938 I Updating status for "Match Game" on
>>> cardid [3] (Tuning => Recording)
>>> Aborted (core dumped)
>>>
>>> Is this a known issue? Any ideas on how I can fix this?
>>>
>>
>> https://lists.gt.net/mythtv/users/617684#617684
>>
>> Mike
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users at mythtv.org
>> http://lists.mythtv.org/mailman/listinfo/mythtv-users
>> http://wiki.mythtv.org/Mailing_List_etiquette
>> MythTV Forums: https://forum.mythtv.org
>
>
> Here are my rpmfusion updated packages from Fedora 28 with the
> packages I found in the mailing lists, etc. This seems stable for me
> at the moment.
>
> https://drive.google.com/drive/folders/1of36YD99oqU3CDjjE4xQ59GmZdQUSIz7?usp=sharing
>
>
>
> Some of the patches were already in the current rpmfusion packages and
> here are the additional ones I added:
>
>
> mythtv-ProgramMap-gcc8mlb.patch
>
> diff -urN
> mythtv-0849e9959639dd8dfeab0af4ce0dfc166da1f896/mythtv/libs/libmythtv/
> mpeg/mpegtables.cpp
> mythtv-0849e9959639dd8dfeab0af4ce0dfc166da1f896.new/mythtv/l
> ibs/libmythtv/mpeg/mpegtables.cpp
> ---
> mythtv-0849e9959639dd8dfeab0af4ce0dfc166da1f896/mythtv/libs/libmythtv/mpeg/m
> pegtables.cpp 2018-05-10 12:05:38.000000000 -0700
> +++
> mythtv-0849e9959639dd8dfeab0af4ce0dfc166da1f896.new/mythtv/libs/libmythtv/mp
> eg/mpegtables.cpp 2018-05-28 09:36:07.221120277 -0700
> @@ -445,7 +445,7 @@
> uint len = global_desc[i][1] + 2;
> gdesc.insert(gdesc.end(), global_desc[i], global_desc[i] + len);
> }
> - pmt->SetProgramInfo(&gdesc[0], gdesc.size());
> + pmt->SetProgramInfo(gdesc.data(), gdesc.size());
>
> for (uint i = 0; i < count; i++)
> {
> @@ -457,7 +457,7 @@
> prog_desc[i][j], prog_desc[i][j] + len);
> }
>
> - pmt->AppendStream(pids[i], types[i], &pdesc[0], pdesc.size());
> + pmt->AppendStream(pids[i], types[i], pdesc.data(), pdesc.size());
> }
> pmt->Finalize();
>
>
> mythtv-MythSocket-ResetReal-gcc8mlb.patch
>
> diff -urN
> mythtv-0849e9959639dd8dfeab0af4ce0dfc166da1f896/mythtv/libs/libmythbas
> e/mythsocket.cpp
> mythtv-0849e9959639dd8dfeab0af4ce0dfc166da1f896.new/mythtv/libs
> /libmythbase/mythsocket.cpp
> ---
> mythtv-0849e9959639dd8dfeab0af4ce0dfc166da1f896/mythtv/libs/libmythbase/myth
> socket.cpp 2018-05-10 12:05:38.000000000 -0700
> +++
> mythtv-0849e9959639dd8dfeab0af4ce0dfc166da1f896.new/mythtv/libs/libmythbase/
> mythsocket.cpp 2018-05-28 09:32:20.962251279 -0700
> @@ -1006,7 +1006,7 @@
> if (avail)
> {
> trash.resize(max((uint)trash.size(),avail));
> - m_tcpSocket->read(&trash[0], avail);
> + m_tcpSocket->read(trash.data(), avail);
> }
>
> LOG(VB_NETWORK, LOG_INFO, LOC + "Reset() " +
>
>
>
Thank you for the feedback. I have installed the fix into the MythTV
master version. I am waiting a few days to make sure there are no
problems, then I will install into 29 and 0.28.
Peter
More information about the mythtv-users
mailing list