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

map is not loading in apm planner2.0 when using proxy #1197

Open
vishal-raj15 opened this issue Feb 21, 2020 · 30 comments
Open

map is not loading in apm planner2.0 when using proxy #1197

vishal-raj15 opened this issue Feb 21, 2020 · 30 comments

Comments

@vishal-raj15
Copy link

map is not loading and map files in flight planner not loading

@Arne-W
Copy link
Contributor

Arne-W commented Feb 21, 2020

Which version? Did you build from master? Which plattform? Linux? Macos?

@vishal-raj15
Copy link
Author

vishal-raj15 commented Feb 22, 2020 via email

@Arne-W
Copy link
Contributor

Arne-W commented Feb 24, 2020

@vishal-raj15 Try this DOWNLOAD
It is an AppImage of a current master build. On ubuntu an AppImage should work with a simple double click.
Known issue of this build: Flashing new firmwares does not work.

@vishal-raj15
Copy link
Author

@Arne-W thanks , but after running that .appimage it shows:

Screenshot from 2020-02-26 01-02-53

@Arne-W
Copy link
Contributor

Arne-W commented Feb 25, 2020

@vishal-raj15 Hmm this is strange.... However could you please change the map type using the options button on the left below the map window. Moreover you could check if there is an apmplanner2 folder in you home directory. I should contain some logfiles and a folder named mapscache which should contain a file called Data.qmdb. All this locations have to be writable. Take a look into the logfiles an check for anything strange.
You can also try deleting the APM Planner.ini file you will find in your home .config/ardupilot/

@vishal-raj15
Copy link
Author

@Arne-W i have changed the logfiles and mapchache to writable but yet its the same condition

@Arne-W
Copy link
Contributor

Arne-W commented Feb 26, 2020

Did you try to change the used map type?? Did you try to delete the APM Planner.ini file??

@vishal-raj15
Copy link
Author

vishal-raj15 commented Feb 26, 2020

@Arne-W yes but still

Screenshot from 2020-02-27 21-30-41

@Arne-W
Copy link
Contributor

Arne-W commented Feb 27, 2020

Ah all right - you have a problem with your network connection. See the error line in your log it says timeout when trying to fetch pdef.xml file. Moreover this is not the version I created as this version is 2.0.26.
I deleted the old appimage from my dropbox and created a new one for you. Here is the Link:
Download AppImage
There have been an update of some URLs. So you will have to use a newer version than 2.0.26

@vishal-raj15
Copy link
Author

@Arne-W i download this .appimage and then make it executable and after clicking on apm planner icon only black screnn appears(just showing loading tiles) , do i need to install some other files ?

@vishal-raj15
Copy link
Author

Screenshot from 2020-02-28 04-29-58

@Arne-W
Copy link
Contributor

Arne-W commented Feb 29, 2020

@vishal-raj15 It looks like you did not start the application from the AppImage. It should be possible to start that image without any installation - everything needed is contained in that package. Simply do a double click on the AppImage after you made it executable. If this does not work extract the image by using the --appimage-extract commandline option. It will create a folder named sqashfs-root. Change into that folder and then into usr/bin. There you will find an apmplanner2 binary you can start.
To check if you started the right version go to menubar -> Help -> Show debug console. At the bottom of the Debug Output window you will find a field called Commit it should contain this string: 2.0.27-rc1-33-g9d8c1c3.

@vishal-raj15
Copy link
Author

@Arne-W in that commit version is : 2.0.26-1-g05c4d11 , but i downloaded 2.0.27-rc1-33-g9d8c1c3. version appimage link given by you

@Arne-W
Copy link
Contributor

Arne-W commented Mar 1, 2020

@vishal-raj15 Sorry but you are still executing the wrong version. Your are using the installed version NOT the appImage version. Perhaps you should remove the installed version form your machine.
Try to use the AppImage file as I described above - just make the file executable and start it by double clicking or command line.

@vishal-raj15
Copy link
Author

