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

Cannot open the program anymore #10

Closed
fixx1983 opened this issue Jun 27, 2019 · 5 comments
Closed

Cannot open the program anymore #10

fixx1983 opened this issue Jun 27, 2019 · 5 comments
Labels
bug Something isn't working

Comments

@fixx1983
Copy link

Today I tried to open Nanoleaf for Desktop but it simply does nothing, exe and jar versions.

Trying to load the jar from cmd i receive this output:

java.lang.IllegalArgumentException: setSelectedIndex: 2 out of bounds
        at javax.swing.JComboBox.setSelectedIndex(Unknown Source)
        at io.github.rowak.nanoleafdesktop.ui.panel.AmbilightPanel.loadUserSettings(AmbilightPanel.java:259)
        at io.github.rowak.nanoleafdesktop.ui.panel.AmbilightPanel.<init>(AmbilightPanel.java:60)
        at io.github.rowak.nanoleafdesktop.Main.initTabbedPane(Main.java:756)
        at io.github.rowak.nanoleafdesktop.Main.initUI(Main.java:655)
        at io.github.rowak.nanoleafdesktop.Main.<init>(Main.java:113)
        at io.github.rowak.nanoleafdesktop.Main$10.run(Main.java:837)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$500(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
@rowak
Copy link
Owner

rowak commented Jun 27, 2019

I just have a few questions:

  • What version of the app are you running? Is it a debug version?
  • How many monitors do you have connected?
  • Could you upload your preferences.txt file? This file stores all the app data. To find it, press windows key + R then enter "%AppData%" and navigate to the folder "Nanoleaf for Desktop".

The error you posted suggests that the app is having trouble reading your data file. If this is the case, you can try deleting the file and let the app generate a new one for you. You will have to set up your devices again though. Once you delete the file, try running the app again and see if the window shows up.

@fixx1983
Copy link
Author

Now I have a single monitor build, before I was two.

I tried all the versions, included debug one.

Anyway delete the preferences file worked. Could the issue be that i moved from a two monitors config to a single monitor one?

@rowak
Copy link
Owner

rowak commented Jun 27, 2019

Aha!
Yes, that would definitely cause this to happen. If you had your second monitor set as the selected monitor then changed your config to only have one monitor, when the app goes to get the monitor info (resolution, etc) it fails because the monitor doesn't exist.
Thanks for reporting this. I'll get this issue and other related ones fixed in the next release!

@rowak rowak added the bug Something isn't working label Jun 27, 2019
@fixx1983
Copy link
Author

Oh, so it was my fault! Thanks for your support!

@rowak
Copy link
Owner

rowak commented Jun 27, 2019

Well, it was more my fault for not foreseeing and fixing this issue. No problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants