Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version 6.1 appears not to honor "Max traffic channels", causes max channels exceeded and no output. #2132

Open
wsbush opened this issue Jan 17, 2025 · 13 comments
Labels

Comments

@wsbush
Copy link

wsbush commented Jan 17, 2025

sdrtrunk Version
Master Branch

Describe the bug

I have both 6.0 release and 6.1 release loaded.
Channel used has "6" as max traffic channels.
Monitoring "Tuners/Channels", running 6.0, i see locked channels increasing/decreasing as needed, with a maximum of 4 in my case. "Now Playing/Events show no issues. Systems running fine. With 6.1, and monitoring "Tuners/channels" , locked channels do not exceed 2, "Now Playing/Events" show max channels exceeded messages. within one to two minutes, output ceases, locked channels = 1, and "control" channel has a channel of 0-1429 in it ( dont know if that matters)

There are no errors logged.

To Reproduce
ive defined the criteria in the description above.

Expected behavior
honor max traffic channels

Screenshots
If applicable, add screenshots to help explain your problem.

Application Log
BELOW ARE LOGS FOR BOTH 6.0 and 6.1

20250117 114407.868 [main] INFO i.g.d.log.ApplicationLog - SDRTrunk Version : 0.6.0 [14MB/60MB 24%]
20250117 114407.869 [main] INFO i.g.d.log.ApplicationLog - Gradle Version : Gradle 8.2 [14MB/60MB 24%]
20250117 114407.870 [main] INFO i.g.d.log.ApplicationLog - Build Timestamp : 2023-12-16T06:54:18.883-0500 [14MB/60MB 24%]
20250117 114407.871 [main] INFO i.g.d.log.ApplicationLog - Build-JDK : 20.0.1 (BellSoft 20.0.1+10 [14MB/60MB 24%]
20250117 114407.871 [main] INFO i.g.d.log.ApplicationLog - Build OS : Linux (amd64 6.2.0-37-generic [14MB/60MB 24%]
20250117 114407.871 [main] INFO i.g.d.log.ApplicationLog - [14MB/60MB 24%]
20250117 114407.871 [main] INFO i.g.d.log.ApplicationLog - ******************************************************************* [14MB/60MB 24%]
20250117 114407.871 [main] INFO i.g.d.log.ApplicationLog - **** sdrtrunk: a trunked radio and digital decoding application *** [14MB/60MB 24%]
20250117 114407.871 [main] INFO i.g.d.log.ApplicationLog - **** website: https://github.com/dsheirer/sdrtrunk *** [14MB/60MB 24%]
20250117 114407.871 [main] INFO i.g.d.log.ApplicationLog - ******************************************************************* [14MB/60MB 24%]
20250117 114407.871 [main] INFO i.g.d.log.ApplicationLog - Memory Logging Format: [Used/Allocated PercentUsed%] [14MB/60MB 24%]
20250117 114407.871 [main] INFO i.g.d.log.ApplicationLog - Host OS Name: Windows 7 [14MB/60MB 24%]
20250117 114407.871 [main] INFO i.g.d.log.ApplicationLog - Host OS Arch: amd64 [14MB/60MB 24%]
20250117 114407.871 [main] INFO i.g.d.log.ApplicationLog - Host OS Version: 6.1 [14MB/60MB 24%]
20250117 114407.871 [main] INFO i.g.d.log.ApplicationLog - Host CPU Cores: 4 [14MB/60MB 24%]
20250117 114407.871 [main] INFO i.g.d.log.ApplicationLog - Host Max Java Memory: 958 MB [14MB/60MB 24%]
20250117 114407.871 [main] INFO i.g.d.log.ApplicationLog - Storage Directories: [14MB/60MB 24%]
20250117 114407.871 [main] INFO i.g.d.log.ApplicationLog - Application Root: C:\Users\NewAdmin\SDRTrunk [14MB/60MB 24%]
20250117 114407.871 [main] INFO i.g.d.log.ApplicationLog - Application Log: C:\Users\NewAdmin\SDRTrunk\logs [14MB/60MB 24%]
20250117 114407.871 [main] INFO i.g.d.log.ApplicationLog - Event Log: C:\Users\NewAdmin\SDRTrunk\event_logs [14MB/60MB 24%]
20250117 114407.888 [main] INFO i.g.d.log.ApplicationLog - Playlist: C:\Users\NewAdmin\SDRTrunk\playlist [14MB/60MB 24%]
20250117 114407.890 [main] INFO i.g.d.log.ApplicationLog - Recordings: C:\Users\NewAdmin\SDRTrunk\recordings [14MB/60MB 24%]
20250117 114407.915 [main] INFO i.g.dsheirer.util.ThreadPool - Application thread pool created SCHEDULED and CACHED executors threads [15MB/60MB 25%]
20250117 114407.918 [main] INFO i.g.d.p.SystemProperties - SystemProperties - loaded [C:\Users\NewAdmin\SDRTrunk\SDRTrunk.properties] [15MB/60MB 25%]
20250117 114408.336 [main] INFO i.g.d.s.t.manager.TunerManager - Discovering tuners ... [16MB/27MB 60%]
20250117 114408.498 [main] INFO i.g.d.s.t.manager.TunerManager - LibUsb API Version: 1.0.262 [17MB/27MB 64%]
20250117 114408.498 [main] INFO i.g.d.s.t.manager.TunerManager - LibUsb Version: 1.0.22.11312 [17MB/27MB 64%]
20250117 114408.812 [main] INFO i.g.d.s.t.manager.TunerManager - LibUsb - discovered [7] potential usb devices [17MB/27MB 64%]
20250117 114408.831 [main] INFO i.g.d.s.t.manager.TunerManager - Discovered tuner at USB Bus [2] Port [1] Tuner Class [RTL-2832] [17MB/27MB 64%]
20250117 114408.837 [main] INFO i.g.d.s.t.manager.TunerManager - Tuner: USB Tuner - RTL-2832 USB Bus:2 Port:1 - Added / Starting ... [17MB/27MB 66%]
20250117 114410.119 [main] INFO i.g.d.d.f.c.ComplexPolyphaseChannelizerM2 - Sample Rate [2400000.0] providing [96] channels at [25000.0] Hz each [7MB/27MB 28%]
20250117 114410.299 [main] INFO i.g.d.s.t.manager.TunerManager - LibUsb Hotplug event notification Is Not Supported on this platform. [8MB/27MB 30%]
20250117 114410.328 [main] INFO i.g.d.s.t.sdrplay.api.SDRplay - Loading API Library from default install path: C:\Program Files\SDRplay\API\x64\sdrplay_api [8MB/27MB 31%]
20250117 114410.441 [main] INFO i.g.d.s.t.sdrplay.api.SDRplay - API library - open status: Success [10MB/27MB 39%]
20250117 114410.455 [main] WARN i.g.d.s.t.sdrplay.api.Version - Unrecognized SDRplay API version [3.15] [10MB/27MB 39%]
20250117 114410.456 [main] INFO i.g.d.s.t.sdrplay.api.SDRplay - API library is not available. [10MB/27MB 39%]
20250117 114410.463 [main] INFO i.g.d.settings.SettingsManager - SettingsManager - loading settings file [C:\Users\NewAdmin\SDRTrunk\settings\settings.xml] [11MB/27MB 40%]
20250117 114411.075 [main] WARN i.g.d.vector.VectorUtilities - CPU supports maximum SIMD instructions of Species[float, 8, S_256_BIT] [15MB/27MB 55%]
20250117 114412.121 [main] INFO i.g.d.playlist.PlaylistManager - Loading playlist [C:\Users\NewAdmin\SDRTrunk\playlist\Memphis Police.xml] [15MB/27MB 56%]
20250117 114412.650 [main] INFO i.github.dsheirer.gui.SDRTrunk - starting main application gui [18MB/27MB 70%]
20250117 114424.211 [sdrtrunk scheduled thread 3] INFO i.g.d.c.c.ChannelAutoStartFrame - Starting [1] now - timer invoked [23MB/44MB 53%]
20250117 114424.336 [sdrtrunk scheduled thread 3] INFO i.g.d.a.c.mbe.JmbeAudioModule - Loading JMBE library from [C:\Users\NewAdmin\SDRTrunk\jmbe\jmbe-1.0.9.jar] [27MB/45MB 61%]
20250117 114424.349 [sdrtrunk scheduled thread 3] INFO i.g.d.a.c.mbe.JmbeAudioModule - JMBE audio conversion library loaded: JMBE Audio Conversion Library v1.0.9 [28MB/45MB 62%]
20250117 114424.351 [sdrtrunk scheduled thread 3] INFO i.g.d.a.c.mbe.ImbeAudioModule - JMBE audio conversion library IMBE CODEC successfully loaded - P25-1 audio will be available [28MB/45MB 62%]
20250117 114424.389 [sdrtrunk scheduled thread 3] INFO i.g.d.d.f.c.ComplexPolyphaseChannelizerM2 - Sample Rate [2400000.0] providing [96] channels at [25000.0] Hz each [29MB/45MB 65%]
20250117 114425.258 [sdrtrunk polyphase channel thread 1] INFO i.g.d.a.c.mbe.AmbeAudioModule - AMBE CODEC successfully loaded - P25-2/DMR/NXDN audio will be available [92MB/257MB 35%]
20250117 120346.871 [AWT-EventQueue-0] INFO i.github.dsheirer.gui.SDRTrunk - Application shutdown started ... [196MB/442MB 44%]
20250117 120347.102 [AWT-EventQueue-0] INFO i.github.dsheirer.gui.SDRTrunk - Stopping channels ... [314MB/442MB 71%]
20250117 120347.116 [AWT-EventQueue-0] INFO i.g.d.m.d.p.P25TrafficChannelManager - Stopping traffic channel: Memphis Police Precincts (P25)_Shelby_T-Control_24 [323MB/442MB 73%]
20250117 120347.141 [AWT-EventQueue-0] INFO i.github.dsheirer.gui.SDRTrunk - Stopping spectral display ... [334MB/442MB 75%]
20250117 120347.150 [AWT-EventQueue-0] INFO i.github.dsheirer.gui.SDRTrunk - Stopping tuners ... [334MB/442MB 75%]
20250117 120347.153 [AWT-EventQueue-0] INFO i.g.d.s.t.m.DiscoveredTuner - Stopping Tuner: RTL-2832 USB Bus:2 Port:1 [334MB/442MB 75%]
20250117 120347.160 [AWT-EventQueue-0] INFO i.github.dsheirer.gui.SDRTrunk - Shutdown complete. [334MB/442MB 75%]
20250117 120347.161 [AWT-EventQueue-0] INFO i.g.d.log.ApplicationLog - Stopping application logging [334MB/442MB 75%]
20250117 120417.965 [main] INFO i.g.d.log.ApplicationLog - SDRTrunk Version : 0.6.1 [15MB/60MB 25%]
20250117 120417.965 [main] INFO i.g.d.log.ApplicationLog - Gradle Version : Gradle 8.10 [15MB/60MB 25%]
20250117 120417.965 [main] INFO i.g.d.log.ApplicationLog - Build Timestamp : 2024-12-03T16:29:36.848-0500 [15MB/60MB 25%]
20250117 120417.965 [main] INFO i.g.d.log.ApplicationLog - Build-JDK : 23 (BellSoft 23+38 [15MB/60MB 25%]
20250117 120417.965 [main] INFO i.g.d.log.ApplicationLog - Build OS : Linux (amd64 6.8.0-49-generic [15MB/60MB 25%]
20250117 120417.965 [main] INFO i.g.d.log.ApplicationLog - [15MB/60MB 25%]
20250117 120417.965 [main] INFO i.g.d.log.ApplicationLog - ******************************************************************* [15MB/60MB 25%]
20250117 120417.965 [main] INFO i.g.d.log.ApplicationLog - **** sdrtrunk: a trunked radio and digital decoding application *** [15MB/60MB 25%]
20250117 120417.965 [main] INFO i.g.d.log.ApplicationLog - **** website: https://github.com/dsheirer/sdrtrunk *** [15MB/60MB 25%]
20250117 120417.965 [main] INFO i.g.d.log.ApplicationLog - ******************************************************************* [15MB/60MB 25%]
20250117 120417.965 [main] INFO i.g.d.log.ApplicationLog - Memory Logging Format: [Used/Allocated PercentUsed%] [15MB/60MB 25%]
20250117 120417.965 [main] INFO i.g.d.log.ApplicationLog - Host OS Name: Windows 7 [15MB/60MB 25%]
20250117 120417.965 [main] INFO i.g.d.log.ApplicationLog - Host OS Arch: amd64 [15MB/60MB 25%]
20250117 120417.965 [main] INFO i.g.d.log.ApplicationLog - Host OS Version: 6.1 [15MB/60MB 25%]
20250117 120417.965 [main] INFO i.g.d.log.ApplicationLog - Host CPU Cores: 4 [15MB/60MB 25%]
20250117 120417.965 [main] INFO i.g.d.log.ApplicationLog - Host Max Java Memory: 958 MB [15MB/60MB 25%]
20250117 120417.981 [main] INFO i.g.d.log.ApplicationLog - Storage Directories: [15MB/60MB 25%]
20250117 120417.982 [main] INFO i.g.d.log.ApplicationLog - Application Root: C:\Users\NewAdmin\SDRTrunk [15MB/60MB 25%]
20250117 120417.983 [main] INFO i.g.d.log.ApplicationLog - Application Log: C:\Users\NewAdmin\SDRTrunk\logs [15MB/60MB 25%]
20250117 120417.987 [main] INFO i.g.d.log.ApplicationLog - Event Log: C:\Users\NewAdmin\SDRTrunk\event_logs [15MB/60MB 25%]
20250117 120417.989 [main] INFO i.g.d.log.ApplicationLog - Playlist: C:\Users\NewAdmin\SDRTrunk\playlist [15MB/60MB 25%]
20250117 120417.990 [main] INFO i.g.d.log.ApplicationLog - Recordings: C:\Users\NewAdmin\SDRTrunk\recordings [15MB/60MB 25%]
20250117 120418.040 [main] INFO i.g.d.s.t.s.a.SDRPlayLibraryHelper - SDRPLay API library loaded by name [sdrplay_api] [6MB/60MB 11%]
20250117 120418.041 [main] INFO i.github.dsheirer.gui.SDRTrunk - SDRPlay API native library preemptively loaded [6MB/60MB 11%]
20250117 120418.073 [main] INFO i.g.dsheirer.util.ThreadPool - Application thread pool created SCHEDULED and CACHED executors threads [6MB/24MB 28%]
20250117 120418.077 [main] INFO i.g.d.p.SystemProperties - SystemProperties - loaded [C:\Users\NewAdmin\SDRTrunk\SDRTrunk.properties] [6MB/24MB 28%]
20250117 120418.735 [main] INFO i.g.d.s.t.manager.TunerManager - Discovering tuners ... [12MB/24MB 52%]
20250117 120418.894 [main] INFO i.g.d.s.t.manager.TunerManager - LibUsb API Version: 1.0.262 [13MB/24MB 56%]
20250117 120418.896 [main] INFO i.g.d.s.t.manager.TunerManager - LibUsb Version: 1.0.22.11312 [13MB/24MB 56%]
20250117 120419.225 [main] INFO i.g.d.s.t.manager.TunerManager - LibUsb - discovered [7] potential usb devices [13MB/24MB 56%]
20250117 120419.244 [main] INFO i.g.d.s.t.manager.TunerManager - Discovered tuner at USB Bus [2] Port [1] Tuner Class [RTL-2832] [13MB/24MB 57%]
20250117 120419.250 [main] INFO i.g.d.s.t.manager.TunerManager - Tuner: USB Tuner - RTL-2832 USB Bus:2 Port:1 - Added / Starting ... [13MB/24MB 57%]
20250117 120420.695 [main] INFO i.g.d.d.f.c.ComplexPolyphaseChannelizerM2 - Sample Rate [2400000.0] providing [96] channels at [25000.0] Hz each [8MB/24MB 34%]
20250117 120420.882 [main] INFO i.g.d.s.t.manager.TunerManager - LibUsb Hotplug event notification Is Not Supported on this platform. [8MB/24MB 35%]
20250117 120421.059 [main] INFO i.g.d.s.t.sdrplay.api.SDRplay - API library v3.15 - loaded [10MB/24MB 45%]
20250117 120421.238 [main] INFO i.g.d.s.t.manager.TunerManager - Discovered [0] RSP devices from SDRplay API [11MB/24MB 48%]
20250117 120421.253 [main] INFO i.g.d.settings.SettingsManager - SettingsManager - loading settings file [C:\Users\NewAdmin\SDRTrunk\settings\settings.xml] [11MB/24MB 49%]
20250117 120421.508 [main] INFO i.g.d.m.DiagnosticMonitor - Diagnostic monitoring enabled running every 30 seconds [16MB/24MB 70%]
20250117 120422.010 [main] WARN i.g.d.vector.VectorUtilities - CPU supports maximum SIMD instructions of Species[float, 8, S_256_BIT] [9MB/24MB 41%]
20250117 120423.432 [main] INFO i.g.d.playlist.PlaylistManager - Loading playlist [C:\Users\NewAdmin\SDRTrunk\playlist\Memphis Police.xml] [15MB/24MB 65%]
20250117 120424.144 [main] INFO i.github.dsheirer.gui.SDRTrunk - starting main application gui [21MB/27MB 80%]
20250117 120432.261 [AWT-EventQueue-0] INFO i.g.d.c.c.ChannelAutoStartFrame - Starting [1] channels now - user invoked [31MB/44MB 72%]
20250117 120432.370 [AWT-EventQueue-0] INFO i.g.d.a.c.mbe.JmbeAudioModule - Loading JMBE library from [C:\Users\NewAdmin\SDRTrunk\jmbe\jmbe-1.0.9.jar] [35MB/44MB 80%]
20250117 120432.400 [AWT-EventQueue-0] INFO i.g.d.a.c.mbe.JmbeAudioModule - JMBE audio conversion library loaded: JMBE Audio Conversion Library v1.0.9 [36MB/44MB 81%]
20250117 120432.402 [AWT-EventQueue-0] INFO i.g.d.a.c.mbe.ImbeAudioModule - JMBE audio conversion library IMBE CODEC successfully loaded - P25-1 audio will be available [36MB/44MB 81%]
20250117 120432.450 [AWT-EventQueue-0] INFO i.g.d.d.f.c.ComplexPolyphaseChannelizerM2 - Sample Rate [2400000.0] providing [96] channels at [25000.0] Hz each [37MB/44MB 84%]
20250117 120436.389 [sdrtrunk channel [1/P25-1] 859937500 thread 1] INFO i.g.d.a.c.mbe.AmbeAudioModule - AMBE CODEC successfully loaded - P25-2/DMR/NXDN audio will be available [66MB/117MB 56%]

Desktop (optional - complete the following information):

  • OS: Windows 7
  • CPU Cores: 4
  • RAM: 4 GB

Additional context
Add any other context about the problem here.

@wsbush wsbush added the bug label Jan 17, 2025
@Randesign
Copy link

I just tried this and can't verify. I unplugged all but one tuner. Set my max traffic channels to 6 (and then tried 4) and tuned to a busy P25 site and I've been running for 30 minutes without issue. The only problem I'm seeing is that I don't have enough tuners to cover the spectrum needed to monitor this site. In both cases of setting max traffic channels to either 6 or 4, it's showing up to the max locked channels (+1 to include the control channel).

You can enable the call event logs by going to the bottom of the Channels tab in the playlist.

I can't duplicate your OS or memory. So you might also go under the File menu and select the reports.

I also just noticed you're looking at a phase 2 site. I don't have access to one of those.

@wsbush
Copy link
Author

wsbush commented Jan 18, 2025 via email

@Jim-88
Copy link

Jim-88 commented Jan 29, 2025

I'm new to SDRTrunk. So I don't know if this is related. I noticed in 0.61 final while monitoring a P25 P2 700Mhz system that SDRTrunk never uses more than 2 tuners (RTL-SDR) even though I have 3. The system is only 4 Mhz wide. So 2 tuners could cover the range of frequencies used, but one tuner always seems to take its half out of the middle. The second tuner seems to only get used occasionally and switches between high and low frequencies while the 3rd tuner is ignored unless I monitor a second system at the same time. So I know it works. The control frequency is in the middle of the range. Seems like there is an opportunity for some improvement in how the tuners are allocated.

@liquidmayo
Copy link

liquidmayo commented Jan 29, 2025 via email

@Randesign
Copy link

@liquidmayo It would be nice if you could provide more details, like an event log file for the county system having the issue.

Playlist Editor -> Channels -> Logging -> Traffic Channel Call Events and perhaps Call Events. You should be able to attach a log file to one of these "issue messages".

@Randesign
Copy link

@liquidmayo Is this also a phase 2 system?

@wsbush
Copy link
Author

wsbush commented Feb 3, 2025 via email

@Randesign
Copy link

@wsbush no logs came through. I think you can't attach files via email. You have to use the github website interface. In the lower left corner of the comment box it says "Paste, drop or click to add files".

@Randesign
Copy link

Your traffic channels are P25 phase 2.

I may have found the problem and it’s related to phase 2 traffic channels only. Since I can’t test and verify phase 2 without driving somewhere, I’ll just leave this here for @DSheirer to look at.

In P25TrafficChannelManager the following method definition looks incorrect (line 251):

private void createPhase2TrafficChannels(int trafficChannelPoolSize, DecodeConfiguration decodeConfiguration)

And should be:

private void createPhase2TrafficChannels(int trafficChannelPoolSize, DecodeConfigP25Phase2 decodeConfiguration)

@wsbush
Copy link
Author

wsbush commented Feb 4, 2025 via email

@Randesign
Copy link

Randesign commented Feb 9, 2025

@wsbush That wasn't it. I had an occasion to run an errand near a busy phase 2 system. I was able to verify this bug exists. The system had a fair number of TDMA data traffic as well as voice traffic, similar to the system in your log file. I only had about 15 minutes available so my testing wasn't thorough. I'll continue looking at the code, but I'll have to leave this to someone else who has better access to a phase 2 system. You might try switching "ignore data channels" to "on" to see if that changes things.

It starts off okay, but after a few minutes, on the tuner tab I saw up to 6 things being decoded at once (across 2 tuners, with max traffic channels set to 3) and eventually saw the Max Traffic Channels Exceeded errors on the Event tab.

@wsbush
Copy link
Author

wsbush commented Feb 9, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants