Hi Felgo,
So I started testing my app on iPhone and unfortunately hit hard crash.
I managed to isolate the issue, what wasn’t easy at all in a big application.
Example whole log:
Starting remote process.
objc[18525]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x114485cc0) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x1141fb6f0). One of the two will be used. Which one is undefined.
QML debugging is enabled. Only use this in a safe environment.
JIT is disabled for QML. Property bindings and animations will be very slow. Visit https://wiki.qt.io/V4 to learn about possible solutions for your platform.
System: loading config file from: "qml/config.json"
NOTE: you are running a development build in Debug Mode. When you are ready to publish your app to the app stores, switch to Release mode and enable a publish build. You can enable a publish build in the config.json file in your qml folder by setting the "stage" property to "publish". For more information see: https://felgo.com/doc/vplay-publishing/
WARNING: VPlayFileUtils: Did not find the file or directory: "qml/translations"
setting extrafileSelectorList to ("hd", "sd") , allFileSelectors: ("hd", "sd", "en_US", "unix", "darwin", "mac", "ios")
setting internalContentScaleFactorForImages which is used for MultiResolutionImage contextProperty to 0.5
VPlayApplication: setting screenDpi contextProperty to 326
VPlayApplication: setting devicePixelRatio contextProperty to 2
VPlayApplication: setMainQmlFileName called for qmlFileName "qml/Main.qml" , used file: "qml/Main.qml"
JIT is disabled for QML. Property bindings and animations will be very slow. Visit https://wiki.qt.io/V4 to learn about possible solutions for your platform.
stale focus object QObject(0x0) , doing manual update
qml: no licenseKey set, generate one here to remove the Felgo Splash screen and to use plugins for monetization, analytics, push notifications, social networks & more: http://felgo.com/licenseKey
Run ended.
Full source code:
import Felgo 3.0
import QtQuick 2.0
GameWindow {
id: gameWindow
activeScene: scene
screenWidth: 640
screenHeight: 960
Scene {
id: scene
width: 320
height: 480
AnimatedSpriteVPlay {
frameWidth: 1
frameHeight: 1
frameCount: 1
frameDuration: 1
source: "../assets/vplay-logo.png"
}
}
}
It crashes when I put valid source, by valid I mean to a file which exists.
Didn’t test on Android yet, will try later.
It crashes on iPhone simulator and normal iPhone device(tried iPhone 6).
The moment the scene where animation exists becomes visible you get run ended and that’s all basically.
I am using newest Felgo with MacOS Sierra 10.12.6 and XCode Version 8.3.3 (8E3004b)
Are you able to replicate this issue?
PS. The fix I am doing currently is not giving the valid source parameter. Of course the animation doesn’t work but at least the app doesn’t crash.
Other parameters on animation, like frameCount
etc, don’t seem to make any difference.