Author Topic: Error Loading Userpatterns.xml from project  (Read 2842 times)

Offline Voltorb

  • Sr. Member
  • ****
  • Posts: 136
Error Loading Userpatterns.xml from project
« on: November 26, 2012, »
I get this error when starting LSP after replacing the Userpatterns.xml file from the Nutcracker project.  Any ideas?
It's not the fast pace of life that bothers me....
....It's the sudden stop at the end!

Offline smeighan

  • Moderator
  • Sr. Member
  • *****
  • Posts: 2285
    • Nutcracker RGB Sequence Builder
Re: Error Loading Userpatterns.xml from project
« Reply #1 on: November 26, 2012, »
what target and effect name? i ll  take a look
Sean
Littleton, CO
Latest releases You are not allowed to view links. Register or Login
xLights/Nutcracker Forum You are not allowed to view links. Register or Login
Fbook You are not allowed to view links. Register or Login

Offline Voltorb

  • Sr. Member
  • ****
  • Posts: 136
Re: Error Loading Userpatterns.xml from project
« Reply #2 on: November 27, 2012, »
I used a local install.  Even tried a clean install.  I've attached an export.  It's the only project there.  While you're looking, I was getting errors on the twinkle1 effect during creation of the project file, so I removed it from the project.  Thanks Sean!
« Last Edit: November 27, 2012, by Voltorb »
It's not the fast pace of life that bothers me....
....It's the sudden stop at the end!

Offline smeighan

  • Moderator
  • Sr. Member
  • *****
  • Posts: 2285
    • Nutcracker RGB Sequence Builder
Re: Error Loading Userpatterns.xml from project
« Reply #3 on: November 27, 2012, »
You are not allowed to view links. Register or Login
I used a local install.  Even tried a clean install.  I've attached an export.  It's the only project there.  While you're looking, I was getting errors on the twinkle1 effect during creation of the project file, so I removed it from the project.  Thanks Sean!

We have not yet written a program to import projects in.

In order for us to debug your project to lsp UserPatterns.php, you are going to need to get the project , abd its effects, enyered into meighan.net

I fixed the error with the twinkle effect in projects. You will need a new github zip file. This only requires doing step #5 to update the code. You do not need to run step #7 (install.php)



Sean
Littleton, CO
Latest releases You are not allowed to view links. Register or Login
xLights/Nutcracker Forum You are not allowed to view links. Register or Login
Fbook You are not allowed to view links. Register or Login

Offline Voltorb

  • Sr. Member
  • ****
  • Posts: 136
Re: Error Loading Userpatterns.xml from project
« Reply #4 on: November 27, 2012, »
I got server errors:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, your webmaster and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
--------------------------------------------------------------------------------
Apache/2.2.22 (Ubuntu) Server at You are not allowed to view links. Register or Login Port 80

when trying to create most effects on your server, but they are in the db, and thumbnails look correct, and it let me attach them to the project.

Thanks for looking into this for me!
It's not the fast pace of life that bothers me....
....It's the sudden stop at the end!

Offline Voltorb

  • Sr. Member
  • ****
  • Posts: 136
Re: Error Loading Userpatterns.xml from project
« Reply #5 on: November 27, 2012, »
Sean, I'm sorry if I caused you pain in researching this, but I just watched the Nov 15 chat, and heard that LSP doesn't like Userpatterns.xml over a gig.  The userpatterns file generated is 1.6 gig.  Would you consider only outputting the portion of a project song that has effects if the output type is LSP?  I tried just populating the first 10 phrases of a 21 phrase song, but the XML is the same size.
It's not the fast pace of life that bothers me....
....It's the sudden stop at the end!

Offline kgustafson

  • Coop Manager
  • Sr. Member
  • *
  • Posts: 1120
    • Lost Weekend Productions
Re: Error Loading Userpatterns.xml from project
« Reply #6 on: November 27, 2012, »
Voltorb,

I am working on something that breaks out the UserPattern.xml file into chunks (1 minute chunks to be precise).  I am running into challenges due to phrasing and the like.  For example, if you have an effect that is running over a minute, do I a) cut the effect into a 1 minute effect and run whatever is left over in the second UserPattern? or b) have the effect run for as long as it is and just deal with potential that UserPattern could get really big or c) get rid of merged effects if they are adjacent. 

Here is what I am leaning towards:  Have the system create the master Nutcracker file as it does right now (this will merge effects, etc and create one big file that has all effects and spaces).  From this file, I will go and chunk it by 1 minute intervals (via looking at the frame rate and figuring out how many frames are used per minute) and just chunking from the master nutcracker file.  This means I have can have effects cut in the middle of their effect and it continue on the next userpattern.xml file.

Here is an ASCII rep of what I am thinking of:

Incoming phrases:

Phrase 1 Effect 1 (30 secs)
Phrase 2 Effect 2 (35 secs)
Phrase 3 Effect 2 (25 secs)
Phrase 4 Effect 3 (25 secs)
Phrase 5 Effect 4 (40 secs)
Phrase 6 No Effect (30 secs)
Phrase 7 Effect 5 (20 secs)

Master NC file:

Phrase 1 Effect 1 (30 secs)
Phrase 2 Effect 2 (60 secs)
Phrase 4 Effect 3 (25 secs)
Phrase 5 Effect 4 (40 secs)
Phrase 6 No Effect (30 secs)
Phrase 7 Effect 5 (20 secs)

Result files:
UserPattern1
Phrase 1 Effect 1 (30 secs)
Phrase 2 Effect 2 (first 30 secs)

UserPattern2
Phrase2 Effect 2 (last 30 secs)
Phrase4 Effect 3 (25 secs)
Phrase5 Effect 4 (first 5 secs)

UserPattern3
Phrase 5 Effect 4 (last 35 secs)
Phrase 6 No Effect (first 25 secs)

UserPattern4
Phrase 6 No Effect (last 5 secs)
Phrase 7 Effect 5 (20 secs)

Does this make sense?
------
Visit at: You are not allowed to view links. Register or Login

Offline Voltorb

  • Sr. Member
  • ****
  • Posts: 136
Re: Error Loading Userpatterns.xml from project
« Reply #7 on: November 28, 2012, »
That would be FANTASTIC!
It's not the fast pace of life that bothers me....
....It's the sudden stop at the end!

Offline kgustafson

  • Coop Manager
  • Sr. Member
  • *
  • Posts: 1120
    • Lost Weekend Productions
Re: Error Loading Userpatterns.xml from project
« Reply #8 on: November 30, 2012, »
Okay, I have just posted to Github.  The code has NOT been thoroughly tested so I expect some possible bugs.  I am not a major LSP user so it is hard for me to test it out.  Sean will let you all know when it is available on meighan.net.

Kurt
------
Visit at: You are not allowed to view links. Register or Login

Offline Voltorb

  • Sr. Member
  • ****
  • Posts: 136
Re: Error Loading Userpatterns.xml from project
« Reply #9 on: November 30, 2012, »
Wow, thank you!  I'll apply it to my local install, and let you know.  Have a GREAT day!
It's not the fast pace of life that bothers me....
....It's the sudden stop at the end!

Offline smeighan

  • Moderator
  • Sr. Member
  • *****
  • Posts: 2285
    • Nutcracker RGB Sequence Builder
Re: Error Loading Userpatterns.xml from project
« Reply #10 on: November 30, 2012, »
Code changes to nutcracker/projects
gen_lsp.php
project_filer.php


Code is released to meighan.net and checked in to github.

With this release LSP UserPatterns.xml files will be broken into chunks so that we no longer have files that are 1.6gbytes in size.

Here is Kurt's explanation of the code change

"I am working on something that breaks out the UserPattern.xml file into chunks (1 minute chunks to be precise).  I am running into challenges due to phrasing and the like.  For example, if you have an effect that is running over a minute, do I a) cut the effect into a 1 minute effect and run whatever is left over in the second UserPattern? or b) have the effect run for as long as it is and just deal with potential that UserPattern could get really big or c) get rid of merged effects if they are adjacent. 

Here is what I am leaning towards:  Have the system create the master Nutcracker file as it does right now (this will merge effects, etc and create one big file that has all effects and spaces).  From this file, I will go and chunk it by 1 minute intervals (via looking at the frame rate and figuring out how many frames are used per minute) and just chunking from the master nutcracker file.  This means I have can have effects cut in the middle of their effect and it continue on the next userpattern.xml file.

Here is an ASCII rep of what I am thinking of:

Incoming phrases:

Phrase 1 Effect 1 (30 secs)
Phrase 2 Effect 2 (35 secs)
Phrase 3 Effect 2 (25 secs)
Phrase 4 Effect 3 (25 secs)
Phrase 5 Effect 4 (40 secs)
Phrase 6 No Effect (30 secs)
Phrase 7 Effect 5 (20 secs)

Master NC file:

Phrase 1 Effect 1 (30 secs)
Phrase 2 Effect 2 (60 secs)
Phrase 4 Effect 3 (25 secs)
Phrase 5 Effect 4 (40 secs)
Phrase 6 No Effect (30 secs)
Phrase 7 Effect 5 (20 secs)

Result files:
UserPattern1
Phrase 1 Effect 1 (30 secs)
Phrase 2 Effect 2 (first 30 secs)

UserPattern2
Phrase2 Effect 2 (last 30 secs)
Phrase4 Effect 3 (25 secs)
Phrase5 Effect 4 (first 5 secs)

UserPattern3
Phrase 5 Effect 4 (last 35 secs)
Phrase 6 No Effect (first 25 secs)

UserPattern4
Phrase 6 No Effect (last 5 secs)
Phrase 7 Effect 5 (20 secs)"

LSP users, this only happens if you are using Projects to generate your LSP output.

thanks

Kurt, Sean
Sean
Littleton, CO
Latest releases You are not allowed to view links. Register or Login
xLights/Nutcracker Forum You are not allowed to view links. Register or Login
Fbook You are not allowed to view links. Register or Login

Offline kgustafson

  • Coop Manager
  • Sr. Member
  • *
  • Posts: 1120
    • Lost Weekend Productions
Re: Error Loading Userpatterns.xml from project
« Reply #11 on: November 30, 2012, »
Side note:  This code has been minimally tested.  If you encounter an issue or bug, please let me know ASAP.  I will continue to test this code to the best of my ability (however I am not a LSP super user like some of you are, so I really need some of you hard-core LSP users to test.)

Thanks,

Kurt
------
Visit at: You are not allowed to view links. Register or Login

Offline Voltorb

  • Sr. Member
  • ****
  • Posts: 136
Re: Error Loading Userpatterns.xml from project
« Reply #12 on: December 01, 2012, »
I'm not sure if anyone else has tested the new code for LSP, but here is what I'm seeing:
I have a project (The only project on Meighan.net) user: Voltorb, Target: MT30.  I'm running a local install.
The program successfully creates 4 files for the project, but there is nothing visible in 2 - 4, and only the first effect of the project is making it to the pattern for the first file.  Ideas?
It's not the fast pace of life that bothers me....
....It's the sudden stop at the end!

Offline kgustafson

  • Coop Manager
  • Sr. Member
  • *
  • Posts: 1120
    • Lost Weekend Productions
Re: Error Loading Userpatterns.xml from project
« Reply #13 on: December 01, 2012, »
Not sure Voltorb,

I will check it out.

Kurt
------
Visit at: You are not allowed to view links. Register or Login

Offline kgustafson

  • Coop Manager
  • Sr. Member
  • *
  • Posts: 1120
    • Lost Weekend Productions
Re: Error Loading Userpatterns.xml from project
« Reply #14 on: December 03, 2012, »
Voltorb,

I haven't had time to look into this (due to getting my show up this weekend--I had come very close to canceling the show this year so I could concentrate on NC, but the spouse put her foot down...) and I hate to leave you hanging with an error.  I will work on this over the week and will (hopefully) figure out what is going wrong.

Kurt
------
Visit at: You are not allowed to view links. Register or Login