rpkiller413 / shimeji-ee

Automatically exported from code.google.com/p/shimeji-ee
0 stars 0 forks source link

Freezes on Screen Saver #8

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Shimeji-ee looks for the cursor when determining behavior, which fails when the 
computer is when the Screen Saver is on or the computer is locked.  All the 
Shimeji will stop responding when this happens.

Original issue reported on code.google.com by relic...@gmail.com on 6 Nov 2010 at 8:57

GoogleCodeExporter commented 8 years ago
I think I found the problem, it's a NullPointerException when it tries to 
follow the cursor and there isn't one.

I tried the following to fix the issue in Environment.java:
        try {
            return MouseInfo.getPointerInfo().getLocation();
        }
        catch (NullPointerException e){
            return new Point();
        }

Seems to be working, though I received the following exception at startup, not 
sure what it is... doesn't seem to be affecting the program:

Exception in thread "Thread-5" java.lang.NoSuchMethodError: com.group_finity.mas
cot.environment.Environment.access$000()V
        at com.group_finity.mascot.environment.Environment$1.run(Environment.jav
a:39)

Seems to be referring to this:
            public void run() {
                try {
                    for (;;) {
                        updateScreenRect();
                        Thread.sleep(5000);
                    }
                } catch (final InterruptedException e) {
                }
            }

Original comment by Hell...@gmail.com on 4 Apr 2013 at 4:12

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Turns out the exception broke support for my second screen, not sure why I'm 
getting it. :\

Original comment by Hell...@gmail.com on 4 Apr 2013 at 4:56