question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] Malformed marker payload when marker name is a number

See original GitHub issue

Tell us about your environment

  • Browser and Browser Version: Chrome 100.0.4896.127 on Windows 11
  • After Effects Version: Don’t know. Can investigate if needed.

What did you do? Please explain the steps you took before you encountered the problem.

  1. Obtain a JSON animation file containing some composition markers, each with a duration, which are named as numbers: 1, 2, 3
  2. Integrate lottie-web in vanilla JS page and programmatically load animation into animatedItem. Autoplay is false, loop is false.
  3. Upon some user event, programmatically play a specific marker segment through animatedItem.goToAndPlay('1'). At this point, also set loop to true

What did you expect to happen? Requested marker segment should play in loop

What actually happened? Please include as much relevant detail as possible. The whole animation plays in loop.

Please provide a download link to the After Effects file that demonstrates the problem. https://gist.github.com/BrainCrumbz/ce3b2cda9133c3f97d27e79ec2641391#file-marker_20220426_001_numbers_only-json

In case it might help, we’ll share here below some details of our investigation.
TA

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
bodymovincommented, Apr 30, 2022

Hey thanks for the detailed info. I’ve been looking into it and this indeed fixes markers configuration. I think that it can also be solved by checking isNaN(_markers[i].cm)
If it is false, set the payload manually.
But the goToAndPlay and goToAndStop methods need an update as well since they are assuming that anything that can be cast as a Number is a frame and not a marker.
I can work on fixing it, but let me know if you want to address both issues together.

0reactions
BrainCrumbzcommented, May 5, 2022

What marker name values do you think should be used as test cases? Will try to list some here:

"cm":"123",
"cm":"abc",
"cm":"abc\r\n",
"cm":"name: abc\r\ndescription: def",
"cm":"name: 123\r\ndescription: def",
"cm":"{\r\n  \"name\":\"abc\",\r\n  \"description\": \"def\"\r\n}",
"cm":"{\r\n  \"name\":\"123\",\r\n  \"description\": \"def\"\r\n}",

Are there more?

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Wireshark-bugs] [Bug 8266] post-dissector fields not saved in ...
These packets have no payload (normal for the protocol in question) and are throwing a 'Malformed Packet' exception.
Read more >
gson throws MalformedJsonException - java - Stack Overflow
GSON throws that particular error when there's extra characters after the end of the object that aren't whitespace, and it defines ...
Read more >
Server responds with empty packet during session negotiation ...
Server acknowledges, then sends a response, which is essentially empty… Packet Length: 1 Packet Number: 2 EOF marker: 254. And that immediately causes...
Read more >
MySQL Bugs: #93895: Prepared statements (server) return no ...
ODBC_BINDPARAM_T ; typedef struct _ODBC_USER_T { char Name ... MySQL Protocol Packet Length: 7 Packet Number: 7 EOF marker: 254 Warnings: 0 ...
Read more >
Error Responses - Amazon Simple Storage Service
Error Code Description HTTP Status Code AccessControlListNotSupported The bucket does not allow ACLs. 400 Bad Request AccessDenied Access Denied 403 Forbidden BucketAlreadyOwnedByYou 409 Conflict (in all...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found