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

Exception in thread EDAutopilot: #4

Open
mrfisse opened this issue Jun 23, 2020 · 5 comments
Open

Exception in thread EDAutopilot: #4

mrfisse opened this issue Jun 23, 2020 · 5 comments

Comments

@mrfisse
Copy link

mrfisse commented Jun 23, 2020

Getting this error while activating the program. Using a fresh python 3.6.0 install.

Exception in thread EDAutopilot:
Traceback (most recent call last):
File "C:\Program Files\Python36\lib\threading.py", line 916, in _bootstrap_inner
self.run()
File "C:\Program Files\Python36\lib\threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "D:\EDAutopilot\dev_autopilot.py", line 1008, in autopilot
align()
File "D:\EDAutopilot\dev_autopilot.py", line 803, in align
off = get_navpoint_offset()
File "D:\EDAutopilot\dev_autopilot.py", line 631, in get_navpoint_offset
filtered = filter_blue(compass_image)
File "D:\EDAutopilot\dev_autopilot.py", line 557, in filter_blue
hsv = cv2.cvtColor(hsv, cv2.COLOR_BGR2HSV)
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'

@TomW1605
Copy link
Owner

can you answer a few questions:

  1. do you have 2 screens?
  2. what is your screens native resolution?
  3. what res are you running at?
  4. is the game full screen (or full screen windowed)?
  5. any other details you can add

could you also send your logs. there should be a file called EDAutopilot.log

@TomW1605
Copy link
Owner

also can you confirm that you are using the master branch and not my development branch?

@mrfisse
Copy link
Author

mrfisse commented Jun 24, 2020

Sure thing !

  1. Nope only one plus my Valve Index but that is not hooked up while using this program.
    2.My native res is 2560x1440.
    3.Tried 1920x1080 and 2560x1440
    4.When i tried this I used set the game to borderless
  2. Only screen related stuff I have is DisplayCal forcing my screen calibration.

Will give you a fresh log when I come home but if I remember correctly the log does not mention the error I see in the console.

@TomW1605
Copy link
Owner

thanks for all that. that all looks normal. i don't think DisplayCal would be messing with resolution but it might be breaking the screenshots. could you try with it off and see if it changes? i doubt the logs will mention the crash however it will be helpful to see what it was doing when it did crash.

@TomW1605
Copy link
Owner

TomW1605 commented Jun 29, 2020

@mrfisse were you able to get the log file?

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

2 participants