Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
BVatBBOD
Visitor

Static Analysis Error: Package size exceeds 4 megabytes

When I upload a package and run static analysis on it I am getting this error:

Static Analysis Results
1 ERROR
  • Package size exceeds 4 megabytes

    The .zip is 3,242,560 bytes and the .pkg file is 3,245,536 bytes.  That is 3.2 megabyte, so what's the deal?

    Thanks,
    Blake
  • Join the Roku Developers Slack Workspace for quicker help and great dev collaboration: http://tiny.cc/nrdf0y
    0 Kudos
    9 REPLIES 9
    kartigas
    Newbie

    Re: Static Analysis Error: Package size exceeds 4 megabytes

    I have the same behavior
    0 Kudos
    marcelo_cabral
    Roku Guru

    Re: Static Analysis Error: Package size exceeds 4 megabytes

    A tip, try to reduce your images using a service like:
    https://tinypng.com/

    I does impressive work on PNG files (normally the villains on channel size)
    0 Kudos
    BVatBBOD
    Visitor

    Re: Static Analysis Error: Package size exceeds 4 megabytes

    "marcelo.cabral" wrote:
    A tip, try to reduce your images using a service like:
    https://tinypng.com/

    I does impressive work on PNG files (normally the villains on channel size)

    The issue is not image sizes or lack of image compression. The issue is that we are well under the 4MB limit and are still getting this error.
    Join the Roku Developers Slack Workspace for quicker help and great dev collaboration: http://tiny.cc/nrdf0y
    0 Kudos
    ioan
    Roku Guru

    Re: Static Analysis Error: Package size exceeds 4 megabytes

    "BVatBBOD" wrote:
    "marcelo.cabral" wrote:
    A tip, try to reduce your images using a service like:
    https://tinypng.com/

    I does impressive work on PNG files (normally the villains on channel size)

    The issue is not image sizes or lack of image compression. The issue is that we are well under the 4MB limit and are still getting this error.

    Maybe roku reports the size of the package unzipped? What's the size of all your source files, images, etc?
    https://github.com/e1ioan/
    http://rokucam.com
    0 Kudos
    kevintwister
    Channel Surfer

    Re: Static Analysis Error: Package size exceeds 4 megabytes

    We're getting this now also. Ironically, we've reduced the size of our packet from previously released versions considerably. I don't think we could reduce it more without really destroying the quality of the channel.

    Hopefully, this won't cause an issue of them publishing our updates.
    0 Kudos
    BVatBBOD
    Visitor

    Re: Static Analysis Error: Package size exceeds 4 megabytes

    Can confirm that it does not currently block submission. No idea if/when that will change.
    Join the Roku Developers Slack Workspace for quicker help and great dev collaboration: http://tiny.cc/nrdf0y
    0 Kudos
    kevintwister
    Channel Surfer

    Re: Static Analysis Error: Package size exceeds 4 megabytes

    "BVatBBOD" wrote:
    Can confirm that it does not currently block submission. No idea if/when that will change.

    That's good information to know :). Thanks!
    0 Kudos
    squirreltown
    Roku Guru

    Re: Static Analysis Error: Package size exceeds 4 megabytes

    I don't use Static Analysis, but in my experience, anything over some number - around 3 mb - will cause the web portal to say there was an error, although there actually was not. If you go back to my channels and select the channel, the new pkg will be there, ready to hit submit.
    Kinetics Screensavers
    0 Kudos
    destruk
    Streaming Star

    Re: Static Analysis Error: Package size exceeds 4 megabytes

    In my experience, I'd delete the zip and make a new one, making sure any hidden files are removed before uploading.  (Thumbs.DB I'm looking at you!)
    0 Kudos
    Need Assistance?
    Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

    Become a Roku Streaming Expert!

    Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.