error when closing window (buffer not created)

94 views
Skip to first unread message

Zain

unread,
Nov 28, 2010, 5:22:44 AM11/28/10
to javacv
this is what i get:
Exception in thread "AWT-EventQueue-0"
java.lang.IllegalStateException: Buffers have not been created
at
sun.awt.windows.WComponentPeer.getBackBuffer(WComponentPeer.java:877)
at java.awt.Component
$FlipBufferStrategy.getBackBuffer(Component.java:3815)
at java.awt.Component$FlipBufferStrategy.flip(Component.java:
3835)
at java.awt.Component$FlipBufferStrategy.show(Component.java:
3963)
at com.googlecode.javacv.CanvasFrame$1.paint(CanvasFrame.java:
173)
at sun.awt.RepaintArea.paintComponent(RepaintArea.java:248)
at sun.awt.RepaintArea.paint(RepaintArea.java:224)
at
sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:310)
at java.awt.Component.dispatchEventImpl(Component.java:4706)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:
269)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:
184)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:
174)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:
122)
BUILD SUCCESSFUL (total time: 1 minute 1 second)

it happens if i close the window which shows the faces annotated......
the main window....
thanks in advance

Samuel Audet

unread,
Nov 30, 2010, 4:02:28 AM11/30/10
to jav...@googlegroups.com
Ah, this code is quite tricky to get right.. I will fix that. Does it
cause you any problems for now? thanks for reporting

Samuel

Zain

unread,
Dec 4, 2010, 11:34:31 AM12/4/10
to javacv
thank you!
the thing is that yes, it's causing me a problem....
and the problem is that i'm trying to start and stop the program using
a botton, i've created like a small interface .... only a button which
opens the windows (canvas)
and another button to close......
starting is fine but when closing..... which is a flag to stop the
loop..... the window shuts down but i get the error.....
thank you very much!
> > java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.jav­a:
> > 269)
> >          at
> > java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:
> > 184)
> >          at
> > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.jav­a:
> > 174)
> >          at
> > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
> >          at
> > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
> >          at java.awt.EventDispatchThread.run(EventDispatchThread.java:
> > 122)
> > BUILD SUCCESSFUL (total time: 1 minute 1 second)
>
> > it happens if i close the window which shows the faces annotated......
> > the main window....
> > thanks in advance- Hide quoted text -
>
> - Show quoted text -

Samuel Audet

unread,
Dec 4, 2010, 8:57:00 PM12/4/10
to jav...@googlegroups.com
I released a new version 2 days ago that should fix that:
http://code.google.com/p/javacv/downloads/list
Let me know if it works well!

Samuel

Zain

unread,
Dec 16, 2010, 3:10:34 AM12/16/10
to javacv
It's working amazingly well, your program is helping me a lot
thanks a million!
Reply all
Reply to author
Forward
0 new messages