Skip to content

Runtime error set changed size during iteration #26

Description

@katfang

Describe the bug

Got this error while I was just editing my typescript servicer. Hadn't edited the protobufs in a hot second.

Application is serving traffic ...

  Your API is available at the URL http://127.0.0.1:9991

  You can inspect your state at http://127.0.0.1:9991/__/inspect


Application modified; restarting ... 

2025-05-16 10:25:14,633 WARNING game_rbt:2081: Unhandled exception
RuntimeError: Set changed size during iteration
Traceback (most recent call last):
  File "src/python/grpcio/grpc/_cython/_cygrpc/aio/server.pyx.pxi", line 729, in grpc._cython.cygrpc._handle_exceptions
  File "src/python/grpcio/grpc/_cython/_cygrpc/aio/callback_common.pyx.pxi", line 185, in _send_error_status_from_server
  File "src/python/grpcio/grpc/_cython/_cygrpc/aio/callback_common.pyx.pxi", line 99, in execute_batch
grpc._cython.cygrpc.ExecuteBatchError: Failed "execute_batch": (<grpc._cython.cygrpc.SendInitialMetadataOperation object at 0x13b663060>, <grpc._cython.cygrpc.SendStatusFromServerOperation object at 0x148126260>)
Restarting application with name "cheaoss"...

(node:84066) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 exit listeners added to [ChildProcess]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
(Use `node --trace-warnings ...` to show where the warning was created)

Can't ctrl+c out of it. ps aux'd & kill'd process /Users/katfang/reboot/cheaoss/node_modules/@reboot-dev/reboot/.venv/bin/python3 /Users/katfang/reboot/cheaoss/node_modules/@reboot-dev/reboot/.venv/bin/rbt dev run

which resulted in

~/reboot/cheaoss$ 

Saving session...completed.
Deleting expired sessions...none found.

[Process completed]

And now the terminal window doesn't work ...

Actually, scrolling up the logs, I also see this an additional time this morning.

Application is serving traffic ...

  Your API is available at the URL http://127.0.0.1:9991

  You can inspect your state at http://127.0.0.1:9991/__/inspect

2025-05-16 10:24:14,109 INFO contexts:561: Re-running method Game.InitGame to validate effects. See https://docs.reboot.dev/develop/side_effects for more information. Will silence this message for the next 5 minutes.

Application modified; restarting ... 

2025-05-16 10:24:14,807 WARNING game_rbt:2081: Unhandled exception
RuntimeError: Set changed size during iteration
Traceback (most recent call last):
  File "src/python/grpcio/grpc/_cython/_cygrpc/aio/server.pyx.pxi", line 729, in grpc._cython.cygrpc._handle_exceptions
  File "src/python/grpcio/grpc/_cython/_cygrpc/aio/callback_common.pyx.pxi", line 185, in _send_error_status_from_server
  File "src/python/grpcio/grpc/_cython/_cygrpc/aio/callback_common.pyx.pxi", line 99, in execute_batch
grpc._cython.cygrpc.ExecuteBatchError: Failed "execute_batch": (<grpc._cython.cygrpc.SendInitialMetadataOperation object at 0x132c13060>, <grpc._cython.cygrpc.SendStatusFromServerOperation object at 0x132eee9b0>)
Restarting application with name "cheaoss"...

Application stopped serving traffic

Application is serving traffic ...

  Your API is available at the URL http://127.0.0.1:9991

  You can inspect your state at http://127.0.0.1:9991/__/inspect

... to get back to running, opened new terminal window & ran npx rbt dev run and things seem to be fine again.

To Reproduce

Great question... not sure. Just was editing my servicer when it happened.

Packages

        "@reboot-dev/reboot": "^0.25.2",
        "@reboot-dev/reboot-react": "^0.25.2",
        "@reboot-dev/reboot-std": "^0.25.2",

Expected behavior
A clear and concise description of what you expected to happen.

I've seen the application

Impact
How severely does this bug impact your use of Reboot?

  • It's not having any negative impact
  • It's annoying
  • It's a serious problem
  • It makes it impossible for me to use Reboot

Please explain why?

Screenshots
If applicable, add screenshots to help explain your problem.

Client
Please complete the following information:

  • OS: mac

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions