UPnP Router Control crashing late after start app

Bug #2048094 reported by MaSo_CZ
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gupnp
Fix Released
Unknown
UPnP Router Control
New
Undecided
Unassigned

Bug Description

UPnP Router Control crashing late after start app (after any seconds - any minutes)

Ubuntu 22.04

snap-id: 34ey5zTDDGpV5MLHI1xc4GA9LOKW72WT
tracking: latest/stable
installed: 0.3.3 (55) 409kB -

my IPs changed to -> "---"

Gtk-Message: 17:47:18.682: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
* Initializing GUI...
* Showing GUI...
* Starting UPnP Resource discovery... lo: host IP 127.0.0.1 network 127.0.0.0
* Starting UPnP Resource discovery... wlp2s0: host IP --- network MaSo
* Starting UPnP Resource discovery... virbr0: host IP 192.168.122.1 network 192.168.122.0

(upnp-router-control:42995): gupnp-control-point-WARNING **: 17:47:19.323: Invalid USN: UUID:F5181284-2E9C-4DE2-8262-95CDD1551B84::upnp:rootdevice

(upnp-router-control:42995): gupnp-control-point-WARNING **: 17:47:19.324: Invalid USN: UUID:F5181284-2E9C-4DE2-8262-95CDD1551B84::upnp:rootdevice

(upnp-router-control:42995): gupnp-control-point-WARNING **: 17:47:19.324: Invalid USN: UUID:F5181284-2E9C-4DE2-8262-95CDD1551B84::upnp:rootdevice
Entity: line 1: parser error : Start tag expected, '<' not found
status=ok
^

(upnp-router-control:42995): gupnp-control-point-WARNING **: 17:47:19.464: No 'root' element found in description document 'http://---:9080'. Ignoring device 'uuid:LGTV20186=61012486984'

==> Device Available: TV UM7600PLB obývák
==> Device Available: TV UM7600PLB obývák
==> Device Available: MiWiFi router
*** Selected IGD compliant device
UPnP descriptor: http://---:5351/rootDesc.xml
Request for WAN link properties... successful
WAN link properties: access_type=Cable, link_status=Up, max_up=4194304, max_down=8388608
Request for external IP address... successful [---]
Request for connection status info... successful
Connection info: Status: Connected, Uptime: 123532 sec.
Request for NAT and RSIP availability... successful [RSIP=no, NAT=yes]
==> Getting mapped ports list...
==> Device Available: TV Moni LG UK6950PLB
==> Device Available: TV Moni LG UK6950PLB
Entity: line 1: parser error : Start tag expected, '<' not found
status=ok
^

(upnp-router-control:42995): gupnp-control-point-WARNING **: 17:47:20.523: No 'root' element found in description document 'http://---:9080'. Ignoring device 'uuid:LGTV20193=31013968815'

==> Device Available: TV UM7600PLB obývák
==> Device Available: TV Moni LG UK6950PLB
==> Device Available: TV Moni LG UK6950PLB
Event: Connection status: Connected
Event: External IP: ---
Event: Ports mapped: 0
==> Getting mapped ports list...
==> Device Available: [TV]UE40D5500
==> Device Available: [TV]UE40D5500
==> Device Available: TV UM7600PLB obývák
**
gupnp-control-point:ERROR:../src/libgupnp/gupnp-control-point.c:595:got_description_url: code should not be reached
Bail out! gupnp-control-point:ERROR:../src/libgupnp/gupnp-control-point.c:595:got_description_url: code should not be reached
Neúspěšně ukončen (SIGABRT) (core dumped [obraz paměti uložen])

MaSo_CZ (mzettik)
description: updated
Revision history for this message
Daniele Napolitano (dnax88) wrote :

There seems to be two problems here: the completely malformed UPnP descriptor and/or poor error handling of this type within the gupnp library.

Once connected to the router, can you identify the IP address of it? With that you can try browsing to http://<ip-address>:5351/rootDesc.xml and attach here the XML source.

Regards,
Daniele

Revision history for this message
MaSo_CZ (mzettik) wrote :

rootDesc.xml added

Changed in gupnp:
importance: Undecided → Unknown
status: New → Unknown
Changed in gupnp:
status: Unknown → New
Revision history for this message
Daniele Napolitano (dnax88) wrote :

Hi, I finally fixed the snap build of the version 0.3.4. Could you try updating the app and test again?

Revision history for this message
MaSo_CZ (mzettik) wrote :

Great, thank you.
I tried the update and it doesn't seem to crash anymore.
It runs for over 2 hours and holds.
It just shows some warning, but apparently it's not related to this.

I expected that the application could display more things on the router and possibly set some issues :-)

Anyway, I uncovered some mysterious communication of one phone with this app. It just could show more details about the end device (which is connected to the router) (only shows IP and ports)

On this app is "Add" and "Remove" port forwarding. Missing "Edit" selected entry.

If there are any mistakes, I'm sorry, I'm using Google Translate :-))

Thank you :-)
Marek Zettík, Czechia

(upnp-router-control:402923): gupnp-control-point-WARNING **: 19:06:36.438: Invalid USN: UUID:F5181284-2E9C-4DE2-8262-95CDD1551B84::upnp:rootdevice

(upnp-router-control:402923): gupnp-control-point-WARNING **: 19:06:36.439: Invalid USN: UUID:F5181284-2E9C-4DE2-8262-95CDD1551B84::upnp:rootdevice

(upnp-router-control:402923): gupnp-control-point-WARNING **: 19:06:36.440: Invalid USN: UUID:F5181284-2E9C-4DE2-8262-95CDD1551B84::upnp:rootdevice
==> Device available: MiWiFi router [urn:schemas-upnp-org:device:InternetGatewayDevice:1]
*** Selected IGD compliant device
UPnP descriptor: http://10.85.0.231:5351/rootDesc.xml
Request for WAN link properties... successful
WAN link properties: access_type=Cable, link_status=Up, max_up=4194304, max_down=8388608
Request for external IP address... successful [ext IP]
Request for connection status info... successful
Connection info: Status: Connected, Uptime: 61570 sec.
Request for NAT and RSIP availability... successful [RSIP=no, NAT=yes]
==> Getting mapped ports list...
 * HyperTorrent 3.0.8 [enabled]
   local 10.85.0.19:48974 ext *:48974 [TCP]
 * HyperTorrent 3.0.8 [enabled]
   local 10.85.0.19:48974 ext *:48974 [UDP]
Event: Connection status: Connected
Event: External IP: [ext IP]
Event: Ports mapped: 2
==> Getting mapped ports list...
 * HyperTorrent 3.0.8 [enabled]
   local 10.85.0.19:48974 ext *:48974 [TCP]
 * HyperTorrent 3.0.8 [enabled]
   local 10.85.0.19:48974 ext *:48974 [UDP]
==> Device available: TV UM7600PLB obývák [urn:lge:device:tv:1]
==> Device available: TV UM7600PLB obývák [urn:dial-multiscreen-org:service:dial:1]
==> Device available: TV UM7600PLB obývák [urn:schemas-upnp-org:device:Basic:1]
==> Device available: TV UM7600PLB obývák [urn:schemas-upnp-org:device:MediaRenderer:1]
==> Device available: [TV]UE40D5500 [urn:schemas-upnp-org:device:MediaRenderer:1]
==> Device available: [TV]UE40D5500 [urn:samsung.com:device:RemoteControlReceiver:1]

Changed in gupnp:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.