@Arne-W now i changed that version to 2.0.27-rc1-33-g9d8c1c3 and made it and mapchache executable but only black image in place of map

@Arne-W
Copy link
Contributor

Arne-W commented Mar 1, 2020

@vishal-raj15 could you please post the logfile

@vishal-raj15
Copy link
Author

@Arne-W from where can i get that logfiles there is no option of logfiles in the apm planner's tabs

@Arne-W
Copy link
Contributor

Arne-W commented Mar 7, 2020

@vishal-raj15 in your home directoy the should be an apmplanner2 directory. Inside this directory you will find files called apmlog_xxxxxxx.txt this are the logfiles.

@vishal-raj15
Copy link
Author

vishal-raj15 commented Mar 8, 2020

@Arne-W i found two .txt files 20200302 and 20200301.txt below is apm_20200302.txt

@vishal-raj15
Copy link
Author


[20200302 22:22:11.720 INFO ] - QGCCore::initialize()
[20200302 22:22:11.720 INFO ] - Current Build Info
[20200302 22:22:11.720 INFO ] - Git Hash: 9d8c1c3
[20200302 22:22:11.720 INFO ] - Git Commit: 2.0.27-rc1-33-g9d8c1c3
[20200302 22:22:11.720 INFO ] - APPLICATION_NAME: "APM Planner"
[20200302 22:22:11.720 INFO ] - APPLICATION_VERSION: "v2.0.27-rc1"
[20200302 22:22:11.720 INFO ] - APP_PLATFORM: ubuntu64
[20200302 22:22:11.720 INFO ] - APP_TYPE: stable
[20200302 22:22:11.976 INFO ] - Start Link Manager
[20200302 22:22:11.976 DEBUG] - Create MAVLinkDecoder: MAVLinkDecoder(0x3136fa0)
[20200302 22:22:11.980 INFO ] - Start UAS Manager
[20200302 22:22:12.021 DEBUG] - Creating MainWindow
[20200302 22:22:12.250 INFO ] - Creating SubMainWindow: SubMainWindow(0x31943e0)
[20200302 22:22:12.251 INFO ] - setting objectName: "VIEW_MISSION"
[20200302 22:22:12.330 INFO ] - Creating SubMainWindow: SubMainWindow(0x32c6e20)
[20200302 22:22:12.330 INFO ] - setting objectName: "VIEW_FLIGHT"
[20200302 22:22:12.364 INFO ] - Creating SubMainWindow: SubMainWindow(0x333b600)
[20200302 22:22:12.364 INFO ] - setting objectName: "VIEW_HARDWARE_CONFIG"
[20200302 22:22:12.633 DEBUG] - fillPortsInfo
[20200302 22:22:12.935 INFO ] - Creating SubMainWindow: SubMainWindow(0x33b7460)
[20200302 22:22:12.935 INFO ] - setting objectName: "VIEW_SOFTWARE_CONFIG"
[20200302 22:22:12.952 DEBUG] - Disable Controls
[20200302 22:22:12.981 INFO ] - BasicPidConfig Class only supports ArduPilotMegaMAV vehicles.
[20200302 22:22:13.166 INFO ] - Creating SubMainWindow: SubMainWindow(0x4488b70)
[20200302 22:22:13.166 INFO ] - setting objectName: "VIEW_ENGINEER"
[20200302 22:22:13.176 INFO ] - Creating SubMainWindow: SubMainWindow(0x44eaaa0)
[20200302 22:22:13.176 INFO ] - setting objectName: "VIEW_SIMULATOR"
[20200302 22:22:13.224 DEBUG] - MODE: 0
[20200302 22:22:13.230 DEBUG] - "D|PREFLIGHT"
[20200302 22:22:13.230 DEBUG] - MODE: 80
[20200302 22:22:13.230 DEBUG] - "D|STABILIZED"
[20200302 22:22:13.230 DEBUG] - MODE: 64
[20200302 22:22:13.230 DEBUG] - "D|MANUAL"
[20200302 22:22:13.231 DEBUG] - MODE: 88
[20200302 22:22:13.231 DEBUG] - "D|VECTOR|STABILIZED"
[20200302 22:22:13.231 DEBUG] - MODE: 92
[20200302 22:22:13.231 DEBUG] - "D|AUTO|STABILIZED"
[20200302 22:22:13.232 DEBUG] - MODE: 66
[20200302 22:22:13.232 DEBUG] - "D|TEST"
[20200302 22:22:13.302 DEBUG] - QUrl("file:///home/vishal/.local/share/Trash/files/squashfs-root/usr/bin/qml/PrimaryFlightDisplayQML.qml")
[20200302 22:22:13.620 DEBUG] - QML Status: QQuickView::Ready
[20200302 22:22:13.623 DEBUG] - QUrl("file:///home/vishal/.local/share/Trash/files/squashfs-root/usr/bin/qml/PrimaryFlightDisplayQML.qml")
[20200302 22:22:13.644 DEBUG] - QML Status: QQuickView::Ready
[20200302 22:22:13.653 INFO ] - UASActionsWidget creating UASActionsWidget(0x492f530)
[20200302 22:22:13.656 DEBUG] - QuickView: load settings
[20200302 22:22:13.657 DEBUG] - QuickView: loading key: "GCS GPS.GPS Fix ()" type: "text"
[20200302 22:22:13.667 DEBUG] - QuickView: loading key: "GCS GPS.GPS HDOP ()" type: "text"
[20200302 22:22:13.668 DEBUG] - QuickView: loading key: "GCS GPS.GPS Sats (n)" type: "text"
[20200302 22:22:13.670 DEBUG] - QuickView: loading key: "GCS Metric.Alt MSL (m)" type: "text"
[20200302 22:22:13.672 DEBUG] - QuickView: loading key: "GCS Metric.Alt REL (m)" type: "text"
[20200302 22:22:13.674 DEBUG] - QuickView: loading key: "GCS Status.Battery (%)" type: "text"
[20200302 22:22:13.676 DEBUG] - QuickView: loading key: "GCS Status.Climb (m/s)" type: "text"
[20200302 22:22:13.678 DEBUG] - QuickView: loading key: "GCS Status.Current (A)" type: "text"
[20200302 22:22:13.680 DEBUG] - QuickView: loading key: "GCS Status.Pitch (deg)" type: "text"
[20200302 22:22:13.684 DEBUG] - QuickView: loading key: "GCS Status.Roll (deg)" type: "text"
[20200302 22:22:13.687 DEBUG] - QuickView: loading key: "GCS Status.Voltage (V)" type: "text"
[20200302 22:22:13.690 DEBUG] - QuickView: loading key: "GCS Status.Yaw (deg)" type: "text"
[20200302 22:22:13.696 DEBUG] - QuickView: load settings END
[20200302 22:22:13.751 INFO ] - Using Alsa Audio driver
[20200302 22:22:13.762 WARN ] - Dir directory tmp_audio exists
[20200302 22:22:13.766 DEBUG] - qmlBaseDir "/home/vishal/.local/share/Trash/files/squashfs-root/usr/bin"
[20200302 22:22:13.766 DEBUG] - QUrl("file:///home/vishal/.local/share/Trash/files/squashfs-root/usr/bin/qml/ApmToolBar.qml")
[20200302 22:22:13.920 DEBUG] - APMToolBar: button label SELECTED
[20200302 22:22:13.932 DEBUG] - QML Status: QQuickView::Ready
[20200302 22:22:13.933 DEBUG] - Setting for "USER_DONATED" : QVariant(QString, "false")
[20200302 22:22:13.934 DEBUG] - Set Advanced Mode false USER_DONATED:false
[20200302 22:22:13.934 DEBUG] - Donate visible
[20200302 22:22:13.935 INFO ] - NETWORK_PROXY: Disabling System Network Proxies
[20200302 22:22:13.940 DEBUG] - Loading widget: "PRIMARY_FLIGHT_DISPLAY_QML_DOCKWIDGET"
[20200302 22:22:13.941 DEBUG] - Loading widget: "UAS_INFO_INFOVIEW_DOCKWIDGET"
[20200302 22:22:14.032 WARN ] - qglx_findConfig: Failed to finding matching FBConfig (8 8 8 0)
[20200302 22:22:14.033 WARN ] - qglx_findConfig: Failed to finding matching FBConfig (1 8 8 0)
[20200302 22:22:14.033 WARN ] - qglx_findConfig: Failed to finding matching FBConfig (1 1 8 0)
[20200302 22:22:14.033 WARN ] - qglx_findConfig: Failed to finding matching FBConfig (1 1 1 0)
[20200302 22:22:14.034 WARN ] - qglx_findConfig: Failed to finding matching FBConfig (1 1 1 0)
[20200302 22:22:14.085 WARN ] - QSettings::endGroup: No matching beginGroup()
[20200302 22:22:14.125 DEBUG] - Create Serial Connection: SerialConnection(0x3b24a90)
[20200302 22:22:14.126 INFO ] - "No Devices" 115200
[20200302 22:22:14.244 DEBUG] - APMToolBar: new Serial Link Created 1
[20200302 22:22:14.245 DEBUG] - APMToolBar setConnection: false
[20200302 22:22:14.246 DEBUG] - APMToolBar: updateLinkDisplay "No Devices" : "115200" connected: false
[20200302 22:22:14.246 INFO ] - UDP Created "UDP Link (port:14550)"
[20200302 22:22:14.247 INFO ] - UDPLink::UDP connect QHostAddress(QHostAddress::Any) : 14550
[20200302 22:22:14.250 WARN ] - qglx_findConfig: Failed to finding matching FBConfig (8 8 8 0)
[20200302 22:22:14.250 WARN ] - qglx_findConfig: Failed to finding matching FBConfig (1 8 8 0)
[20200302 22:22:14.251 WARN ] - qglx_findConfig: Failed to finding matching FBConfig (1 1 8 0)
[20200302 22:22:14.251 WARN ] - qglx_findConfig: Failed to finding matching FBConfig (1 1 1 0)
[20200302 22:22:14.252 WARN ] - qglx_findConfig: Failed to finding matching FBConfig (1 1 1 0)
[20200302 22:22:14.599 DEBUG] - SCW: Link is disconnected
[20200302 22:22:14.617 INFO ] - No Ports Found ()
[20200302 22:22:14.618 DEBUG] - Baud rate: 115200 Expected: 4
[20200302 22:22:17.602 DEBUG] - APMToolBar: clear selected buttons
[20200302 22:22:17.603 DEBUG] - APMToolBar: FLIGHT DATA unselected
[20200302 22:22:17.604 DEBUG] - APMToolBar: FLIGHT DATA SELECTED
[20200302 22:22:18.839 DEBUG] - "retrieve versionobject from server: https://firmware.ardupilot.org/Tools/APMPlanner/apm_planner_version.json"
[20200302 22:22:21.987 DEBUG] - APMToolBar: clear selected buttons
[20200302 22:22:21.988 DEBUG] - APMToolBar: FLIGHT DATA unselected
[20200302 22:22:21.989 DEBUG] - APMToolBar: FLIGHT DATA SELECTED
[20200302 22:23:09.088 DEBUG] - APMToolBar: clear selected buttons
[20200302 22:23:09.089 DEBUG] - APMToolBar: FLIGHT DATA unselected
[20200302 22:23:09.089 DEBUG] - APMToolBar: FLIGHT DATA SELECTED
[20200302 22:23:09.381 DEBUG] - APMToolBar: clear selected buttons
[20200302 22:23:09.382 DEBUG] - APMToolBar: FLIGHT DATA unselected
[20200302 22:23:09.382 DEBUG] - APMToolBar: FLIGHT DATA SELECTED
[20200302 22:23:09.672 DEBUG] - APMToolBar: clear selected buttons
[20200302 22:23:09.673 DEBUG] - APMToolBar: FLIGHT DATA unselected
[20200302 22:23:09.674 DEBUG] - APMToolBar: FLIGHT DATA SELECTED
[20200302 22:23:14.815 ERROR] - ApmSoftwareConfig::apmParamNetworkReplyFinished() Unable to retrieve pdef.xml file! Error num: QNetworkReply::TimeoutError : "Socket operation timed out"
[20200302 22:23:17.493 DEBUG] - Setting for "USER_DONATED" : QVariant(QString, "false")
[20200302 22:23:17.494 DEBUG] - Set Advanced Mode true USER_DONATED:false
[20200302 22:23:17.494 DEBUG] - Donate visible
[20200302 22:23:19.813 DEBUG] - Downloading: 0 / 0
[20200302 22:23:19.814 DEBUG] - AutoUpdateCheck::httpFinished()
[20200302 22:28:34.935 DEBUG] - APMToolBar: GRAPHS SELECTED
[20200302 22:28:34.936 DEBUG] - APMToolBar: clear selected buttons
[20200302 22:28:34.937 DEBUG] - APMToolBar: FLIGHT DATA unselected
[20200302 22:28:34.937 DEBUG] - APMToolBar: GRAPHS unselected
[20200302 22:28:35.067 DEBUG] - APMToolBar: GRAPHS SELECTED
[20200304 10:29:43.576 DEBUG] - Delete Widget QMenuBar(0x31a6780, name="menuBar")
[20200304 10:29:43.578 DEBUG] - Delete Widget QStackedWidget(0x31d0f80)
[20200304 10:29:43.580 INFO ] - Closing SubMainWindow: SubMainWindow(0x44eaaa0, name="VIEW_SIMULATOR") "VIEW_SIMULATOR"
[20200304 10:29:43.697 INFO ] - Closing SubMainWindow: SubMainWindow(0x33b7460, name="VIEW_SOFTWARE_CONFIG") "VIEW_SOFTWARE_CONFIG"
[20200304 10:29:43.707 INFO ] - Closing SubMainWindow: SubMainWindow(0x333b600, name="VIEW_HARDWARE_CONFIG") "VIEW_HARDWARE_CONFIG"
[20200304 10:29:43.835 DEBUG] - Storing settings!
[20200304 10:29:43.838 INFO ] - Closing SubMainWindow: SubMainWindow(0x31943e0, name="VIEW_MISSION") "VIEW_MISSION"
[20200304 10:29:43.929 INFO ] - Closing SubMainWindow: SubMainWindow(0x32c6e20, name="VIEW_FLIGHT") "VIEW_FLIGHT"
[20200304 10:29:44.035 INFO ] - Closing SubMainWindow: SubMainWindow(0x4488b70, name="VIEW_ENGINEER") "VIEW_ENGINEER"
[20200304 10:29:44.038 DEBUG] - AP2DataPlot2D::~AP2DataPlot2D()
[20200304 10:29:44.157 DEBUG] - Delete Widget QGCStatusBar(0x31cec10, name="QGC_STATUSBAR")
[20200304 10:29:44.158 DEBUG] - Delete DockWidget QDockWidget(0x4c54360)
[20200304 10:29:44.159 DEBUG] - Destory APM Toolbar
[20200304 10:29:44.167 DEBUG] - Delete Widget CommConfigurationWindow(0x53021e0, name="commSettings")
[20200304 10:29:44.171 DEBUG] - Delete Widget CommConfigurationWindow(0x5342730, name="commSettings")
[20200304 10:29:44.177 DEBUG] - Destroy MAVLinkDecoder: MAVLinkDecoder(0x3136fa0)
[20200304 10:29:44.177 DEBUG] - save tlog dir to: "/home/vishal/apmplanner2/tlogs"
[20200304 10:29:44.275 INFO ] - ~GAudioOutput()

