Author Topic: Crash Report Why?  (Read 6712 times)

Offline dkulp

  • Supporting Member
  • Hero Member
  • *
  • Posts: 812
    • View Profile
Re: Crash Report Why?
« Reply #15 on: October 13, 2015, 09:07:45 PM »
Well, there was a math error such that if numChannels * numFrames was greater than 2G, it would try and allocate a negative size, even on the 64bit Mac.  Thus, 2GB is the max.   I just fixed that and it should be just under 3GB on Windows and "a lot" on the Mac.  (I tested with a resulting 5GB data array and it worked, although a bit slow)

Daniel Kulp
Framingham, MA

Offline Charles Belcher

  • Full Member
  • ***
  • Posts: 164
    • View Profile
Re: Crash Report Why?
« Reply #16 on: October 14, 2015, 10:35:14 AM »
Well, there was a math error such that if numChannels * numFrames was greater than 2G, it would try and allocate a negative size, even on the 64bit Mac.  Thus, 2GB is the max.   I just fixed that and it should be just under 3GB on Windows and "a lot" on the Mac.  (I tested with a resulting 5GB data array and it worked, although a bit slow)

Dan,

This is good news.  Can you itemize the steps I need to take to move all of my music files, layout, views, etc and sequence content from the Windows version to the Mac version.  You can email me if that is better.
charlesb@onstagesystems.com

Thank you,

Charles
2014 Finalist The Great Christmas Light Fight
2018 All Star The Great Christmas Light Fight

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Crash Report Why?
« Reply #17 on: October 14, 2015, 10:43:26 AM »
It's not gonna hurt to just copy the whole show directory and then try it.  I don't know if the path for the music file might not work but you should be able to just reselect it in settings.

Offline Charles Belcher

  • Full Member
  • ***
  • Posts: 164
    • View Profile
Re: Crash Report Why?
« Reply #18 on: December 16, 2015, 10:17:12 AM »
It probably has nothing to do with the size of the audio file.  It's probably the length of the sequence.  If you have a sequence with 50ms timing for 30 minutes that's 20fps*60sec*30min=36000 frames.  Then you have 141 universes so we have to create a sequence object that's 141univ*512chan*36000frames=2,598,912,000.  So that's 2.5 billion cells.  Now I don't know exactly how many internal bytes we would allocate for all the music cells plus the sequence data object and other things but I bet you're pushing some limits.  Did you monitor your resource usage as it was trying to open the sequence?

Gil,


The test results say to me that it is a frame rate issue.  At 20fps, I can create a sequence with a larger file but shorter time duration; while at 10fps,
the file size, or duration does not matter.

I do have one 5 second fade out at time marker 19 minutes where I could actually split the movie and soundtrack if I have to. If I do that; then using the Pi2/FPP for playback, will it be able to execute the end of the first file and start the 2nd file in that 5 second window of time?  and stay synced up?

OR

If I put the entire 30 minute file in place with a 10fps, would the timings that I already programmed be executed as programmed or be truncated somehow?

I just watched the resource monitor.  On the graph, CPU #2 pegged out during the creation attempt and CPU#1 was pretty low.
The usage log shows xlights in red and "not responding".


Charles

Just a follow up on file sizes and some thank you's:

Regarding my Christmas project where I video mapped my house:

I ended up making a 20 minute movie and sequence, and a 10 minute intermission movie and sequence for a show that plays 30 minutes on the hour and half hour.  These files all play perfectly.  The audio comes from the MP4 and not a separate MP3 file.  They are:

Main movie is a mp4 1024x768=111MB
The associated fseq file is 1.41 GB (131 universes including P10 panels)
Intermission video movie is a mp4 1024x768=17MB
The associated fseq file is 788 MB

All is well with playback and has been from day one.  Thanks to Jon, Gerry, Gil and Jim for major guidance.  Thanks to everyone else who replied to my questions.

Charles Belcher
2014 Finalist The Great Christmas Light Fight
2018 All Star The Great Christmas Light Fight

algerdes

  • Guest
Re: Crash Report Why?
« Reply #19 on: December 16, 2015, 11:32:55 AM »
Well, there was a math error such that if numChannels * numFrames was greater than 2G, it would try and allocate a negative size, even on the 64bit Mac.  Thus, 2GB is the max.   I just fixed that and it should be just under 3GB on Windows and "a lot" on the Mac.  (I tested with a resulting 5GB data array and it worked, although a bit slow)

Would that "a lot" translate to a Windows machine if the Windows version made it to 64 bit? 
Theoretical that "lot" would be: 2^64 bytes (16 exabytes) of physical RAM.  Now that is one heck of a light show!!!