← Back to team overview

ubuntu-hams-devel team mailing list archive

Re: [Bug 569579] Re: Applications using hamlib crash

 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kamal Mostafa wrote:
> @wpmills: The crash looks like it has been fixed in the latest release
> of hamlib (1.2.10-3).  That version of hamlib is included in the
> forthcoming Ubuntu 10.04 LTS (Lucid).  An unofficial version of hamlib
> (1.2.10-3) for Ubuntu 9.10 (Karmic) is also available in the ~ubuntu-
> hams PPA: https://launchpad.net/~ubuntu-hams/+archive/ppa
> 
> After installing the ~ubuntu-hams PPA hamlib version, grig -m 1608 no
> longer crashes.  (Of couse I don't really know if its functional since I
> don't have the Ten-Tec radio).
> 
> Please install the ~ubuntu-hams PPA version and test the behavior, then
> post your results to this bug.
> 
> Thanks again for reporting the problem.
> 
> ** Changed in: hamlib (Ubuntu)
>        Status: Confirmed => Incomplete
> 
> ** Changed in: hamlib (Ubuntu)
>      Assignee: (unassigned) => Kamal Mostafa (kamalmostafa)
> 

This solves the crash. Reads frequency correctly, but can only lower
frequency, no raise. Trying any other functions cause very erratic
behavior on the radio. Now get from grig:

wpmills@suzanne:~$ grig -m 1608 -r /dev/ttyS0
2010/05/03 21:10:12;;GRIG;;4;;grig_debug_init: Debug handler initialised.
2010/05/03 21:10:12;;HAMLIB;;4;;rig:rig_init called
2010/05/03 21:10:12;;HAMLIB;;4;;rig: loading backend tentec
2010/05/03 21:10:12;;HAMLIB;;4;;tentec: _init called
2010/05/03 21:10:12;;HAMLIB;;4;;rig_register (1601)
2010/05/03 21:10:12;;HAMLIB;;4;;rig_register (1607)
2010/05/03 21:10:12;;HAMLIB;;4;;rig_register (1608)
2010/05/03 21:10:12;;HAMLIB;;4;;rig_register (1602)
2010/05/03 21:10:12;;HAMLIB;;4;;rig_register (1609)
2010/05/03 21:10:12;;HAMLIB;;4;;rig_register (1611)
2010/05/03 21:10:12;;HAMLIB;;4;;rig_register (1603)
2010/05/03 21:10:12;;HAMLIB;;4;;rig_register (1604)
2010/05/03 21:10:12;;HAMLIB;;4;;rig_register (1605)
2010/05/03 21:10:12;;HAMLIB;;4;;rig:rig_open called
2010/05/03 21:10:12;;GRIG;;1;;rig_daemon_check_vfo: Can not find VFO
list for this backend! Bug in backend?
2010/05/03 21:10:12;;HAMLIB;;3;;** retry after delay (io=2, retry=0) **
2010/05/03 21:10:12;;HAMLIB;;3;;** retry after delay (io=3, retry=0) **
2010/05/03 21:10:12;;GRIG;;1;;rig_daemon_check_mode: Can not find
frequency range for this mode (4)! Bug in backend?
2010/05/03 21:10:12;;GRIG;;4;;rig_daemon_check_level: Maximum RF power
is 0.000 watts
2010/05/03 21:10:13;;GRIG;;4;;rig_daemon_start: Daemon thread started
2010/05/03 21:11:49;;HAMLIB;;4;;rig:rig_close called
2010/05/03 21:11:49;;HAMLIB;;4;;rig:rig_cleanup called
2010/05/03 21:11:49;;GRIG;;4;;grig_debug_close: Shutting down debug handler.


fldigi shows (don't know why the audio errors, audio works fine):

wpmills@suzanne:~$ fldigi
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
Expression 'snd_pcm_hw_params_set_format( pcm, hwParams, Pa2AlsaFormat(
hostFormat ) )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1077
W: dxcc_open: Could not read contest country file
"/home/wpmills/.fldigi/cty.dat"
E: show_error: hamlib_init: Invalid configuration
E: show_error: hamlib_init: Invalid configuration
wpmills@suzanne:~$




- --
/*************************************************
* Amateur Radio Station AC0HY                    *
* W. Paul Mills         SN807                    *
* Assistant EC Alpha-1 ARES Shawnee/Wabunsee, KS *
* President Kaw Valley Amateur Radio Club        *
*************************************************/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkvfjbUACgkQ5tjVbfWfEly8iQCeNwIs8AnSRByICwtJG1Kt0TLK
2/EAoLBBqEIoLSMy3mV8aJnhvPgwThuJ
=IoUN
-----END PGP SIGNATURE-----

-- 
hamlib: crash in Ten-Tec backend rig 1608
https://bugs.launchpad.net/bugs/569579
You received this bug notification because you are a member of Ubuntu
ham developers, which is subscribed to hamlib in ubuntu.

Status in “hamlib” package in Ubuntu: Incomplete

Bug description:
Fldigi & grig crash when trying to connect to the Ten-Tec Orion II.
Have used these programs in the past with debian systems without problems on the Orion II.

wpmills@suzanne:~$ lsb_release -rd
Description:	Ubuntu 9.10
Release:	9.10


Fldigi shows:

Caught signal 11
Aborting fldigi due to a fatal error.
Please report this to w1hkj AT w1hkj DOT com

*** Stack trace:
fldigi[0x4a8d78]
/lib/libpthread.so.0[0x7f513645e190]
/lib/libc.so.6(memcpy+0xe1)[0x7f51348fa621]
/usr/lib/hamlib-tentec.so[0x7f512ec8c626]
/usr/lib/libhamlib.so.2(rig_open+0x196)[0x7f51357a8a86]
fldigi[0x415ba7]
fldigi[0x414176]
fldigi[0x483e0c]
fldigi[0x42165e]
fldigi(_ZN9Fl_Widget11do_callbackEv+0xb)[0x430eab]
/usr/lib/libfltk.so.1.1(_ZN9Fl_Button6handleEi+0x160)[0x7f5135fc4510]
/usr/lib/libfltk.so.1.1[0x7f5135fbd4ea]
/usr/lib/libfltk.so.1.1(_ZN2Fl6handleEiP9Fl_Window+0x4dc)[0x7f5135fbe64c]
/usr/lib/libfltk.so.1.1(_Z9fl_handleRK7_XEvent+0x98)[0x7f5136004b68]
/usr/lib/libfltk.so.1.1[0x7f5136005d83]
/usr/lib/libfltk.so.1.1(_Z7fl_waitd+0x41b)[0x7f513600662b]
/usr/lib/libfltk.so.1.1(_ZN2Fl4waitEd+0x118)[0x7f5135fbf058]
/usr/lib/libfltk.so.1.1(_ZN2Fl3runEv+0x1d)[0x7f5135fbf17d]
fldigi[0x47a036]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7f5134896abd]
fldigi[0x413119]

*** Version information:
fldigi 3.11.4
Copyright (c) 2008 Dave Freese, Stelios Bounanos, Leigh Klotz, and others
License GPLv2+: GNU GPL version 2 or later <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

System: Linux suzanne 2.6.31-20-generic #58-Ubuntu SMP Fri Mar 12 04:38:19 UTC 2010 x86_64

Built on Tue Jun 16 00:51:49 UTC 2009 by buildd@yellow with:
gcc version 4.4.0 (Ubuntu 4.4.0-6ubuntu2) 
CFLAGS=-DLOCALEDIR="/usr/share/locale" -I. -I./include -I./irrxml -I./fileselector   -DNDEBUG -pthread   -I/usr/include/freetype2 -D_THREAD_SAFE -D_REENTRANT -pipe -Wall -fexceptions -O2 -ffast-math -finline-functions -fomit-frame-pointer  -g -O2
LDFLAGS=-lportaudio -lm -lpthread    -Wl,-Bsymbolic-functions -lfltk_images -lfltk -lsndfile -lsamplerate    -lhamlib -lm -ldl  -lrt 
Libraries:
FLTK 1.1.9
libsamplerate-0.1.7 (c) 2002-2008 Erik de Castro Lopo
Hamlib version 1.2.9
PortAudio V19-devel (built Jun 20 2009 13:30:07) 1899
libsndfile-1.0.20
Segmentation fault

grig shows:

wpmills@suzanne:~$ grig -m 1608 -r /dev/ttyS0  -d 5
2010/04/24 16:57:03;;GRIG;;4;;grig_debug_init: Debug handler initialised.
2010/04/24 16:57:03;;HAMLIB;;4;;rig:rig_init called
2010/04/24 16:57:03;;HAMLIB;;4;;rig: loading backend tentec
2010/04/24 16:57:03;;HAMLIB;;4;;tentec: _init called
2010/04/24 16:57:03;;HAMLIB;;4;;rig_register (1601)
2010/04/24 16:57:03;;HAMLIB;;4;;rig_register (1607)
2010/04/24 16:57:03;;HAMLIB;;4;;rig_register (1608)
2010/04/24 16:57:03;;HAMLIB;;4;;rig_register (1602)
2010/04/24 16:57:03;;HAMLIB;;4;;rig_register (1611)
2010/04/24 16:57:03;;HAMLIB;;4;;rig_register (1603)
2010/04/24 16:57:03;;HAMLIB;;4;;rig_register (1604)
2010/04/24 16:57:03;;HAMLIB;;4;;rig_register (1605)
2010/04/24 16:57:03;;HAMLIB;;4;;rig:rig_open called
2010/04/24 16:57:03;;HAMLIB;;2;;tt565_get_info: ack NG, len=2
Segmentation fault





References