POST
|
Im trying the AppStudio 3.2 / Esri.ArcGISRuntime 100.4 on Windows 10 Im am using a PortalItem to download a tpk from an arcgis portal. Im not having any problem downloading it. However the progress reported during the download is always 100. Something seems to be wrong. I attach to onFetchDataProgressChanged this is the log that I get printing the fetchDataProgress object (First log) qml: {"objectName":"","objectType":"NetworkRequestProgress","error":null,"objects":{},"bytesReceived":"0","bytesReceivedAsInt":0,"bytesSent":"0","bytesSentAsInt":0,"estimatedFinishTime":null,"progressPercentage":0,"startTime":"2018-12-29T16:56:13.083Z","totalBytesToReceive":"0","totalBytesToReceiveAsInt":0,"totalBytesToSend":"0","totalBytesToSendAsInt":0} (Second log) qml: {"objectName":"","objectType":"NetworkRequestProgress","error":null,"objects":{},"bytesReceived":"83665","bytesReceivedAsInt":83665,"bytesSent":"0","bytesSentAsInt":0,"estimatedFinishTime":"2018-12-29T16:56:13.341Z","progressPercentage":100,"startTime":"2018-12-29T16:56:13.083Z","totalBytesToReceive":"0","totalBytesToReceiveAsInt":0,"totalBytesToSend":"0","totalBytesToSendAsInt":0} ...... ...... (N log) qml: {"objectName":"","objectType":"NetworkRequestProgress","error":null,"objects":{},"bytesReceived":"115543108","bytesReceivedAsInt":115543108,"bytesSent":"0","bytesSentAsInt":0,"estimatedFinishTime":"2018-12-29T16:57:27.207Z","progressPercentage":100,"startTime":"2018-12-29T16:56:13.083Z","totalBytesToReceive":"0","totalBytesToReceiveAsInt":0,"totalBytesToSend":"0","totalBytesToSendAsInt":0} In the second one, the percentage is already 100. Thanks in advance
... View more
01-03-2019
03:37 PM
|
0
|
1
|
435
|
POST
|
I attach to onFetchDataProgressChanged this is the log that I get (First log) qml: {"objectName":"","objectType":"NetworkRequestProgress","error":null,"objects":{},"bytesReceived":"0","bytesReceivedAsInt":0,"bytesSent":"0","bytesSentAsInt":0,"estimatedFinishTime":null,"progressPercentage":0,"startTime":"2018-12-29T16:56:13.083Z","totalBytesToReceive":"0","totalBytesToReceiveAsInt":0,"totalBytesToSend":"0","totalBytesToSendAsInt":0} (Second log) qml: {"objectName":"","objectType":"NetworkRequestProgress","error":null,"objects":{},"bytesReceived":"83665","bytesReceivedAsInt":83665,"bytesSent":"0","bytesSentAsInt":0,"estimatedFinishTime":"2018-12-29T16:56:13.341Z","progressPercentage":100,"startTime":"2018-12-29T16:56:13.083Z","totalBytesToReceive":"0","totalBytesToReceiveAsInt":0,"totalBytesToSend":"0","totalBytesToSendAsInt":0} ...... ...... (N log) qml: {"objectName":"","objectType":"NetworkRequestProgress","error":null,"objects":{},"bytesReceived":"115543108","bytesReceivedAsInt":115543108,"bytesSent":"0","bytesSentAsInt":0,"estimatedFinishTime":"2018-12-29T16:57:27.207Z","progressPercentage":100,"startTime":"2018-12-29T16:56:13.083Z","totalBytesToReceive":"0","totalBytesToReceiveAsInt":0,"totalBytesToSend":"0","totalBytesToSendAsInt":0} In the second one, the percentage is already 100.
... View more
12-29-2018
09:05 AM
|
0
|
0
|
558
|
POST
|
I have just tried it and yes, you have to specify the name and extension of the file. What I see when it starts downloading is that the progressPercentage is always 100. That seems to be wrong
... View more
12-29-2018
08:51 AM
|
0
|
1
|
558
|
POST
|
Thanks! Now is working! An other question related to the PortalItem object. Do I have to specify the whole path with the filename and tpk extension like .../Uruguay.tpk? Because I remember using the old Qt Sdk Runtime 10.2.6 and specifying just the folder name was enough. Thank in advance!
... View more
12-29-2018
08:08 AM
|
0
|
2
|
558
|
POST
|
Im trying the AppStudio 3.2 / Esri.ArcGISRuntime 100.4 on Windows 10. Im not being able to set the following path to a TileCache "C:/Users/rpintos.ICA/ArcGIS/AppStudio/Data/93c17bd6406d48b584aa96970e9b0aa2/Uruguay.tpk"
After the path is set, onPathChanged is executed but the property path doesnt change. -------------------- Something similar happens with a PortalItem object executing fetchData("C:/Users/rpintos.ICA/ArcGIS/AppStudio/Data/93c17bd6406d48b584aa96970e9b0aa2") I get the following error Error in portal item: File path must be specified to fetch data.() ------------------ I also noticed that in the last framework release they solve the following bug -BUG-000116279 Cannot create TileCache from a path on Linux when conf.xml file uses mixed case It just says on Linux, but what happen in Windows? I haven tried it on Android and on iOS neither.
... View more
12-23-2018
06:52 AM
|
0
|
4
|
780
|
POST
|
Hi Stephen, I have tested the application again, this time with scanMode = scanModeCapture. I took an image and I started decoding it repeatedly. The memory is still leaking. In my opinion, the problem is in the BarDecoder component which is not releasing the memory properly. In the AppStudioPlayer-BarCodeScanner.mp4. video I attached previously, you can see how "Scan QR Code" within AppStudio Player, has the same behaviour. In both videos , the upper leftmost part of the screen show the decrement of memory for each barcode scan. PD. I would suggest to make the following changes to survey123 ( in order to destroy "res" after grabToImage) videoOutput.grabToImage(function(res) { ....... res.destroy(); } );
and perhaps make the imageObject dynamic.
... View more
01-16-2017
08:08 AM
|
0
|
0
|
325
|
POST
|
I also test what you told me, I take only one Image, and try by decoding repeatedly and i got memory leaks so I think the problem is with the BarcodeDecoder controler when decoding
... View more
01-13-2017
10:20 AM
|
0
|
0
|
325
|
POST
|
With this function I have not more memory leak function scanGrab() { // THIS NO LEAKS MEMORY videoOutput.grabToImage(function(res) { //decodeGrab(res.image);// I comment this res.destroy(); } ); }
However I still having memory leak with this function scanGrab() { videoOutput.grabToImage(function(res) { decodeGrab(res.image); res.destroy(); } ); } decodeGrab was implemented like this function decodeGrab(image) { imageObject.image = image; imageObject.clip(captureFrame.x + 5, captureFrame.y + 5, captureFrame.width - 10, captureFrame.height - 10); var testColor = imageObject.pixel(imageObject.width >> 1, imageObject.height >> 1); if (Qt.colorEqual(testColor, "black")) { scanMode = scanModeCapture; scanCapture(); return; } barcodeDecoder.rotated = false; barcodeDecoder.decode(imageObject.url); } I tried by making imageObject dynamic in order to destroy it after it usage perhaps this was leaking memory, so after made some changes both functions function scanGrab() { videoOutput.grabToImage(function(res) { createImageObject();//create imageObject dinamically imageObject.image = res.image; decodeGrab() res.destroy(); } ); } //-------------------------------------------------------------------------- function decodeGrab() { imageObject.clip(captureFrame.x + 5, captureFrame.y + 5, captureFrame.width - 10, captureFrame.height - 10); var testColor = imageObject.pixel(imageObject.width >> 1, imageObject.height >> 1); /*if (Qt.colorEqual(testColor, "black")) { scanMode = scanModeCapture; scanCapture(); return; }*/ barcodeDecoder.rotated = false; barcodeDecoder.decode(imageObject.url); imageObject.destroy(); } But still leaking memory. Now i think it's barcodeDecoder.decode method. I hope all this can help you.
... View more
01-13-2017
10:11 AM
|
0
|
0
|
747
|
POST
|
function scanGrab() { //THIS LEAKS MEMORY videoOutput.grabToImage(function(res) { //decodeGrab(res.image);// I comment this } ); }
function scanGrab() { // THIS NO LEAKS MEMORY videoOutput.grabToImage(function(res) { //decodeGrab(res.image);// I comment this res.destroy(); } ); }
... View more
01-13-2017
07:14 AM
|
0
|
0
|
747
|
POST
|
After some test I found this function
function scanGrab() { videoOutput.grabToImage(function(res) { decodeGrab(res.image); } ); }
grabToImage what it does according qt documentation is "Grabs the item into an in-memory image".
I think this memory used is not beign released at all.
... View more
01-13-2017
06:58 AM
|
0
|
0
|
747
|
POST
|
Nakul, Without Map control I'm not having any memory issue after push/pop.
... View more
01-13-2017
06:03 AM
|
0
|
0
|
752
|
POST
|
Stephen, Device specifications of (LG G2 mini) Hardware CPU: Quad-core 1.2 GHz Cortex-A7 Memory: 8 GB, 1 GB RAM Software OS: Android 5.0.2 More about this device at LG G2 mini - Full phone specifications I 'm also having the same behaviour with this other device Device specifications of (LG G4) Hardware CPU: Hexa-core (4x1.4 GHz Cortex-A53 & 2x1.8 GHz Cortex-A57) Memory: 32 GB, 3 GB RAM Software OS: Android 6.0 More about this device at LG G4 - Full phone specifications I will try to follow those steps and I write back. Can u help me with this? AppStudio for ArcGIS / Map memory leaks Because in Survey123 this works fine. Looking at the code, of Survey123 template in appstudio I have a doubt about this: After searching for a .qml with Map controler in the code, to see the implementation, I found XFormGeopointControl.qml. Looking at the imports, those are the following: import QtQuick 2.5 import QtQuick.Controls 1.4 import QtQuick.Layouts 1.1 import QtLocation 5.3 import QtPositioning 5.3 import QtGraphicalEffects 1.0 import ArcGIS.AppFramework 1.0
import ArcGIS.AppFramework.Controls 1.0 import "XForm.js" as JS
But just with those imports I can not use the Map Controler. Am i missing something? Thank you.
... View more
01-13-2017
05:56 AM
|
0
|
0
|
747
|
POST
|
Stephen Quan If you solve this please let me know because I could use the solution in an applicaton that I'am developing Thank you.
... View more
01-12-2017
05:05 AM
|
0
|
6
|
747
|
POST
|
Stephen, How are you? The Survey123 version that I am trying is 1.10.23 and the AppFramework Versión is 1.3.41 Let me see if i can upload a video running in my android phone
... View more
01-12-2017
04:49 AM
|
0
|
0
|
747
|
POST
|
QuickReport running on windows 10 operative system machine NManocha-esristaff
... View more
01-11-2017
10:13 AM
|
0
|
4
|
752
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|