Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prepend causing assertion failed #3125

Closed
Russsgithub opened this issue Jun 3, 2023 · 2 comments
Closed

prepend causing assertion failed #3125

Russsgithub opened this issue Jun 3, 2023 · 2 comments

Comments

@Russsgithub
Copy link

Describe the bug
If prepend is present on a source the script fails with this error

2023/06/03 09:39:11 [clock.main:2] Source dummy failed while streaming: File "src/core/source.ml", line 711, characters 17-23: Assertion failed!
2023/06/03 09:39:11 [clock.main:2] Raised at Source.operator#has_ticked in file "src/core/source.ml", line 711, characters 17-29
2023/06/03 09:39:11 [clock.main:2] Called from Source.operator#get in file "src/core/source.ml", line 722, characters 6-21
2023/06/03 09:39:11 [clock.main:2] Called from Prepend.prepend#get_frame in file "src/core/operators/prepend.ml", line 87, characters 12-27
2023/06/03 09:39:11 [clock.main:2] Called from Source.operator#instrumented_get_frame in file "src/core/source.ml", line 641, characters 6-24
2023/06/03 09:39:11 [clock.main:2] Called from Source.operator#get in file "src/core/source.ml", line 748, characters 10-41
2023/06/03 09:39:11 [clock.main:2] Called from Output.output#output in file "src/core/outputs/output.ml", line 165, characters 10-30
2023/06/03 09:39:11 [clock.main:2] Called from Clock.MkClock.clock#end_tick.(fun) in file "src/core/clock.ml", line 312, characters 16-24

To Reproduce

s = sine(440.)
s = prepend(merge=true, s, fun(_) -> blank(duration=3.))

output.dummy(s)

Version details

  • OS: [e.g. Debian, OSX] - Ubuntu 20.04
  • Version [e.g. 1.3.4] - 2.2.0 ( latest github code )

Install method
opam

@toots toots closed this as completed in f3df74f Jun 3, 2023
@toots
Copy link
Member

toots commented Jun 3, 2023

Thanks for reporting! Exact same bug you reported with append. Should be fixed now, much appreciated!

@Russsgithub
Copy link
Author

Russsgithub commented Jun 3, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants