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

Mouse out of bound in video and text mode. #70

Open
markzyu opened this issue Dec 13, 2015 · 7 comments
Open

Mouse out of bound in video and text mode. #70

markzyu opened this issue Dec 13, 2015 · 7 comments
Labels

Comments

@markzyu
Copy link

markzyu commented Dec 13, 2015

It seems that on the demo day we added too much debug info. Mouse should not be tracked under text mode. It caused the system to crash.
screen shot 2015-12-13 at 2 43 37 pm

@markzyu markzyu added the bug label Dec 13, 2015
@markzyu
Copy link
Author

markzyu commented Dec 13, 2015

The kernel crash was caused by using both Maybe and nullptr to determine whether getElementAtPosition succeeded.

@tengyifei which one should we use?

screen shot 2015-12-13 at 2 57 09 pm

screen shot 2015-12-13 at 2 56 38 pm

@tengyifei
Copy link
Member

There must be at least one element, the desktop. Therefore getElementAtPosition must always succeed, unless you are calling it with out-of-bounds coordinates or before drawNikita

@markzyu
Copy link
Author

markzyu commented Dec 15, 2015

Anyhow the system should crash due to Maybe unboxing, not due to dereferencing nullptr, now that Maybe type is used...

@markzyu
Copy link
Author

markzyu commented Dec 15, 2015

Github automatically closed this...

@markzyu markzyu reopened this Dec 15, 2015
@markzyu markzyu changed the title Turn off mouse debug info Mouse debug info out of bound in text mode. Dec 15, 2015
@markzyu
Copy link
Author

markzyu commented Dec 18, 2015

Mouse can also go out of bound in Video mode...

@markzyu markzyu changed the title Mouse debug info out of bound in text mode. Mouse out of bound in video and text mode. Dec 18, 2015
@Tedko
Copy link
Member

Tedko commented Dec 18, 2015

Will it lead to crash?

On Thu, Dec 17, 2015 at 20:21 C4Phone [email protected] wrote:

Mouse can also go out of bound in Video mode...


Reply to this email directly or view it on GitHub
#70 (comment)
.

@markzyu
Copy link
Author

markzyu commented Dec 18, 2015

No. I added some conditions. But it will print error message into text
terminal

On Thursday, December 17, 2015, Han [email protected] wrote:

Will it lead to crash?

On Thu, Dec 17, 2015 at 20:21 C4Phone <[email protected]
javascript:_e(%7B%7D,'cvml','[email protected]');> wrote:

Mouse can also go out of bound in Video mode...


Reply to this email directly or view it on GitHub
<
#70 (comment)

.


Reply to this email directly or view it on GitHub
#70 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants