SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Software
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Software Discussion related to the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the SageTV software application should be posted here. (Check the descriptions of the other forums; all hardware related questions go in the Hardware Support forum, etc. And, post in the customizations forum instead if any customizations are active.)

Reply
 
Thread Tools Search this Thread Display Modes
  #21  
Old 04-24-2020, 01:45 PM
AlbuQuirky AlbuQuirky is offline
Sage User
 
Join Date: Feb 2011
Location: Albuquerque, NM
Posts: 13
Quote:
Originally Posted by wnjj View Post
Another thing you can try: Does the 32-bit version crash the same way? You can install the 32-bit client on the same machine and it should be able to talk to the 64-bit server.
wnjj, I finally managed to play with the 32bit SageTVClient9.2.1.
It crashes in the same manner as the 64bit UI for the server9.2.1.

I also used the 32bit client to connect to my existing 32bit server9.1.9 on the old Window7 platform; it also crashes on livetv and files recorded by the older server;

but, nothing crashes when using the server9.1.9 32bit UI for any type of playback.

Hope that helps.
Reply With Quote
  #22  
Old 04-24-2020, 04:56 PM
SHS's Avatar
SHS SHS is offline
Moderator
 
Join Date: Mar 2003
Location: Vinita, Oklahoma
Posts: 4,589
Quote:
Originally Posted by wnjj View Post
StreamDemux isn’t used for MPEG2 anyway. It’s using MpegDeMux.ax.
It should be set to 1 any way
Reply With Quote
  #23  
Old 04-24-2020, 05:53 PM
wnjj wnjj is offline
Sage Icon
 
Join Date: Jan 2009
Posts: 1,514
Looking into the debug log for the demux and noticed one difference between the 2 files. In the working one, track 0 is the AC3 audio and track 1 is the Mpeg2 video. In the crashing one, the tracks are swapped. I'm still tracking down where/why it's crashing.
Reply With Quote
  #24  
Old 04-24-2020, 06:09 PM
SHS's Avatar
SHS SHS is offline
Moderator
 
Join Date: Mar 2003
Location: Vinita, Oklahoma
Posts: 4,589
Quote:
Originally Posted by wnjj View Post
Looking into the debug log for the demux and noticed one difference between the 2 files. In the working one, track 0 is the AC3 audio and track 1 is the Mpeg2 video. In the crashing one, the tracks are swapped. I'm still tracking down where/why it's crashing.
Yup I see that it crashing it make no sense
Reply With Quote
  #25  
Old 04-25-2020, 03:51 PM
trk2 trk2 is offline
Sage Aficionado
 
Join Date: Jan 2006
Location: Maine
Posts: 499
Have you tried recording the HDHR stream as a transport stream instead of a program stream? I seem to remember this caused less errors in the recording for several users.
Reply With Quote
  #26  
Old 05-01-2020, 02:50 PM
wnjj wnjj is offline
Sage Icon
 
Join Date: Jan 2009
Posts: 1,514
An update on this:

I was able to reproduce the crash with files provided by AlbuQuirky. After many iterations, debug logs and print statements I uncovered the problem. There is an issue in the MpegDeMux.ax filter code when it stores the MPEG2 header info into the DirectShow data structures. The header storage is defined as an array of DWORD (4 bytes long), but was being allocated and loaded with a quantity of data that is not module 4. Then when the downstream filter read that header it would access memory outside the structure.

I found at least one example online where the header was padded to make it modulo 4 which is a simple solution. I’ll submit a pull request when I get some time but in the meantime if anyone else is crashing upon MPEG2 playback on a Windows client I can share the patched filter.

The odd thing is this code was built that way before going open source. I suspect that VS2015 compiles it a bit different which is why it never surfaced on V7 and earlier. It’s funny that it hasn’t been observed on V9 until now but it also takes a certain compression style so may not be prevalent for most OTA streams.
Reply With Quote
  #27  
Old 05-01-2020, 04:45 PM
trk2 trk2 is offline
Sage Aficionado
 
Join Date: Jan 2006
Location: Maine
Posts: 499
That's interesting. Well done.
Reply With Quote
  #28  
Old 05-01-2020, 10:25 PM
wnjj wnjj is offline
Sage Icon
 
Join Date: Jan 2009
Posts: 1,514
Pull request created: https://github.com/google/sagetv/pull/436
Reply With Quote
  #29  
Old 05-06-2020, 11:00 AM
AlbuQuirky AlbuQuirky is offline
Sage User
 
Join Date: Feb 2011
Location: Albuquerque, NM
Posts: 13
Quote:
Originally Posted by wnjj View Post
I am using wnjj's hack/patch for now and looking forward to the formal resolution.
Many thanks to wnjj and all who have contributed to this finding. Professional, indeed.
If there is any other way that I might assist, please feel free to contact me.
Reply With Quote
  #30  
Old 05-06-2020, 02:15 PM
sacrament055 sacrament055 is offline
Sage Aficionado
 
Join Date: Jul 2007
Posts: 474
Any idea if the changes needed for the format detector mentioned in this thread
https://forums.sagetv.com/forums/showthread.php?t=66352

are also included in this? Hoping to be able to install this fix and keep the updates that came from the format detector.

Is this going to be as easy as replacing a couple files or will it require an updated install of SageTV?

Thanks for your efforts here, greatly appreciated.
Reply With Quote
  #31  
Old 05-06-2020, 02:34 PM
wnjj wnjj is offline
Sage Icon
 
Join Date: Jan 2009
Posts: 1,514
Quote:
Originally Posted by sacrament055 View Post
Any idea if the changes needed for the format detector mentioned in this thread
https://forums.sagetv.com/forums/showthread.php?t=66352

are also included in this? Hoping to be able to install this fix and keep the updates that came from the format detector.

Is this going to be as easy as replacing a couple files or will it require an updated install of SageTV?

Thanks for your efforts here, greatly appreciated.
The changes for the format detector are in Java meaning sage.jar. They are also checked in to the code repository so will get built into the next installer release, whenever that is.

In the meantime, installing a sage.jar per jvl711's instructions (https://github.com/jvl711/MediaForma...ster/README.md) would be equivalent.
Reply With Quote
  #32  
Old 05-06-2020, 02:44 PM
wnjj wnjj is offline
Sage Icon
 
Join Date: Jan 2009
Posts: 1,514
Attached are the patched MpegDeMux.ax filters for 32 and 64 bit. Shut down SageTV, backup the previous version and copy into the SageTV/Common folder.
Attached Files
File Type: zip MpegDeMux_32.zip (167.9 KB, 130 views)
File Type: zip MpegDeMux_64.zip (192.7 KB, 114 views)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux 64bit MiniClient (issues with JTux on 64bit) stuckless SageTV Github Development 23 08-19-2015 12:54 PM
Hauppauge 2250 no channels in Win7 64bit dvd_maniac Hardware Support 2 03-28-2010 09:34 AM
H.264 Playback Crashes on ClientPC Brent SageTV Beta Test Software 2 11-22-2008 02:44 PM
Server crashes after adding channels to A180 harrijay SageTV Linux 0 12-17-2007 08:59 AM


All times are GMT -6. The time now is 03:12 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.