View Single Post
  #7   Spotlight this post!  
Unread 10-02-2015, 16:08
Ozuru's Avatar
Ozuru Ozuru is offline
It's always the programmer's fault.
no team
 
Join Date: May 2013
Rookie Year: 2010
Location: Earth
Posts: 268
Ozuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to behold
Re: SmartDashboard Extension

Quote:
Originally Posted by nickmcski View Post
Hum, The only think I can think of is the driver station may be using a different java version if you have multiple java installs on your computer. I cant access the SFX code from this laptop but when I get home I will make sure its not checking for any weird arguments from the driver station.

The other thing you can try (If you have a java JDK installed and correctly added to your path variable) is to start the dashboard with the driver station then open the command prompt and type
Code:
jps
That will list the java process ID for every java application running, remember the number associated with smart dashboard then you can run the command
Code:
jstack <Number Here>
That will print out a list of all the java threads currently running and the stack trace to go with them, if you can copy them then post them back here I can look through them and see if there is anything out of the ordinary, (Like its stuck trying to load a plugin or didn't start a thread correctly)
Thanks for the reply, Nick. I checked my installs and I had two others -- now I'm only using Java 8 Update 25 and the JDK 8 Update 25.

Here's the result of its stack trace:

Code:
C:\WINDOWS\system32>jstack 5480
2015-02-10 16:02:43
Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.25-b02 mixed mode):

"TimerQueue" #28 daemon prio=5 os_prio=0 tid=0x0000000018802800 nid=0x14d0 waiti
ng on condition [0x000000001d10e000]
   java.lang.Thread.State: WAITING (parking)
        at sun.misc.Unsafe.park(Native Method)
        - parking to wait for  <0x00000000a4aca258> (a java.util.concurrent.lock
s.AbstractQueuedSynchronizer$ConditionObject)
        at java.util.concurrent.locks.LockSupport.park(Unknown Source)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject
.await(Unknown Source)
        at java.util.concurrent.DelayQueue.take(Unknown Source)
        at javax.swing.TimerQueue.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

"Client Connection Reader Thread" #27 prio=6 os_prio=0 tid=0x00000000187c7000 ni
d=0x1520 runnable [0x000000001c9ff000]
   java.lang.Thread.State: RUNNABLE
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.read(Unknown Source)
        at java.net.SocketInputStream.read(Unknown Source)
        at java.io.BufferedInputStream.fill(Unknown Source)
        at java.io.BufferedInputStream.read(Unknown Source)
        - locked <0x00000000a4ac92a8> (a java.io.BufferedInputStream)
        at java.io.DataInputStream.readByte(Unknown Source)
        at edu.wpi.first.wpilibj.networktables2.connection.NetworkTableConnectio
n.read(NetworkTableConnection.java:115)
        at edu.wpi.first.wpilibj.networktables2.connection.ConnectionMonitorThre
ad.run(ConnectionMonitorThread.java:30)
        at edu.wpi.first.wpilibj.networktables2.thread.DefaultThreadManager$Peri
odicNTThread$1.run(DefaultThreadManager.java:18)
        at java.lang.Thread.run(Unknown Source)

"D3D Screen Updater" #26 daemon prio=7 os_prio=1 tid=0x0000000018551000 nid=0x14
90 in Object.wait() [0x000000001c4ef000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        at sun.java2d.d3d.D3DScreenUpdateManager.run(Unknown Source)
        - locked <0x00000000a4aca4a8> (a java.lang.Object)
        at java.lang.Thread.run(Unknown Source)

"DestroyJavaVM" #25 prio=5 os_prio=0 tid=0x0000000002410800 nid=0x1234 waiting o
n condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"Swing-Shell" #18 daemon prio=6 os_prio=0 tid=0x0000000018405800 nid=0x13bc wait
ing on condition [0x000000001a9be000]
   java.lang.Thread.State: WAITING (parking)
        at sun.misc.Unsafe.park(Native Method)
        - parking to wait for  <0x00000000a4aca828> (a java.util.concurrent.lock
s.AbstractQueuedSynchronizer$ConditionObject)
        at java.util.concurrent.locks.LockSupport.park(Unknown Source)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject
.await(Unknown Source)
        at java.util.concurrent.LinkedBlockingQueue.take(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at sun.awt.shell.Win32ShellFolderManager2$ComInvoker$3.run(Unknown Sourc
e)
        at java.lang.Thread.run(Unknown Source)

"Write Manager Thread" #15 prio=6 os_prio=0 tid=0x0000000018376000 nid=0x464 wai
ting on condition [0x0000000018c5f000]
   java.lang.Thread.State: TIMED_WAITING (sleeping)
        at java.lang.Thread.sleep(Native Method)
        at edu.wpi.first.wpilibj.networktables2.WriteManager.run(WriteManager.ja
va:148)
        at edu.wpi.first.wpilibj.networktables2.thread.DefaultThreadManager$Peri
odicNTThread$1.run(DefaultThreadManager.java:18)
        at java.lang.Thread.run(Unknown Source)

"AWT-EventQueue-0" #14 prio=6 os_prio=0 tid=0x0000000017770800 nid=0x7ec waiting
 on condition [0x000000001835f000]
   java.lang.Thread.State: WAITING (parking)
        at sun.misc.Unsafe.park(Native Method)
        - parking to wait for  <0x00000000a49da150> (a java.util.concurrent.lock
s.AbstractQueuedSynchronizer$ConditionObject)
        at java.util.concurrent.locks.LockSupport.park(Unknown Source)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject
.await(Unknown Source)
        at java.awt.EventQueue.getNextEvent(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)

"AWT-Windows" #12 daemon prio=6 os_prio=0 tid=0x000000001776e800 nid=0x870 runna
ble [0x000000001813f000]
   java.lang.Thread.State: RUNNABLE
        at sun.awt.windows.WToolkit.eventLoop(Native Method)
        at sun.awt.windows.WToolkit.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

"AWT-Shutdown" #11 prio=5 os_prio=0 tid=0x000000001776d800 nid=0xdac in Object.w
ait() [0x000000001803e000]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x00000000a4acad50> (a java.lang.Object)
        at java.lang.Object.wait(Unknown Source)
        at sun.awt.AWTAutoShutdown.run(Unknown Source)
        - locked <0x00000000a4acad50> (a java.lang.Object)
        at java.lang.Thread.run(Unknown Source)

"Java2D Disposer" #10 daemon prio=10 os_prio=2 tid=0x000000001776b800 nid=0x1270
 in Object.wait() [0x0000000017f3f000]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x00000000a49bf360> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(Unknown Source)
        - locked <0x00000000a49bf360> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(Unknown Source)
        at sun.java2d.Disposer.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

"Service Thread" #9 daemon prio=9 os_prio=0 tid=0x000000001746f800 nid=0x124c ru
nnable [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C1 CompilerThread2" #8 daemon prio=9 os_prio=2 tid=0x0000000015bf6000 nid=0x14b
c waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C2 CompilerThread1" #7 daemon prio=9 os_prio=2 tid=0x0000000015bf1000 nid=0x14c
0 waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C2 CompilerThread0" #6 daemon prio=9 os_prio=2 tid=0x0000000015bed000 nid=0xa98
 waiting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"Attach Listener" #5 daemon prio=5 os_prio=2 tid=0x0000000015bea800 nid=0xf78 wa
iting on condition [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"Signal Dispatcher" #4 daemon prio=9 os_prio=2 tid=0x0000000015bea000 nid=0x167c
 runnable [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"Finalizer" #3 daemon prio=8 os_prio=1 tid=0x0000000015bb7800 nid=0x1678 in Obje
ct.wait() [0x0000000016f4f000]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        at java.lang.ref.ReferenceQueue.remove(Unknown Source)
        - locked <0x00000000a4bd0d10> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(Unknown Source)
        at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)

"Reference Handler" #2 daemon prio=10 os_prio=2 tid=0x00000000024fe000 nid=0x175
8 in Object.wait() [0x0000000016e4f000]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        at java.lang.Object.wait(Unknown Source)
        at java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)
        - locked <0x00000000a4b23f48> (a java.lang.ref.Reference$Lock)

"VM Thread" os_prio=2 tid=0x0000000015bb6800 nid=0x1378 runnable

"GC task thread#0 (ParallelGC)" os_prio=0 tid=0x0000000002426000 nid=0x156c runn
able

"GC task thread#1 (ParallelGC)" os_prio=0 tid=0x0000000002428000 nid=0x15ac runn
able

"GC task thread#2 (ParallelGC)" os_prio=0 tid=0x0000000002429800 nid=0x1574 runn
able

"GC task thread#3 (ParallelGC)" os_prio=0 tid=0x000000000242b800 nid=0x1578 runn
able

"VM Periodic Task Thread" os_prio=2 tid=0x0000000017472000 nid=0x678 waiting on
condition

JNI global references: 373
Once I removed the two other Java installations I had for Java 7 it allowed me to select my plugin but, again, the camera widget isn't working. Simple Camera Viewer is but Camera does not -- any ideas?

Thanks!
Reply With Quote