-
Trying to compile android yields this error on April 28, 2019 at 00:53
:compileDebugAidl FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ‘:compileDebugAidl’.
> java.lang.RuntimeException: com.android.ide.common.process.ProcessException: Error while executing process C:\Users\Monckey100\AppData\Local\Android\Sdk\build-tools\29.0.0-rc2\aidl.exe with arguments {-pC:\Users\Monckey100\AppData\Local\Android\Sdk\platforms\android-18\framework.aidl -oH:\Users\Monckey100\Documents\build-BlackBox-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_Android_armv7_Felgo_5d7316-Release\android-build\build\generated\source\aidl\debug -IF:\Felgo\Felgo\android_armv7\src\android\java\src -IH:\Users\Monckey100\Documents\build-BlackBox-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_Android_armv7_Felgo_5d7316-Release\android-build\src -IH:\Users\Monckey100\Documents\build-BlackBox-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_Android_armv7_Felgo_5d7316-Release\android-build\aidl -IH:\Users\Monckey100\Documents\build-BlackBox-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_1_Android_armv7_Felgo_5d7316-Release\android-build\src\debug\aidl -IC:\Users\Monckey100\.android\build-cache\a8b7c6f31359cee40f310c23b673158710ef67d1\output\aidl -IC:\Users\Monckey100\.android\build-cache\d416a14af5104b66fc43531b7308c6530687ca0a\output\aidl -IC:\Users\Monckey100\.android\build-cache\6975c749f49aee432a9fdd291900cb5940dcb023\output\aidl -IC:\Users\Monckey100\.android\build-cache\97c2428d17be0ca10f8c49f35a9ef025e73c03f7\output\aidl -IC:\Users\Monckey100\.android\build-cache\c12deef1f684ad0f9e6aef8e068bf5f49df3aa10\output\aidl -IC:\Users\Monckey100\.android\build-cache\4ff737a8adacae21da93935befad73a5bb641884\output\aidl -IC:\Users\Monckey100\.android\build-cache\ec9c67cf05ac8b14c9e56e15de964117b7eb0e82\output\aidl -IC:\Users\Monckey100\.android\build-cache\10299d8e337e06f8c1322e819e73bc0e75f40b35\output\aidl -IC:\Users\Monckey100\.android\build-cache\b7a792474612f73ba170074c127107578ce1fe09\output\aidl -IC:\Users\Monckey100\.android\build-cache\f156b312311fd5a9d0ba7ecddd43f7141cc1e76e\output\aidl -IC:\Users\Monckey100\.android\build-cache\5acef5c30d3b12ba9164468221e80f167b5e3016\output\aidl -IC:\Users\Monckey100\.android\build-cache\6ced5c4d297925961d7d7f27918fcc8ed1e5edbd\output\aidl -IC:\Users\Monckey100\.android\build-cache\f6bf5b14cc7b44ec0e10f3f3981729d11be92532\output\aidl -IC:\Users\Monckey100\.android\build-cache\c197a6d0eb7a87a5519f5d356b2721885f47bc8b\output\aidl -IC:\Users\Monckey100\.android\build-cache\f46c33c621fe480420f4df1f9f79fc1614631fd8\output\aidl -IC:\Users\Monckey100\.android\build-cache\15bc2890ffc978907d22aa9982b5dc7b3719911d\output\aidl -IC:\Users\Monckey100\.android\build-cache\2345d110a1a423f38f4c7908100c290e38b48039\output\aidl -IC:\Users\Monckey100\.android\build-cache\0429850eae6c1a0bda60b027d8de47430c9ef72f\output\aidl -IC:\Users\Monckey100\.android\build-cache\ef3bc05cc24cb3b5be0faeecbf2ef22b6ed47329\output\aidl -IC:\Users\Monckey100\.android\build-cache\824e936ddf9a38825fc126a55642e0b8220897b9\output\aidl -dC:\Users\MONCKE~1\AppData\Local\Temp\aidl1673710116685293563.d F:\Felgo\Felgo\android_armv7\src\android\java\src\org\kde\necessitas\ministro\IMinistro.aidl}
* Try:
Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output.
Tried to compile with playground app and got the same error. I am using android-ndk-r14 and I’ve tried reinstalling completely to no avail. I think something about android studio and felgo is out of “sync”. I am not sure what android SDK version I am supposed to be using so I just have the most recent installed.
my SDK looks like this
Now I cannot compile to Android at all.
Compile android whit error on April 9, 2019 at 07:02
I tried to compile my app on Android bat not worked,while in normal mode worked.
06:58:22: Running steps for project ClientPaolo1... 06:58:22: Configuration unchanged, skipping qmake step. 06:58:22: Starting: "D:\android-ndk-r17c\prebuilt\windows-x86_64\bin\make.exe" make: Nothing to be done for `first'. 06:58:23: The process "D:\android-ndk-r17c\prebuilt\windows-x86_64\bin\make.exe" exited normally. 06:58:23: Removing directory D:\GoogleDrive\c++\QT\build-ClientPaolo1-Android_for_x86_GCC_4_9_Qt_5_11_1_Android_x86_Felgo-Debug\android-build/assets 06:58:24: Removing directory D:\GoogleDrive\c++\QT\build-ClientPaolo1-Android_for_x86_GCC_4_9_Qt_5_11_1_Android_x86_Felgo-Debug\android-build/libs 06:58:24: Starting: "D:\android-ndk-r17c\prebuilt\windows-x86_64\bin\make.exe" "INSTALL_ROOT=D:\GoogleDrive\c++\QT\build-ClientPaolo1-Android_for_x86_GCC_4_9_Qt_5_11_1_Android_x86_Felgo-Debug\android-build" install D:\GoogleDrive\c++\QT\FelgoCasa\Felgo\android_x86\bin\qmake.exe -install qinstall D:\GoogleDrive\c++\QT\ClientPaolo1\qml D:\GoogleDrive\c++\QT\build-ClientPaolo1-Android_for_x86_GCC_4_9_Qt_5_11_1_Android_x86_Felgo-Debug\android-build\assets\qml D:\GoogleDrive\c++\QT\FelgoCasa\Felgo\android_x86\bin\qmake.exe -install qinstall D:\GoogleDrive\c++\QT\ClientPaolo1\assets D:\GoogleDrive\c++\QT\build-ClientPaolo1-Android_for_x86_GCC_4_9_Qt_5_11_1_Android_x86_Felgo-Debug\android-build\assets\assets D:\GoogleDrive\c++\QT\FelgoCasa\Felgo\android_x86\bin\qmake.exe -install qinstall -exe libClientPaolo1.so D:\GoogleDrive\c++\QT\build-ClientPaolo1-Android_for_x86_GCC_4_9_Qt_5_11_1_Android_x86_Felgo-Debug\android-build\libs\x86\libClientPaolo1.so 06:58:25: The process "D:\android-ndk-r17c\prebuilt\windows-x86_64\bin\make.exe" exited normally. 06:58:25: Starting: "D:\GoogleDrive\c++\QT\FelgoCasa\Felgo\android_x86\bin\androiddeployqt.exe" --input D:/GoogleDrive/c++/QT/build-ClientPaolo1-Android_for_x86_GCC_4_9_Qt_5_11_1_Android_x86_Felgo-Debug/android-libClientPaolo1.so-deployment-settings.json --output D:/GoogleDrive/c++/QT/build-ClientPaolo1-Android_for_x86_GCC_4_9_Qt_5_11_1_Android_x86_Felgo-Debug/android-build --android-platform android-28 --jdk "C:/Program Files/Java/jdk1.8.0_201" --gradle Generating Android Package Input file: D:/GoogleDrive/c++/QT/build-ClientPaolo1-Android_for_x86_GCC_4_9_Qt_5_11_1_Android_x86_Felgo-Debug/android-libClientPaolo1.so-deployment-settings.json Output directory: D:/GoogleDrive/c++/QT/build-ClientPaolo1-Android_for_x86_GCC_4_9_Qt_5_11_1_Android_x86_Felgo-Debug/android-build/ Application binary: D:/GoogleDrive/c++/QT/build-ClientPaolo1-Android_for_x86_GCC_4_9_Qt_5_11_1_Android_x86_Felgo-Debug/libClientPaolo1.so Android build platform: android-28 Install to device: No -- Skipping D:/GoogleDrive/c++/QT/FelgoCasa/Felgo/android_x86/plugins/iconengines/libqsvgicon.so. It has unmet dependencies: lib/libQt5Svg.so. -- Skipping D:/GoogleDrive/c++/QT/FelgoCasa/Felgo/android_x86/plugins/imageformats/libqsvg.so. It has unmet dependencies: lib/libQt5Svg.so. -- Skipping D:/GoogleDrive/c++/QT/FelgoCasa/Felgo/android_x86/plugins/position/libqtposition_serialnmea.so. It has unmet dependencies: lib/libQt5SerialPort.so. To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/3.4/userguide/gradle_daemon.html. Daemon will be stopped at the end of the build stopping after processing NDK is missing a "platforms" directory. If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to C:\Users\Paolo\AppData\Local\Android\Sdk\ndk-bundle. If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning. :preBuild UP-TO-DATE :preDebugBuild UP-TO-DATE :checkDebugManifest :preReleaseBuild UP-TO-DATE :prepareAndroidArchCoreRuntime110Library :prepareAndroidArchLifecycleLivedataCore110Library :prepareAndroidArchLifecycleRuntime110Library :prepareAndroidArchLifecycleViewmodel110Library :prepareComAndroidSupportAnimatedVectorDrawable2710Library :prepareComAndroidSupportAppcompatV72710Library :prepareComAndroidSupportSupportCompat2710Library :prepareComAndroidSupportSupportCoreUi2710Library :prepareComAndroidSupportSupportCoreUtils2710Library :prepareComAndroidSupportSupportFragment2710Library :prepareComAndroidSupportSupportVectorDrawable2710Library :prepareDebugDependencies :compileDebugAidl FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileDebugAidl'. > java.lang.RuntimeException: com.android.ide.common.process.ProcessException: Error while executing process C:\Users\Paolo\AppData\Local\Android\Sdk\build-tools\29.0.0-rc2\aidl.exe with arguments {-pC:\Users\Paolo\AppData\Local\Android\Sdk\platforms\android-28\framework.aidl -oD:\GoogleDrive\c++\QT\build-ClientPaolo1-Android_for_x86_GCC_4_9_Qt_5_11_1_Android_x86_Felgo-Debug\android-build\build\generated\source\aidl\debug -ID:\GoogleDrive\c++\QT\FelgoCasa\Felgo\android_x86\src\android\java\src -ID:\GoogleDrive\c++\QT\build-ClientPaolo1-Android_for_x86_GCC_4_9_Qt_5_11_1_Android_x86_Felgo-Debug\android-build\src -ID:\GoogleDrive\c++\QT\build-ClientPaolo1-Android_for_x86_GCC_4_9_Qt_5_11_1_Android_x86_Felgo-Debug\android-build\aidl -ID:\GoogleDrive\c++\QT\build-ClientPaolo1-Android_for_x86_GCC_4_9_Qt_5_11_1_Android_x86_Felgo-Debug\android-build\src\debug\aidl -IC:\Users\Paolo\.android\build-cache\50f1b3f383f1f06bb25fe8034ba4dfccb9d79435\output\aidl -IC:\Users\Paolo\.android\build-cache\ad306bea58000f3da5f5e1b35934dc5a4839380c\output\aidl -IC:\Users\Paolo\.android\build-cache\3baa50309239d6d46b3e6e4fc740db3fa7d013b0\output\aidl -IC:\Users\Paolo\.android\build-cache\398551f01848776261cd09c0af5bc58397794251\output\aidl -IC:\Users\Paolo\.android\build-cache\3d8a083708d0ab5fc49dab61c16f2d40fef93518\output\aidl -IC:\Users\Paolo\.android\build-cache\eb4cc7d5f77742b206aaa0d601da690165705f70\output\aidl -IC:\Users\Paolo\.android\build-cache\5ecb1cef35d2d947c1962006f48b40e5716b3e14\output\aidl -IC:\Users\Paolo\.android\build-cache\e693bf3c6b41d3d4b818298b87f15ad568624449\output\aidl -IC:\Users\Paolo\.android\build-cache\1ef82f5d800a98460549c913db52354f097448fa\output\aidl -IC:\Users\Paolo\.android\build-cache\6f22bfde2261382769275bd960ac2a51b910bda2\output\aidl -IC:\Users\Paolo\.android\build-cache\33d2bd1b012ce823324e9f1cdc36a675b1cfc9c3\output\aidl -dC:\Users\Paolo\AppData\Local\Temp\aidl1338188229430577005.d D:\GoogleDrive\c++\QT\FelgoCasa\Felgo\android_x86\src\android\java\src\org\kde\necessitas\ministro\IMinistro.aidl} * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 9.475 secs Warning: QML import could not be resolved in any of the import paths: com.yourcompany.wizardEVAP Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Material.impl Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.impl Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Fusion.impl Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Imagine.impl Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Universal.impl Building the android package failed! -- For more information, run this command with --verbose. 06:58:46: The process "D:\GoogleDrive\c++\QT\FelgoCasa\Felgo\android_x86\bin\androiddeployqt.exe" exited with code 14. Error while building/deploying project ClientPaolo1 (kit: Android for x86 (GCC 4.9, Qt 5.11.1 Android x86 Felgo)) When executing step "Build Android APK" 06:58:46: Elapsed time: 00:24.
Need help with CustomComboBox and setting dynamic model on March 23, 2019 at 02:30
I want to populate a combobox from SQLite, i took the example from https://felgo.com/doc/qt/qml-qtquick-controls2-combobox/ and https://felgo.com/doc/felgo-appdemos-showcase-qml-controls-customcombobox-qml/ and combined them into one, and have no clue as to how to populate the text control:
The Code
import Felgo 3.0 import QtQuick 2.5 import QtQuick.Controls 2.0 as Quick2 Quick2.ComboBox { id: comboBox implicitWidth: dp(90) + 20 implicitHeight: dp(24) + topPadding + bottomPadding padding: dp(12) editable: true model: ListModel { id: model } onAccepted: { if (find(editText) === -1) model.append({text: editText}) } // overwrite style for density independent sizes delegate: Quick2.ItemDelegate { width: comboBox.implicitWidth height: comboBox.implicitHeight padding: dp(12) contentItem: AppText { text: modelData color: highlighted ? Theme.tintColor : Theme.textColor wrapMode: Text.NoWrap } highlighted: comboBox.highlightedIndex == index } contentItem: AppText { leftPadding: 4 text: comboBox.displayText width: comboBox.width - comboBox.indicator.width - comboBox.spacing wrapMode: Text.NoWrap } }
The Database.js:
function dbInit() { // Create the database if it doesn't already exist var db = LocalStorage.openDatabaseSync("MyDatabase", "1.0", "MyDatabase", 1000000); try { db.transaction(function (tx) { tx.executeSql('CREATE TABLE IF NOT EXISTS test ([rowid] INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,Name TEXT,Description TEXT)'); }) } catch (err) { console.log("Error creating table in database: " + err); }; } function dbGetHandle() { try { var db = LocalStorage.openDatabaseSync("MyDatabase", "1.0", "MyDatabase", 1000000) } catch (err) { console.log("Error opening database: " + err) } return db } function dbInsert(Name,Description) { var db = dbGetHandle() var rowid = 0; db.transaction(function (tx) { tx.executeSql('INSERT INTO test (Name,Description) VALUES(?, ?)', [Name,Description]) var result = tx.executeSql('SELECT last_insert_rowid()') rowid = result.insertId }) return rowid; } function dbReadAll() { var db = dbGetHandle() db.transaction(function (tx) { var results = tx.executeSql( 'SELECT rowid,Name,Description FROM test order by rowid desc') for (var i = 0; i < results.rows.length; i++) { console.debug("id=" + results.rows.item(i).rowid + " Name: " + results.rows.item(i).Name) comboBoxDbQueries.model.append({ id: results.rows.item(i).rowid, Name: results.rows.item(i).Name, Description: results.rows.item(i).Description }) } // end for }) }
This is the part I am having issues with:
contentItem: AppText {
text: modelData
without passing in a model modelData is undefined, if I pass it model, which is the id for the LIstModel, I get the error:
Unable to assign QQmlDMAbstractItemModelData to QString
I would have though it was model.data(index, role) not sure what role is, passing it 0 does not work, nor does model.get(index)
text: model.get(index).attributes.get(1).value
I get this error:
TypeError: Property ‘get’ of object QQmlDMAbstractItemModelData(0x55555677d1c0) is not a function
I was thinking that I want Name=1, Description=2, and ID is 0, but I can not even use the get function; seems like this is model.get(index).Name, does not work either.
This totally confuses me since I can
comboBoxDbQueries.model.append({
use the the append function, I did check the database and 3 records are there, and I can see 3 blanks in the drop down, just no text.
If there is a better way of doing this that works, please let me know, I have used this CustomComboBox, with list with no problem, but I have no idea how to append data to it in javascript without adding a ListModel.
I thought about adding:
could not figure out how to assign it to the comboBox as a model.
ListModel { id: listModel Component.onCompleted: { Db.dbInit(); Db.dbReadAll() comboBoxDbQueries.model = listModel; } }
I get the error:
ReferenceError: modelData is not defined in the CustomComboBox, and I have no idea where that reference comes from, I know its past as a <i>modelData</i> role, yet I can not assign the model this way, I also tried:
CustomComboBox { id: comboBoxDbQueries model: listModel }
I know the answer is simple, I just do not see it.
Update: I did figure out why the drop down was not populating, if I changed modelData to Name it works, a hack, but the display does not work with: comboBox.displayText, its blank, how do I fix that, it does not get updated?
Project zipped
http://trinaryuniversity.org/temp/ComboBox.zip
A Hack works:
CustomComboBox { id: comboBoxDbQueries implicitWidth: dp(242) + 30 onCurrentIndexChanged: { comboBoxDbQueries.displayText = listModel.get(comboBoxDbQueries.currentIndex).Name; } }
Getting closer; this is a version I used an onCurrentIndexChanged to update the displayText
Does anyone have any idea how to get this to work, this is the key to making this not a hack, I need the runtime value for element 0=id or 1=Name, I guess, it crashes, so I have no clue, reflection is not working the way I think it should:
listModel.get(comboBoxDbQueries.currentIndex).attributes.get(1).value
I had to hard code the database column name, which is why I call it a hack, besides having to fix the current index, my guess is that I did not set this up correctly, so it’s a hack.
http://trinaryuniversity.org/temp/ComboBoxHack.zip
How can I do this the right way?
Thanks for any help, I am stuck.
\"VPlayLiveServer.exe has stopped working\" on September 11, 2018 at 01:59
More often than not, when I open project I get a screen that says “VPlayLiveServer.exe has stopped working” as soon as the project opens.
These show up when I click show details
Problem signature:
Problem Event Name: APPCRASH
Application Name: VPlayLiveServer.exe
Application Version: 0.0.0.0
Application Timestamp: 5b6b11c8
Fault Module Name: Qt5Qml.dll
Fault Module Version: 5.11.1.0
Fault Module Timestamp: 5b23db58
Exception Code: c0000005
Exception Offset: 0010dbc0
OS Version: 6.1.7601.2.1.0.768.3
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789I am on in a Windows 7 machine. The firewall exception is set, and maintenance tool says its up to date. I’ve got the LiveServer to work maybe 3 or so times so far linking both my desktop and android device up. But for some reason it doesn’t work a majority of the time.
Ubuntu 16.04 Installation Failed – Could Not Download Archive on June 3, 2018 at 04:49
Hello,
Thank you for what seems like a very nice cross-platforming tool and I am eager to try it out.By the way, I tried to install the SDK for about 10 times and it always fails at about 4%. I am attaching screenshots for your perusal.
I also tried with my native Qt 5.10.1 Maintenance Tool but it failed there as well. The error there was even more explicit. Apparently those two repositories shown in the attached image do not actually exist and/or they are empty.
Thank you for taking a look at this. My system is :Ubuntu 16.04 LTS
<b>Qt Creator 4.5.1</b>
<div></div>
<div>Based on Qt 5.10.1 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit)
Built on Feb 10 2018 04:21:03
From revision 24cd0b1cd6</div>
<div></div>
Nuertey
https://github.com/nuertey/RandomArtifacts/blob/master/Felgo1.png
https://github.com/nuertey/RandomArtifacts/blob/master/Felgo2.pngLive Code Reloading / iOS Simulator / directory names on May 17, 2018 at 13:22
Hi All
I’m having some problems getting my project running with live reloading on 2.16.1 with the iOS simulator. It seems there are a few issues, but I’ll report just one here while I continue to investigate the others.
So if I create a new “Tabbed Application” Felgo App within a directory with spaces (eg. “/Users/someUser/my directory/myproject”), the app builds and launches successfully. However, a number of build issues are reported suggesting that it is incorrectly parsing the directory names:
warning: directory not found for option ‘-L/Users/someUser/my’
warning: directory not found for option ‘-Ldirectory/myproject/ios’
warning: directory not found for option ‘-F/Users/someUser/my’
warning: directory not found for option ‘-Fdirectory/myproject/ios’So effectively it’s incorrectly specifying specifying library and framework path. Anyhow, it still runs fine until I try and switch to live reloading as per the recent blog post:
Now I can rebuild fine, but when I try and launch the iOS Simulator app it fails:
https://drive.google.com/open?id=1VAYCycRWAFSX6ke_NDFj8hp1LhSrGiPS
If however I do the identical test with a directory path such as
“/Users/someUser/mydirectory/myproject”
it all runs fine (live and non-live).
System setup:
- macOS High Sierra
- Qt Creator 4.5.1, Based on Qt 5.10.1 (Clang 7.0 (Apple), 64 bit), Built on Feb 10 2018 04:23:48 From revision 24cd0b1cd6
- Felgo 2.16.1
Impossible to connect to iTunesStore via Soomla on May 7, 2018 at 10:59
Hi there!
I have a problem with Soomla and purchasing goodies.
I have created a test user Sandbox in itunesConnect and confirmed its creation via email
I logout from iTunes Store on my Ipad
When I try to purchase goodies, I have a prompt for entering credentials .I set the credentials of the sandbox test user
And I have an error : Here is the log message in Xcode
<b>SOOMLA SoomlaStore: An error occured for product id “goodie3months” with code “0” and description “Error Domain=SKErrorDomain Code=0 “Connexion à l’iTunes Store impossible” UserInfo={NSLocalizedDescription=Connexion à l’iTunes Store impossible}”</b>
I have created my goodies in iTunesConnect with productId:
-goodie1year
-goodie3months
and they are approved
I also try to build with dev provisioning profile
Here is the code:
Store { id: nutriStore version: 1 secret: "ac88b77f81ce44fea0b721190ad89368" // replace with your Soomla secret goods: [ SingleUseGood { id: goodie3monthsGood itemId: "goodie3months" // replace with id of your store product name: "Abonnement 3 mois" description: "Abonnement 3 mois" purchaseType: StorePurchase { id: goodie3monthsPurchase; productId: goodie3monthsGood.itemId; } }, SingleUseGood { id: goodie1yearGood itemId: "goodie1year" // replace with id of your store product name: "Abonnement 1 an" description: "Abonn 1 an" purchaseType: StorePurchase { id: goodie1yearPurchase; productId: goodie1yearGood.itemId; } } ] onStorePurchaseStarted: { } onUnexpectedError: { hideLoading() print("NutriStore : Unexpected error") nativeUtils.displayMessageBox("NutriStore : Erreur inattendue. Veuillez réesayer dans quelques instants") } onItemNotFoundError: { hideLoading() print("NutriStore : item not found") nativeUtils.displayMessageBox("NutriStore : Item not found."+itemId+" Veuillez réesayer dans quelques instants") } onItemPurchased: { hideLoading() console.log("NutriStore : L'achat a bien été effectué:", itemId) if(itemId === 'goodie3months'){ onSubscribtionPurchased('goodie3months') }else if (itemId === 'goodie1year'){ onSubscribtionPurchased('goodie1year') } } onRestoreAllTransactionsStarted: { isRestoringAfterLogin = true showLoading('Vérification de l\'abonnement') print('nutriStore.restoreAllTransactions()') } //N'est appelé que lorsque le user est déja loggé loginDBSucceded. Donc si pas d'abonnement, on envoie sur la page abonnement onRestoreAllTransactionsFinished: { isRestoringAfterLogin = false console.log("Purchases restored with success:", success) if(success){ //Abonnement OK mainNav.currentIndex = 2 var msg = '' if(subscribtion3monthsGood.purchased ){ msg = msg + 'subscribtion3months' onSubscribtionOk('subscribtion3months') }else if(subscribtion1year.purchased){ msg = msg + 'subscribtion1year' onSubscribtionOk('subscribtion1year') } //Pas d'abonnement -> Go vers la page d'abonnement else{ onSubscribtionNone() } nativeUtils.displayMessageBox("NutriStore : Abonnement vérifié -> ",msg) }else{ hideLoading() mainNav.currentIndex = 3 NativeDialog.confirm("Erreur", "Impossible de vérifier si l'utilsateur est abonné", null, false) } } //Annulation du paiement onStorePurchaseCanceled: { hideLoading() NativeDialog.confirm("Annulation", "Vous ne pouvez pas utiliser Nutrissim sans être abonné", null, false) } }
And I Call the buyItem() function:
if(subscribtionTypeId === 'goodie1year'){ nutriStore.buyItem(goodie1yearPurchase.productId) }else if(subscribtionTypeId === 'goodie3months'){ nutriStore.buyItem(goodie3monthsPurchase.productId) }
FirebaseDatabase – Vplay 2.5 on January 25, 2018 at 17:46
Good afternoon,
today I was super excited to see that v-play 2.5 put support for more complex queries in FirebaseDatabase.
But then I was worried.
I did a simple test trying to read a list of IDS, and it gave error in android.** I think it’s some mistake when trying to record locally, it seems like it’s over the limit.
Here is the list and the code used:
FirebaseDatabase {
id: firebaseDb
realtimeValueKeys: [“compsID”]
onRealtimeValueChanged: if(success) debug(“Real Time Changed ” + JSON.stringify(value))
onReadCompleted: { if(success) { debug(“Read Complet ” + JSON.stringify(value)) } }
}
JSON from Firebase
{ “0393933973897862323” : true, “1516850971978” : true, “1516853352094” : true, “1516853442938” : true, “1516853825788” : true, “1516853892737” : true, “1516853910884” : true, “1616850971978” : true, “1616853352094” : true, “1616853442938” : true, “1616853825788” : true, “1616853892737” : true, “1616853910884” : true, “1717850971978” : true, “1717853352094” : true, “1717853442938” : true, “1717853825788” : true, “1717853892737” : true, “1717853910884” : true, “1920850971978” : true, “1920853352094” : true, “1920853442938” : true, “1920853825788” : true, “1920853892737” : true, “1920853910884” : true, “2020850971978” : true, “2020853352094” : true, “2020853442938” : true, “2020853825788” : true, “2020853892737” : true, “2020853910884” : true, “2121850971978” : true, “2121853352094” : true, “2121853442938” : true, “2121853825788” : true, “2121853892737” : true, “2121853910884” : true, “2223850972278” : true, “2223853352394” : true, “2223853442938” : true, “2223853825788” : true, “2223853892737” : true, “2223853910884” : true, “2323850972278” : true, “2323853352394” : true, “2323853442938” : true, “2323853825788” : true, “2323853892737” : true, “2323853910884” : true, “2424850972278” : true, “2424853352394” : true, “2424853442938” : true, “2424853825788” : true, “2424853892737” : true, “2424853910884” : true, “2526850972578” : true, “2526853352694” : true, “2526853442938” : true, “2526853825788” : true, “2526853892737” : true, “2526853910884” : true, “2626850972578” : true, “2626853352694” : true, “2626853442938” : true, “2626853825788” : true, “2626853892737” : true, “2626853910884” : true, “2727850972578” : true, “2727853352694” : true, “2727853442938” : true, “2727853825788” : true, “2727853892737” : true, “2727853910884” : true, “2829850972878” : true, “2829853352994” : true, “2829853442938” : true, “2829853828788” : true, “2829853893037” : true, “2829853910884” : true, “2929850972878” : true, “2929853352994” : true, “2929853442938” : true, “2929853828788” : true, “2929853893037” : true, “2929853910884” : true, “3030850972878” : true, “3030853352994” : true, “3030853442938” : true, “3030853828788” : true, “3030853893037” : true}
And Got Error:F art : art/runtime/indirect_reference_table.cc:128] JNI ERROR (app bug): local reference table overflow (max=512)
F art : art/runtime/indirect_reference_table.cc:128] local reference table dump:
F art : art/runtime/indirect_reference_table.cc:128] Last 10 entries (of 512):
F art : art/runtime/indirect_reference_table.cc:128] 511: 0x6f321770 java.lang.Class<java.lang.Boolean>
F art : art/runtime/indirect_reference_table.cc:128] 510: 0x6f327e30 java.lang.Class<java.lang.Double>
F art : art/runtime/indirect_reference_table.cc:128] 509: 0x6f328058 java.lang.Class<java.lang.Float>
F art : art/runtime/indirect_reference_table.cc:128] 508: 0x6f322e00 java.lang.Class<java.lang.Long>
F art : art/runtime/indirect_reference_table.cc:128] 507: 0x6f3235d8 java.lang.Class<java.lang.Integer>
F art : art/runtime/indirect_reference_table.cc:128] 506: 0x6f335ce8 java.lang.Class<java.lang.Short>
F art : art/runtime/indirect_reference_table.cc:128] 505: 0x6f31cbb8 java.lang.Class<java.util.Map>
F art : art/runtime/indirect_reference_table.cc:128] 504: 0x6f314d58 java.lang.Class<java.lang.Object[]>
F art : art/runtime/indirect_reference_table.cc:128] 503: 0x6f321770 java.lang.Class<java.lang.Boolean>
F art : art/runtime/indirect_reference_table.cc:128] 502: 0x6f327e30 java.lang.Class<java.lang.Double>
F art : art/runtime/indirect_reference_table.cc:128] Summary:
F art : art/runtime/indirect_reference_table.cc:128] 508 of java.lang.Class (10 unique instances)
F art : art/runtime/indirect_reference_table.cc:128] 3 of java.lang.String (3 unique instances)
F art : art/runtime/indirect_reference_table.cc:128] 1 of java.lang.String[] (3 elements)
F art : art/runtime/indirect_reference_table.cc:128]
F art : art/runtime/runtime.cc:403] Runtime aborting…
F art : art/runtime/runtime.cc:403] Aborting thread:
F art : art/runtime/runtime.cc:403] “main” prio=7 tid=1 Runnable
F art : art/runtime/runtime.cc:403] | group=”” sCount=0 dsCount=0 obj=0x752c4638 self=0xe4c05400
F art : art/runtime/runtime.cc:403] | sysTid=17072 nice=-4 cgrp=default sched=0/0 handle=0xe81b3534
F art : art/runtime/runtime.cc:403] | state=R schedstat=( 2527892707 108646311 864 ) utm=172 stm=80 core=3 HZ=100
F art : art/runtime/runtime.cc:403] | stack=0xff73d000-0xff73f000 stackSize=8MB
F art : art/runtime/runtime.cc:403] | held mutexes= “abort lock” “mutator lock”(shared held)
F art : art/runtime/runtime.cc:403] native: #00 pc 00351399 /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+128)
F art : art/runtime/runtime.cc:403] native: #01 pc 003318c5 /system/lib/libart.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+304)
F art : art/runtime/runtime.cc:403] native: #02 pc 00324889 /system/lib/libart.so (_ZNK3art10AbortState10DumpThreadERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPNS_6ThreadE+24)
F art : art/runtime/runtime.cc:403] native: #03 pc 003246d3 /system/lib/libart.so (_ZNK3art10AbortState4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+362)
F art : art/runtime/runtime.cc:403] native: #04 pc 0031b523 /system/lib/libart.so (_ZN3art7Runtime5AbortEv+90)
F art : art/runtime/runtime.cc:403] native: #05 pc 000b4d47 /system/lib/libart.so (_ZN3art10LogMessageD2Ev+866)
F art : art/runtime/runtime.cc:403] native: #06 pc 001bd02f /system/lib/libart.so (_ZN3art22IndirectReferenceTable3AddEjPNS_6mirror6ObjectE+194)
F art : art/runtime/runtime.cc:403] native: #07 pc 002662ed /system/lib/libart.so (_ZN3art3JNI17CallObjectMethodVEP7_JNIEnvP8_jobjectP10_jmethodIDSt9__va_list+456)
F art : art/runtime/runtime.cc:403] native: #08 pc 000cc119 /system/lib/libart.so (_ZN3art8CheckJNI11CallMethodVEPKcP7_JNIEnvP8_jobjectP7_jclassP10_jmethodIDSt9__va_listNS_9Primitive4TypeENS_10InvokeTypeE+608)
F art : art/runtime/runtime.cc:403] native: #09 pc 000c191d /system/lib/libart.so (_ZN3art8CheckJNI17CallObjectMethodVEP7_JNIEnvP8_jobjectP10_jmethodIDSt9__va_list+40)
F art : art/runtime/runtime.cc:403] native: #10 pc 001590ad /data/app/br.com.ncast.expert.nestlebr-1/lib/arm/libQt5Core.so (_ZNK17QJNIObjectPrivate17callObjectMethodVEPKcS1_St9__va_list+92)
F art : art/runtime/runtime.cc:403] native: #11 pc 0000c05f /data/app/br.com.ncast.expert.nestlebr-1/lib/arm/libQt5AndroidExtras.so (_ZNK17QAndroidJniObject16callObjectMethodEPKcS1_z+34)
F art : art/runtime/runtime.cc:403] at net.vplay.plugins.firebase.FirebaseDatabaseItem.readCompleted(Native method)
F art : art/runtime/runtime.cc:403] at net.vplay.plugins.firebase.FirebaseDatabaseItem.processDataSnapshot(FirebaseDatabaseItem.java:310)
F art : art/runtime/runtime.cc:403] at net.vplay.plugins.firebase.FirebaseDatabaseItem.access$300(FirebaseDatabaseItem.java:23)
F art : art/runtime/runtime.cc:403] at net.vplay.plugins.firebase.FirebaseDatabaseItem$1.onDataChange(FirebaseDatabaseItem.java:111)
Update to Felgo 2.14.2 broke MapBoxGL on December 17, 2017 at 17:56
Hi,
after upgrading to Felgo 2.14.2 I now get immediately:
harbour-berlin-vegan(7019,0x16f66b000) malloc: *** error for object 0x1c4a1ce98: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug program received signal 6, thread:327493;00:0000000000000000;01:0000000000000000;02:0000000000000000;03:0000000000000000;04:0000000000000000;05:0000000000000000;06:0100000000000000;07:6e08000000000000;08:0000000800000000;09:0000000400000000;0a:2c96998301000000;0b:0a00000000000000;0c:0000000000000000;0d:3700000000000000;0e:1300000000000000;0f:0020000000000000;10:4801000000000000;11:6707000000000000;12:0000000000000000;13:0600000000000000;14:00b0666f01000000;15:0000000000000000;16:03b2000000000000;17:e0b0666f01000000;18:00004d0301000000;19:0400000000000000;1a:a8c9071a01000000;1b:90d0071a01000000;1c:a8a8666f01000000;1d:70a7666f01000000;1e:4453998301000000;1f:40a7666f01000000;20:4813888301000000;21:00000000;metype:5;mecount:2;medata:10003;medata:6;memory:0x16f66a770=b0a7666f01000000b80f7f8301000000;memory:0x16f66a7b0=10a8666f01000000188d8b8301000000;
on iOS and the app crashes. I am currently downloading Qt 5.9.3 to see if it is a Qt bug or not. Did you experience something similar?
Best regards,
Julian