Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.15.2
-
None
-
Emulator Android 11
Description
main.qml
import QtQuick 2.15 import QtQuick.Window 2.15 Window { width: 640 height: 480 visible: true title: qsTr("Hello World") Rectangle{ width: parent.width height: parent.height * .55 color: Qt.rgba(0, 0, 0, 0) Canvas { width: parent.width height: parent.height clip: true onPaint: { //Color firstColor = Color(0xFFF47D15); //Color secondColor = Color(0xFFEF772C); var ctx = getContext("2d") var gradient = ctx.createLinearGradient(0,0,parent.width,250) gradient.addColorStop(0, "#F47D15") gradient.addColorStop(0.3, "#EF772C") ctx.beginPath() ctx.fillStyle = gradient //"#F47D15" ctx.moveTo(0,0) ctx.lineTo(0, parent.height) var firstPoint = { dx: parent.width * .5, dy: parent.height - 30 } var firstControlpoint = { dx: parent.width * .25, dy: parent.height - 50 } ctx.quadraticCurveTo(firstControlpoint.dx,firstControlpoint.dy,firstPoint.dx,firstPoint.dy); var secondPoint = { dx: parent.width, dy: parent.height - 80 } var secondControlPoint = { dx: parent.width * .75, dy: parent.height - 10 } ctx.quadraticCurveTo(secondControlPoint.dx,secondControlPoint.dy,secondPoint.dx,secondPoint.dy); ctx.lineTo(parent.width, 0) // left line through path closing //ctx.closePath() //ctx.clip() //// fill using fill style ctx.fill() // stroke using line width and stroke style //ctx.stroke() } } } }
Error
09-21 23:17:41.090 518 3149 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4 09-21 23:17:41.225 12285 12313 F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x1652d83 in tid 12313 (qtMainLoopThrea), pid 12285 (CustomPaintTest) 09-21 23:17:41.314 12322 12322 I crash_dump32: obtaining output fd from tombstoned, type: kDebuggerdTombstone 09-21 23:17:41.315 282 282 I tombstoned: received crash request for pid 12313 09-21 23:17:41.316 12322 12322 I crash_dump32: performing dump of process 12285 (target tid = 12313) 09-21 23:17:41.327 12322 12322 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 09-21 23:17:41.327 12322 12322 F DEBUG : Build fingerprint: 'Android/sdk_phone_x86/generic_x86:11/RSR1.210210.001.A1/7193139:userdebug/dev-keys' 09-21 23:17:41.327 12322 12322 F DEBUG : Revision: '0' 09-21 23:17:41.327 12322 12322 F DEBUG : ABI: 'x86' 09-21 23:17:41.327 12322 12322 F DEBUG : Timestamp: 2021-09-21 23:17:41-0300 09-21 23:17:41.327 12322 12322 F DEBUG : pid: 12285, tid: 12313, name: qtMainLoopThrea >>> org.qtproject.example.CustomPaintTest <<< 09-21 23:17:41.327 12322 12322 F DEBUG : uid: 10126 09-21 23:17:41.327 12322 12322 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x1652d83 09-21 23:17:41.327 12322 12322 F DEBUG : eax 01652d83 ebx e8723c80 ecx 0000de1f edx e8549f9d 09-21 23:17:41.327 12322 12322 F DEBUG : edi f33ef030 esi c576de1f 09-21 23:17:41.327 12322 12322 F DEBUG : ebp c6ac05b8 esp c6ac0550 eip e85a9780 09-21 23:17:41.416 12322 12322 F DEBUG : backtrace: 09-21 23:17:41.416 12322 12322 F DEBUG : #00 pc 000d0780 /system/lib/libndk_translation.so (ndk_translation::ExecuteGuest(ndk_translation::ProcessState*)+288) (BuildId: ca20d07948eb8 97d9ee91bdeb9bd0155) 09-21 23:17:41.416 12322 12322 F DEBUG : #01 pc 000d09ba /system/lib/libndk_translation.so (ndk_translation::(anonymous namespace)::RunGuestCall(unsigned int, int, int, unsigned int* )+266) (BuildId: ca20d07948eb897d9ee91bdeb9bd0155) 09-21 23:17:41.416 12322 12322 F DEBUG : #02 pc 000d0b1a /system/lib/libndk_translation.so (ndk_translation::RunGuestCall(unsigned int, ndk_translation::GuestArgumentBuffer*)+42) (Bu ildId: ca20d07948eb897d9ee91bdeb9bd0155) 09-21 23:17:41.416 12322 12322 F DEBUG : #03 pc 000d3a2a /system/lib/libndk_translation.so (ndk_translation::(anonymous namespace)::RunGuestJNIFunction(unsigned int, ndk_translation: :GuestArgumentBuffer*)+74) (BuildId: ca20d07948eb897d9ee91bdeb9bd0155) 09-21 23:17:41.416 12322 12322 F DEBUG : #04 pc 00090039 <anonymous:c83d0000> 09-21 23:17:41.512 518 1315 E TaskPersister: File error accessing recents directory (directory doesn't exist?). 09-21 23:17:41.695 0 0 D logd : logdr: UID=10126 GID=10126 PID=12322 n tail=50 logMask=8 pid=12285 start=0ns timeout=0ns 09-21 23:17:41.706 0 0 D logd : logdr: UID=10126 GID=10126 PID=12322 n tail=50 logMask=1 pid=12285 start=0ns timeout=0ns 09-21 23:17:41.963 0 0 D logd : logdr: UID=10126 GID=10126 PID=12322 n tail=0 logMask=8 pid=12285 start=0ns timeout=0ns 09-21 23:17:41.968 0 0 D logd : logdr: UID=10126 GID=10126 PID=12322 n tail=0 logMask=1 pid=12285 start=0ns timeout=0ns 09-21 23:17:41.867 282 282 E tombstoned: Tombstone written to: /data/tombstones/tombstone_26 09-21 23:17:41.872 518 554 I BootReceiver: Copying /data/tombstones/tombstone_26 to DropBox (SYSTEM_TOMBSTONE) 09-21 23:17:41.873 518 554 I DropBoxManagerService: add tag=SYSTEM_TOMBSTONE isTagEnabled=true flags=0x2 09-21 23:17:41.877 518 12331 I DropBoxManagerService: add tag=data_app_native_crash isTagEnabled=true flags=0x2 09-21 23:17:41.879 518 12330 W ActivityTaskManager: Force finishing activity org.qtproject.example.CustomPaintTest/org.qtproject.qt5.android.bindings.QtActivity 09-21 23:17:41.883 305 1033 D goldfish-address-space: claimShared: Ask to claim region [0x36c000000 0x36c9a4000] 09-21 23:17:42.010 0 0 I init : Untracked pid 12322 exited with status 0