np from getPositionOnTopOf can be null and causes crash
See original GitHub issueThis section of monitorMovement
can result in np
being null, even after the ‘if null’ check and assignment on line 216.
It seems to be fixed by moving the use of np
further down to here:
presumably because the instances where np is null is only true for the digging or placement sections (I think specifically the issue is with air blocks). Happy to put in a PR but want to check I’m on the right lines before I make any changes
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Why does Python crash when I try to sum this numpy array?
I can reproduce your segfault using numpy v1.8.2/PIL v1.1.7 installed from the Ubuntu repositories. If I install numpy 1.8.2 in a virtualenv ...
Read more >clipping complex array crashes python · Issue #5354 - GitHub
import numpy as np >>> from numpy.fft import fft2 >>> size = 256 ... I have tried to remove the segmentation fault due...
Read more >IS NULL error in Model Builder causes software crash
Hi folks, I'm using modelbuilder in ArcMap 10.3.1. I'm building a simple model to assign the neighborhood where a point is located.
Read more >Null Dereference - OWASP Foundation
Null-pointer dereferences, while common, can generally be found and corrected in a simple way. They will always result in the crash of the...
Read more >7 ways to null crash Android Kotlin without using - Medium
However, listed below are 7 possible ways that will crash your due to null (or something of that nature ) without using !!...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Should be solved in 1.0.9
Great, thanks. Have you tested that fix when you’re the opposite side of a river from the bot, so it has to swim to you? I applied that fix locally but was still getting it occasionally crashing and it seemed like swimming was the link between them. I’ll try and repro tomorrow if you’re not seeing it.
Edit: definitely still happens on some occasions. It’s when the bot is swimming or just about to swim I think.