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

Using Streams, IOs and Fibers cause an exception to occur #339

Closed
calvinlfer opened this issue May 8, 2024 · 1 comment · Fixed by #348
Closed

Using Streams, IOs and Fibers cause an exception to occur #339

calvinlfer opened this issue May 8, 2024 · 1 comment · Fixed by #348
Labels
bug Something isn't working

Comments

@calvinlfer
Copy link
Contributor

Hello!
First I want to thank you for all the help you provided me in trying to create a Virgil interpreter for Kyo. It was really helpful, insightful and interesting to see Kyo first hand in action. I ended up running into a problem when Streams were involved in order to fetch data from Cassandra which also involved using Fibers underneath the hood. This was the stacktrace that I got:

Exception in thread "main" kyo.package$bug$KyoBugException: Unexpected effect 'Streams[=_$Output]' found while handling '{IOs & fibersInternal::FiberGets}'. Please file a ticket.
       at kyo.package$bug$KyoBugException$.apply(package.scala:70)
       at kyo.package$bug$.apply(package.scala:94)
       at kyo.scheduler.IOTask$$anon$2.apply(IOTask.scala:21)
       at kyo.scheduler.IOTask$$anon$2.apply(IOTask.scala:72)
       at kyo.scheduler.IOTask.eval(IOTask.scala:46)
       at kyo.scheduler.IOTask.run(IOTask.scala:83)
       at kyo.scheduler.Worker.runTask(Worker.scala:134)
       at kyo.scheduler.Worker.run(Worker.scala:112)
       at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
       at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
       at java.base/java.lang.Thread.run(Thread.java:1570)

I have pushed all the code here: https://github.com/calvinlfer/virgil-kyo-experiment/blob/main/src/main/scala/io/kaizensolutions/virgil/CassandraPlay.scala

I am currently working on trying to get a small reproducer without needing to bring up Cassandra.

@calvinlfer calvinlfer changed the title Bug: Using Streams, IOs and Fibers cause an exception to occur Using Streams, IOs and Fibers cause an exce May 8, 2024
@calvinlfer calvinlfer changed the title Using Streams, IOs and Fibers cause an exce Using Streams, IOs and Fibers cause an exception to occur May 8, 2024
@fwbrasil fwbrasil added the bug Something isn't working label May 9, 2024
@calvinlfer
Copy link
Contributor Author

Fix confirmed ✅

Close as soon as #348 is merged

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants