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

engine: Nil pointer panic in TestGetHistoricCandles #1776

Open
gloriousCode opened this issue Jan 15, 2025 · 0 comments
Open

engine: Nil pointer panic in TestGetHistoricCandles #1776

gloriousCode opened this issue Jan 15, 2025 · 0 comments
Labels
bug low priority This enhancement or update will be implemented at a later date.

Comments

@gloriousCode
Copy link
Collaborator

New Issue

Context

2025-01-14T08:42:31.2617163Z --- FAIL: TestGetHistoricCandles (1.43s)
2025-01-14T08:42:31.2617846Z     rpcserver_test.go:916: cannot process trades in range 2019-11-30 01:00:00 +0000 UTC-2019-11-30 03:00:00 +0000 UTC as database is not connected
2025-01-14T08:42:31.2618001Z Database manager shutdown.
2025-01-14T08:42:31.2618143Z Database manager shutdown.
2025-01-14T08:42:31.2618536Z panic: runtime error: invalid memory address or nil pointer dereference [recovered]
2025-01-14T08:42:31.2618828Z 	panic: runtime error: invalid memory address or nil pointer dereference
2025-01-14T08:42:31.2619170Z [signal SIGSEGV: segmentation violation code=0x1 addr=0x78 pc=0x12f4404]
2025-01-14T08:42:31.2619181Z 
2025-01-14T08:42:31.2619320Z goroutine 522 [running]:
2025-01-14T08:42:31.2619523Z testing.tRunner.func1.2({0x1600f80, 0x2552710})
2025-01-14T08:42:31.2619715Z 	/usr/local/go/src/testing/testing.go:1632 +0x1bc
2025-01-14T08:42:31.2619858Z testing.tRunner.func1()
2025-01-14T08:42:31.2620056Z 	/usr/local/go/src/testing/testing.go:1635 +0x334
2025-01-14T08:42:31.2620193Z panic({0x1600f80?, 0x2552710?})
2025-01-14T08:42:31.2620384Z 	/usr/local/go/src/runtime/panic.go:785 +0x124
2025-01-14T08:42:31.2621023Z github.com/thrasher-corp/gocryptotrader/engine.TestGetHistoricCandles(0x40006d0000)
2025-01-14T08:42:31.2621198Z 	/app/engine/rpcserver_test.go:918 +0x1274
2025-01-14T08:42:31.2621360Z testing.tRunner(0x40006d0000, 0x1949378)
2025-01-14T08:42:31.2621541Z 	/usr/local/go/src/testing/testing.go:1690 +0xe4
2025-01-14T08:42:31.2621714Z created by testing.(*T).Run in goroutine 1
2025-01-14T08:42:31.2621900Z 	/usr/local/go/src/testing/testing.go:1743 +0x314

via this or this

Expected Behavior

No panic

Current Behavior

Is panic

Steps to Reproduce

None yet, just highlighting the error which will hopefully reveal the bad assumption in the test

@gloriousCode gloriousCode added bug low priority This enhancement or update will be implemented at a later date. labels Jan 15, 2025
@gloriousCode gloriousCode changed the title Nil pointer panic in test engine.TestGetHistoricCandles engine: Nil pointer panic in TestGetHistoricCandles Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug low priority This enhancement or update will be implemented at a later date.
Projects
None yet
Development

No branches or pull requests

1 participant