¿ªÔÆÌåÓý

CW Keyboard Crashes #sBitx #sBitxDevel


 

I've been looking at the problem report where sbitx exits when the CW "KBD" softkey function is activated.

You probably don't notice this if you have the panel (taskbar) set to automatically hide. To enable automatic panel hiding:
Right click on the Panel, select Panel Settings, select the Advanced tab, then check the "Minimize panel when not in use" in the Automatic hiding section.

The problem is that with the panel visible, the height of the waterfall display is reduced. When the CW keyboard is opened, the height of the waterfall will try to be reduced to a size that's less than 0 pixels.
The sbitx application then tries to allocate a memory buffer for the waterfall, using a negative size. When the malloc() function call fails, the application exits.

I've submitted a pull request to limit the minimum size of the sbitx window so that the waterfall size is never less than zero. Alternatives to this solution could include reducing the size of the spectrum display that's above the waterfall.

73; Steve, N3SB


 

On Sat, Jan 20, 2024 at 02:45 PM, Steve Beckman wrote:
I've submitted a pull request to limit the minimum size of the sbitx window so that the waterfall size is never less than zero.

For the adventurous, impatient types, the attached script makes a new copy of the current v3.02 afarhan code in a new folder/directory then patches in Steve's fix, then builds a new sbitx image.
?
Please read the script and make sure you understand what it is doing before running it.

Hope this helps!??

If nothing else, it shows that Steve's fix patches in cleanly.

--
Regards,
Dave, N1AI