# Help with wx-gui, window size error

**URL:** <https://www.ruby-forum.com/t/help-with-wx-gui-window-size-error/230247>\
**Category:** GNU Radio\
**Created:** [June 6, 2014, 10:33am UTC](https://www.ruby-forum.com/t/help-with-wx-gui-window-size-error/230247 "2014-06-06T10:33:00Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![jason\_sam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7993a0/32.png) [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Post date:** [June 6, 2014, 10:33am UTC](https://www.ruby-forum.com/t/help-with-wx-gui-window-size-error/230247/1 "2014-06-06T10:33:00Z")

</div>

Hi,

I am having problems running a WX GUI FFT Sink, I am getting the  
following  
runtime error:

Traceback (most recent call last):  
File “/home/thilina/noctar/fm\_rx/top\_block.py”, line 109, in   
tb = top\_block()  
File “/home/thilina/noctar/fm\_rx/top\_block.py”, line 50, in **init**  
size=(720, 480),  
File  
“/usr/lib/python2.7/site-packages/gnuradio/wxgui/fftsink\_nongl.py”,  
line 198, in **init**  
self.win = fft\_window(self, parent, size=size)  
File  
“/usr/lib/python2.7/site-packages/gnuradio/wxgui/fftsink\_nongl.py”,  
line 331, in **init**  
self.control\_panel = control\_panel(self)  
File  
“/usr/lib/python2.7/site-packages/gnuradio/wxgui/fftsink\_nongl.py”,  
line 256, in **init**  
wx.Panel. **init** (self, parent, -1, style=wx.SIMPLE\_BORDER)  
File “/usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/\_windows.py”,  
line  
68, in **init**  
_windows_.Panel\_swiginit(self,_windows_.new\_Panel(\*args, \*\*kwargs))  
wx.\_core.PyAssertionError: C++ assertion “m\_window” failed at  
./src/gtk/dcclient.cpp(2041) in DoGetSize(): GetSize() doesn’t work  
without  
window

Is this a know bug? whats the best way to fix it? I am new to gnuradio.

I’m running gnuradio 3.7.3-4

Kind Regards,

Thil

---

<div class="post-metadata">

**Author:** ![Thilina\_Mallawa\_Ara](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/9de053/32.png) [@Thilina\_Mallawa\_Ara](https://www.ruby-forum.com/u/Thilina_Mallawa_Ara)\
**Post date:** [June 6, 2014, 11:46am UTC](https://www.ruby-forum.com/t/help-with-wx-gui-window-size-error/230247/2 "2014-06-06T11:46:04Z")

</div>

What are you doing when this error occurs?  
Can you use the QT GUI sinks?

M

---

<div class="post-metadata">

**Author:** ![Thilina\_Mallawa\_Ara](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/9de053/32.png) [@Thilina\_Mallawa\_Ara](https://www.ruby-forum.com/u/Thilina_Mallawa_Ara)\
**Post date:** [June 6, 2014, 5:35pm UTC](https://www.ruby-forum.com/t/help-with-wx-gui-window-size-error/230247/3 "2014-06-06T17:35:32Z")

</div>

On Fri, Jun 6, 2014 at 4:32 AM, Thilina Mallawa Arachchi \<  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> wrote:

> File “/usr/lib/python2.7/site-packages/gnuradio/wxgui/fftsink\_nongl.py”,  
> _windows_.Panel\_swiginit(self,_windows_.new\_Panel(\*args, \*\*kwargs))  
> Thil

It’s telling you that you haven’t defined a window for the FFT. You can  
specify no window (iirc) by passing it ‘’ or you can look at the  
fft.window module, which provides a set of windows you can define.

Tom

---

<div class="post-metadata">

**Author:** ![Thilina\_Mallawa\_Ara](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/9de053/32.png) [@Thilina\_Mallawa\_Ara](https://www.ruby-forum.com/u/Thilina_Mallawa_Ara)\
**Post date:** [June 6, 2014, 5:49pm UTC](https://www.ruby-forum.com/t/help-with-wx-gui-window-size-error/230247/4 "2014-06-06T17:49:41Z")

</div>

On Fri, Jun 6, 2014 at 11:44 AM, Marcus D. Leech [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > Traceback (most recent call last):  
> > 331, in **init**  
> > window  
> > It’s telling you that you haven’t defined a window for the FFT. You can  
> > Tom, you should look again.
> 
> This is a “guts of wxPython” thing.
> 
> Either there’s no Xwindow server running, or they forgot to specify “WX  
> GUI” in the generate options.

Dah! Wrong concept of a window! Sorry.

But I just got done giving the talk you were supposed to give, so, cut  
me  
some slack 🙂

Tom

---

<div class="post-metadata">

**Author:** ![Thilina\_Mallawa\_Ara](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/9de053/32.png) [@Thilina\_Mallawa\_Ara](https://www.ruby-forum.com/u/Thilina_Mallawa_Ara)\
**Post date:** [June 6, 2014, 5:45pm UTC](https://www.ruby-forum.com/t/help-with-wx-gui-window-size-error/230247/5 "2014-06-06T17:45:33Z")

</div>

On 06/06/2014 11:33 AM, Tom R. wrote:

> ```
> <module>
> self.control_panel = control_panel(self)
> ./src/gtk/dcclient.cpp(2041) in DoGetSize(): GetSize() doesn't
> 
> ```
> 
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [Discuss-gnuradio Info Page](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)  
> Tom, you should look again.

This is a “guts of wxPython” thing.

Either there’s no Xwindow server running, or they forgot to specify “WX  
GUI” in the generate options.

---

<div class="post-metadata">

**Author:** ![Thilina\_Mallawa\_Ara](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/9de053/32.png) [@Thilina\_Mallawa\_Ara](https://www.ruby-forum.com/u/Thilina_Mallawa_Ara)\
**Post date:** [June 6, 2014, 8:28pm UTC](https://www.ruby-forum.com/t/help-with-wx-gui-window-size-error/230247/6 "2014-06-06T20:28:46Z")

</div>

" This is a “guts of wxPython” thing.

Either there’s no Xwindow server running, or they forgot to specify “WX  
GUI” in the generate options."

This may be the problem, I didnt manually specify WX GUI in the generate  
options. My install was completed by a scripted install via yaourt  
package  
manager on Arch Linux, no errors. I assume WX GUI was generated as I can  
run the WXGUI Waterfall Plot with no errors.

Xwindow server is running.

I did find a forum post with a reported fix to the problem, do you guys  
think I should try this? refer to last post in  
[Arch Linux and wxgui? (GRC) - bladeRF](http://nuand.com/forums/viewtopic.php?t=3524&p=5164). I generally avoid  
trying to downgrade and manually install packages, it’d be better if  
there  
was a simpler solution.

Kind Regards,

Thil

---

<div class="post-metadata">

**Author:** ![Thilina\_Mallawa\_Ara](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/9de053/32.png) [@Thilina\_Mallawa\_Ara](https://www.ruby-forum.com/u/Thilina_Mallawa_Ara)\
**Post date:** [June 6, 2014, 10:27pm UTC](https://www.ruby-forum.com/t/help-with-wx-gui-window-size-error/230247/7 "2014-06-06T22:27:49Z")

</div>

On Fri, Jun 6, 2014 at 2:27 PM, Thilina Mallawa Arachchi \<  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> wrote:

> Xwindow server is running.

Ah, interesting. I suppose it’s possible. What version of wxPython/wxGTK  
are you using? If it’s \>= 3.0, I’m not sure that’s tested. Might have to  
put in a protection against using none 2.8 versions.

Tom

---

<div class="post-metadata">

**Author:** ![Thilina\_Mallawa\_Ara](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/9de053/32.png) [@Thilina\_Mallawa\_Ara](https://www.ruby-forum.com/u/Thilina_Mallawa_Ara)\
**Post date:** [June 7, 2014, 4:36am UTC](https://www.ruby-forum.com/t/help-with-wx-gui-window-size-error/230247/8 "2014-06-07T04:36:21Z")

</div>

I’ve got the latest versions installed wxpython 3.0.0.0-2 and wxgtk  
3.0.0-3.

Right, thanks for the info, Its best that I downgrade then. Will  
confirm.

---

<div class="post-metadata">

**Author:** ![Thilina\_Mallawa\_Ara](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/9de053/32.png) [@Thilina\_Mallawa\_Ara](https://www.ruby-forum.com/u/Thilina_Mallawa_Ara)\
**Post date:** [June 6, 2014, 8:17pm UTC](https://www.ruby-forum.com/t/help-with-wx-gui-window-size-error/230247/9 "2014-06-06T20:17:34Z")

</div>

Hi Martin,

I am feeding in IQ samples at a sample rate supported by the SDR via the  
IShorttoComplex block.

I cannot use the QT GUI sinks, the blocks are not visible to me in my  
gnuradio install.

On a side not I can use the WX-GUI Waterfall Plot, so not all my WX-GUI  
blocks are ‘broken’

Kind Regards,

Thil

---

<div class="post-metadata">

**Author:** ![Thilina\_Mallawa\_Ara](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/9de053/32.png) [@Thilina\_Mallawa\_Ara](https://www.ruby-forum.com/u/Thilina_Mallawa_Ara)\
**Post date:** [June 10, 2014, 3:36am UTC](https://www.ruby-forum.com/t/help-with-wx-gui-window-size-error/230247/10 "2014-06-10T03:36:30Z")

</div>

Downgraded wxPython to wxpython2.8 however Arch linux uses wxPython as a  
dependency and GnuRadio continues to use the newer version. Results in  
some  
wxgui instruments to fail.  
On Jun 6, 2014 7:35 PM, “Thilina Mallawa Arachchi” \<

---

<div class="post-metadata">

**Author:** ![Thilina\_Mallawa\_Ara](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/9de053/32.png) [@Thilina\_Mallawa\_Ara](https://www.ruby-forum.com/u/Thilina_Mallawa_Ara)\
**Post date:** [June 12, 2014, 1:34pm UTC](https://www.ruby-forum.com/t/help-with-wx-gui-window-size-error/230247/11 "2014-06-12T13:34:27Z")

</div>

On Tue, Jun 10, 2014 at 1:35 AM, Thilina Mallawa Arachchi \<  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> wrote:

> Downgraded wxPython to wxpython2.8 however Arch linux uses wxPython as a  
> dependency and GnuRadio continues to use the newer version. Results in some  
> wxgui instruments to fail.

With the two versions of wx installed, can you see how to use them  
independently yourself from within Python? Right now, we’re checking for  
the Python module ‘wx’ only. We’d have to see what we need to check for  
to  
adjust to use the 2.8 version. I’m worried that this would involve a lot  
of  
changes in the gr-wxgui Python files themselves, though, since they are  
also using “import wx”.

It’ might actually be easier if someone could help us update GNU Radio  
to  
work with the newer versions of wx.

Tom

On Jun 6, 2014 7:35 PM, “Thilina Mallawa Arachchi” \<
