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

NoMethodError: undefined method `zero?' for nil:NilClass #14

Open
ioquatix opened this issue Aug 30, 2022 · 0 comments
Open

NoMethodError: undefined method `zero?' for nil:NilClass #14

ioquatix opened this issue Aug 30, 2022 · 0 comments

Comments

@ioquatix
Copy link
Member

Thanks for the update! I pulled in 0.3.12 and ran into an issue with the new code:

NoMethodError:
undefined method `zero?' for nil:NilClass

				if usage.zero?
				        ^^^^^^
				        
File /usr/local/bundle/gems/async-pool-0.3.12/lib/async/pool/controller.rb line 213 in reuse
File /usr/local/bundle/gems/async-pool-0.3.12/lib/async/pool/controller.rb line 99 in release
File /usr/local/bundle/gems/neo4j-ruby-driver-4.4.0.alpha.8/ruby/neo4j/driver/internal/handlers/channel_releasing_reset_response_handler.rb line 24 in reset_completed
File /usr/local/bundle/gems/neo4j-ruby-driver-4.4.0.alpha.8/ruby/neo4j/driver/internal/handlers/reset_response_handler.rb line 13 in on_success
File /usr/local/bundle/gems/neo4j-ruby-driver-4.4.0.alpha.8/ruby/neo4j/driver/internal/async/inbound/inbound_message_dispatcher.rb line 39 in handle_success_message
File /usr/local/bundle/gems/neo4j-ruby-driver-4.4.0.alpha.8/ruby/neo4j/driver/internal/messaging/common/common_message_reader.rb line 32 in unpack_success_message
File /usr/local/bundle/gems/neo4j-ruby-driver-4.4.0.alpha.8/ruby/neo4j/driver/internal/messaging/common/common_message_reader.rb line 16 in read
File /usr/local/bundle/gems/neo4j-ruby-driver-4.4.0.alpha.8/ruby/neo4j/driver/internal/async/pool/channel.rb line 53 in ensure_response_handling
File /usr/local/bundle/gems/neo4j-ruby-driver-4.4.0.alpha.8/ruby/neo4j/driver/internal/async/pool/channel.rb line 39 in write_and_flush
File /usr/local/bundle/gems/neo4j-ruby-driver-4.4.0.alpha.8/ruby/neo4j/driver/internal/async/network_connection.rb line 99 in write_reset_message_if_needed
File /usr/local/bundle/gems/neo4j-ruby-driver-4.4.0.alpha.8/ruby/neo4j/driver/internal/async/network_connection.rb line 73 in release
File /usr/local/bundle/gems/neo4j-ruby-driver-4.4.0.alpha.8/ruby/neo4j/driver/internal/async/connection/direct_connection.rb line 7 in release
File /usr/local/bundle/gems/neo4j-ruby-driver-4.4.0.alpha.8/ruby/neo4j/driver/internal/async/unmanaged_transaction.rb line 206 in handle_transaction_completion
File /usr/local/bundle/gems/neo4j-ruby-driver-4.4.0.alpha.8/ruby/neo4j/driver/internal/async/unmanaged_transaction.rb line 98 in block in close_async
File /usr/local/bundle/gems/neo4j-ruby-driver-4.4.0.alpha.8/ruby/neo4j/driver/internal/util/result_holder.rb line 56 in side
File /usr/local/bundle/gems/neo4j-ruby-driver-4.4.0.alpha.8/ruby/neo4j/driver/internal/async/unmanaged_transaction.rb line 98 in close_async
File /usr/local/bundle/gems/neo4j-ruby-driver-4.4.0.alpha.8/ruby/neo4j/driver/internal/async/unmanaged_transaction.rb line 104 in commit_async
File /usr/local/bundle/gems/neo4j-ruby-driver-4.4.0.alpha.8/ruby/neo4j/driver/internal/internal_transaction.rb line 13 in commit
File /usr/local/bundle/gems/neo4j-ruby-driver-4.4.0.alpha.8/lib/neo4j/driver/synchronizable.rb line 16 in block (4 levels) in with_sync_wrapper
File /usr/local/bundle/gems/async-2.0.3/lib/kernel/sync.rb line 36 in Sync
File /usr/local/bundle/gems/neo4j-ruby-driver-4.4.0.alpha.8/lib/neo4j/driver/synchronizable.rb line 16 in block (3 levels) in with_sync_wrapper
File /usr/local/bundle/gems/neo4j-ruby-driver-4.4.0.alpha.8/ruby/neo4j/driver/internal/internal_session.rb line 58 in block in transaction
File /usr/local/bundle/gems/neo4j-ruby-driver-4.4.0.alpha.8/ruby/neo4j/driver/internal/retry/exponential_backoff_retry_logic.rb line 23 in retry
File /usr/local/bundle/gems/neo4j-ruby-driver-4.4.0.alpha.8/ruby/neo4j/driver/internal/internal_session.rb line 55 in transaction
File /usr/local/bundle/gems/neo4j-ruby-driver-4.4.0.alpha.8/lib/neo4j/driver/synchronizable.rb line 16 in block (4 levels) in with_sync_wrapper
File /usr/local/bundle/gems/async-2.0.3/lib/kernel/sync.rb line 36 in Sync
File /usr/local/bundle/gems/neo4j-ruby-driver-4.4.0.alpha.8/lib/neo4j/driver/synchronizable.rb line 16 in block (3 levels) in with_sync_wrapper
File /usr/local/bundle/gems/neo4j-ruby-driver-4.4.0.alpha.8/ruby/neo4j/driver/internal/internal_session.rb line 45 in write_transaction
File /usr/local/bundle/gems/activegraph-11.1.0.alpha.2/lib/active_graph/transactions.rb line 43 in run_transaction_work
File /usr/local/bundle/gems/activegraph-11.1.0.alpha.2/lib/active_graph/transactions.rb line 37 in block in send_transaction
File /usr/local/bundle/gems/neo4j-ruby-driver-4.4.0.alpha.8/lib/neo4j/driver/auto_closable.rb line 19 in block (3 levels) in with_block_definer
File /usr/local/bundle/gems/neo4j-ruby-driver-4.4.0.alpha.8/lib/neo4j/driver/synchronizable.rb line 16 in block (4 levels) in with_sync_wrapper
File /usr/local/bundle/gems/async-2.0.3/lib/async/task.rb line 255 in block in schedule

Originally posted by @danielmconrad in #12 (comment)

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

1 participant