@Arne-W
Copy link
Contributor

Arne-W commented Mar 8, 2020

@vishal-raj15 Did you check you network connectivity? It looks like the ApmPlanner has no internet connection. Perhaps you have a problem with the permissions? The problem seems to be somehow related to you system setup.
Without internet connection you won't have any map.

@vishal-raj15
Copy link
Author

@Arne-W i can't find how to connect , when ever i click to connect icon in
apm planner software on top right it says error opening port no such file

@Arne-W
Copy link
Contributor

Arne-W commented Mar 8, 2020

The connect icon is used to connect to an UAV.
Does your computer have a working intenet connection?
Please enter ping google.com in a shell window and post the result.

@vishal-raj15
Copy link
Author

@Arne-W , yes!

vishal@vishal-pc  ~  ping google.com
PING google.com (172.217.166.14) 56(84) bytes of data.
64 bytes from del03s17-in-f14.1e100.net (172.217.166.14): icmp_seq=1 ttl=54 time=22.8 ms
64 bytes from del03s17-in-f14.1e100.net (172.217.166.14): icmp_seq=2 ttl=54 time=25.8 ms
64 bytes from del03s17-in-f14.1e100.net (172.217.166.14): icmp_seq=3 ttl=54 time=25.3 ms
64 bytes from del03s17-in-f14.1e100.net (172.217.166.14): icmp_seq=4 ttl=54 time=27.6 ms
64 bytes from del03s17-in-f14.1e100.net (172.217.166.14): icmp_seq=5 ttl=54 time=26.7 ms
64 bytes from del03s17-in-f14.1e100.net (172.217.166.14): icmp_seq=6 ttl=54 time=27.3 ms
64 bytes from del03s17-in-f14.1e100.net (172.217.166.14): icmp_seq=7 ttl=54 time=27.9 ms
64 bytes from del03s17-in-f14.1e100.net (172.217.166.14): icmp_seq=8 ttl=54 time=32.5 ms

@Arne-W
Copy link
Contributor

Arne-W commented Mar 11, 2020

@vishal-raj15 okay I have no Idea whats going on - nobody (I know) has this problem. Last test from my side please send me the output of ifconfig and of route

@vishal-raj15
Copy link
Author

vishal-raj15 commented Mar 12, 2020

@Arne-W

enp2s0f1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 98:28:a6:0e:d1:4f txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 8535 bytes 768089 (768.0 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8535 bytes 768089 (768.0 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.8.9.38 netmask 255.255.0.0 broadcast 10.8.255.255
inet6 fe80::7842:e686:74cf:8695 prefixlen 64 scopeid 0x20
ether 70:c9:4e:8f:6e:61 txqueuelen 1000 (Ethernet)
RX packets 7439645 bytes 1387573181 (1.3 GB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 320562 bytes 46543208 (46.5 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

@vishal-raj15
Copy link
Author

vishal-raj15 commented Mar 12, 2020

@Arne-W

vishal@vishal-pc  ~  route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default gateway.iitmand 0.0.0.0 UG 20600 0 0 wlp3s0
10.8.0.0 0.0.0.0 255.255.0.0 U 600 0 0 wlp3s0
link-local 0.0.0.0 255.255.0.0 U 1000 0 0 wlp3s0

@vishal-raj15
Copy link
Author

@Arne-W apm planner works on linux without proxy , but not with proxy

@Arne-W
Copy link
Contributor

Arne-W commented Mar 30, 2020

@vishal-raj15 Nice to hear you found it. I never tried using the planner with a proxy. I will try to figure out what goes wrong in that case.
Thank you for informing us!

@Arne-W Arne-W changed the title map is not loading in apm planner2.0 map is not loading in apm planner2.0 when using proxy Jan 30, 2021
@kvlahromei
Copy link

Same for Windows platform. it ignores system proxy and struggles to fetch map tiles.

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

No branches or pull requests

3 participants