<div dir="ltr">The only thing i can think of is that i am including something in the python compile that it does not like... I suppose I could do a simple compile of python without any of my additional libraries that i need to build my main application. I am just at a loss. It worked so well with my previous setup.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 24, 2015 at 9:57 AM, Sébastien RAMAGE <span dir="ltr"><<a href="mailto:sramage@poifindus.com" target="_blank">sramage@poifindus.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hi, <br>
I got exactly the same problem few weeks ago but nobody help me on
the mailing list...<br>
<br>
<div><small><b>Sébastien Ramage</b><br>
<font color="#009900"><b></b></font><b><br>
<br>
</b> </small></div><div><div class="h5">
<div>Le 24/06/2015 15:52, Stephen Chapman a
écrit :<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">
<div>
<div>
<div>
<div>I am working with ArchLinux to try and get a deploy
out to an android device<br>
</div>
I have my device connected directly. <br>
<br>
</div>
I made static builds of Python3.4.3 and PyQt5.4.2 and sip<br>
</div>
Arch linux also uses these same versions of Python PyQt, and
sip<br>
<br>
</div>
<div>I run my pyqtdeploy on a very simple example script<br>
<br>
from PyQt5 import QtCore, QtGui, QtWidgets<br>
<br>
class Window(QtWidgets.QWidget):<br>
def __init__(self):<br>
super(Window, self).__init__()<br>
self.button = QtWidgets.QPushButton('Test', self)<br>
self.label = QtWidgets.QLabel(self)<br>
self.button.clicked.connect(self.handleButton)<br>
layout = QtWidgets.QVBoxLayout(self)<br>
layout.addWidget(self.label)<br>
layout.addWidget(self.button)<br>
<br>
def handleButton(self):<br>
self.label.setText('Button Clicked!')<br>
<br>
if __name__ == '__main__':<br>
import sys<br>
app = QtWidgets.QApplication(sys.argv)<br>
window = Window()<br>
window.show()<br>
sys.exit(app.exec_())<br>
<br>
</div>
<div>Tested with Desktop works fine<br>
</div>
<div><br>
</div>
<div>run qmake / make / make install I get my libTest.so
installed to the deploy directory<br>
</div>
<div>I run androiddeployqt everything builds correctly
generates my Test.apk<br>
</div>
<div>it launches on the device. clears the screen and then i
get<br>
<br>
</div>
<div>"Unfortunately Test has stopped" <br>
</div>
<div>"OK"<br>
<br>
</div>
<div>I ran the build from QtCreator so I could see the
application output<br>
<br>
</div>
<div>F/libc (5979): Fatal signal 11 (SIGSEGV) at 0x00000000
(code=1) thread 5995 <br>
(example.PaceTab)<br>
<br>
</div>
<div>Below is the adb Crash report<br>
D/CrashAnrDetector( 789): Build:
samsung/afyonltetmo/afyonltetmo:4.4.2/KOT49H/G386TUVU1AOD7:user/release-keys<br>
D/CrashAnrDetector( 789): Hardware: MSM8226<br>
D/CrashAnrDetector( 789): Revision: 6<br>
D/CrashAnrDetector( 789): Bootloader: G386TUVU1AOD7<br>
D/CrashAnrDetector( 789): Radio: unknown<br>
D/CrashAnrDetector( 789): Kernel: Linux version 3.4.0-4650398
(dpi@SWDD6110) (gcc version 4.7 (GCC) ) #1 SMP PREEMPT Sun Apr
26 12:19:09 KST 2015<br>
D/CrashAnrDetector( 789):<br>
D/CrashAnrDetector( 789): *** *** *** *** *** *** *** *** ***
*** *** *** *** *** *** ***<br>
D/CrashAnrDetector( 789): Build fingerprint:
'samsung/afyonltetmo/afyonltetmo:4.4.2/KOT49H/G386TUVU1AOD7:user/release-keys'<br>
D/CrashAnrDetector( 789): Revision: '6'<br>
D/CrashAnrDetector( 789): pid: 6601, tid: 6615, name:
example.Test >>> org.qtproject.example.Test
<<<<br>
D/CrashAnrDetector( 789): signal 11 (SIGSEGV), code 1
(SEGV_MAPERR), fault addr 00000000<br>
D/CrashAnrDetector( 789): r0 790b0fd4 r1 00000000 r2
790b0fd4 r3 7731c2c8<br>
D/CrashAnrDetector( 789): r4 790b0fd8 r5 790b0fd4 r6
790b1024 r7 790b1020<br>
D/CrashAnrDetector( 789): r8 790b0fd4 r9 00000000 sl
79292818 fp 79128be8<br>
D/CrashAnrDetector( 789): ip 78ec35c0 sp 790b0fa0 lr
7863e6db pc 771ea1ea cpsr 600f0030<br>
D/CrashAnrDetector( 789): d0 00700069007a002f d1
006f0070006d0069<br>
D/CrashAnrDetector( 789): d2 005f002f00740072 d3
0069006e0069005f<br>
D/CrashAnrDetector( 789): d4 2f6b726f77656d61 d5
726f77656d617266<br>
D/CrashAnrDetector( 789): d6 2f3a72616a2e326b d7
bff0000000000000<br>
D/CrashAnrDetector( 789): d8 0000000000000000 d9
0000000000000000<br>
D/CrashAnrDetector( 789): d10 0000000000000000 d11
0000000000000000<br>
D/CrashAnrDetector( 789): d12 0000000000000000 d13
0000000000000000<br>
D/CrashAnrDetector( 789): d14 0000000000000000 d15
0000000000000000<br>
D/CrashAnrDetector( 789): d16 006900700069007a d17
0072006f0070006d<br>
D/CrashAnrDetector( 789): d18 00000000000000e4 d19
6c6f6f7479647027<br>
D/CrashAnrDetector( 789): d20 706d696372712e73 d21
6f2027726574726f<br>
D/CrashAnrDetector( 789): d22 6168207463656a62 d23
747461206f6e2073<br>
D/CrashAnrDetector( 789): d24 3fc74721cad6b0ed d25
3fc2f112df3e5244<br>
D/CrashAnrDetector( 789): d26 40026bb1bbb55516 d27
4000000000000000<br>
D/CrashAnrDetector( 789): d28 40008df2d49d41f1 d29
3fb0f4a31edab38b<br>
D/CrashAnrDetector( 789): d30 3ff0000000000000 d31
3f4de16b9c24a98f<br>
D/CrashAnrDetector( 789): scr 60000010<br>
D/CrashAnrDetector( 789):<br>
D/CrashAnrDetector( 789): backtrace:<br>
D/CrashAnrDetector( 789): #00 pc 0012a1ea
/data/app-lib/org.qtproject.example.Test-11/libQt5Core.so
(QDir::filePath(QString const&) const+9)<br>
D/CrashAnrDetector( 789): #01 pc 003816d7
/data/app-lib/org.qtproject.example.Test-11/libTest.so<br>
D/CrashAnrDetector( 789):<br>
D/CrashAnrDetector( 789): stack:<br>
D/CrashAnrDetector( 789): 790b0f60 00000002<br>
D/CrashAnrDetector( 789): 790b0f64 00000010<br>
D/CrashAnrDetector( 789): 790b0f68 00000000<br>
D/CrashAnrDetector( 789): 790b0f6c 79292818<br>
D/CrashAnrDetector( 789): 790b0f70 79128be8<br>
D/CrashAnrDetector( 789): 790b0f74 400d2d3d
/system/lib/libc.so (malloc+12)<br>
D/CrashAnrDetector( 789): 790b0f78 00000000<br>
D/CrashAnrDetector( 789): 790b0f7c 77138937
/data/app-lib/org.qtproject.example.Test-11/libQt5Core.so
(QArrayData::allocate(unsigned int, unsigned int, unsigned
int, QFlags<QArrayData::AllocationOption>)+34)<br>
D/CrashAnrDetector( 789): 790b0f80 79292870<br>
D/CrashAnrDetector( 789): 790b0f84 790b0fe0
[stack:6615]<br>
D/CrashAnrDetector( 789): 790b0f88 790b1024
[stack:6615]<br>
D/CrashAnrDetector( 789): 790b0f8c 79292878<br>
D/CrashAnrDetector( 789): 790b0f90 790b0fd4
[stack:6615]<br>
D/CrashAnrDetector( 789): 790b0f94 400d6457
/system/lib/libc.so (dlfree+50)<br>
D/CrashAnrDetector( 789): 790b0f98 4010f000
/system/lib/libc.so<br>
D/CrashAnrDetector( 789): 790b0f9c 790b0fe4
[stack:6615]<br>
D/CrashAnrDetector( 789): #00 790b0fa0 790b0fe4
[stack:6615]<br>
D/CrashAnrDetector( 789): 790b0fa4 790b0fe0
[stack:6615]<br>
D/CrashAnrDetector( 789): 790b0fa8 790b1024
[stack:6615]<br>
D/CrashAnrDetector( 789): 790b0fac 790b0fd8
[stack:6615]<br>
D/CrashAnrDetector( 789): 790b0fb0 790b0fe0
[stack:6615]<br>
D/CrashAnrDetector( 789): 790b0fb4 790b1024
[stack:6615]<br>
D/CrashAnrDetector( 789): 790b0fb8 790b1020
[stack:6615]<br>
D/CrashAnrDetector( 789): 790b0fbc 7863e6db
/data/app-lib/org.qtproject.example.Test-11/libTest.so<br>
D/CrashAnrDetector( 789): 790b0fc0 00000001<br>
D/CrashAnrDetector( 789): 790b0fc4 400d2d3d
/system/lib/libc.so (malloc+12)<br>
D/CrashAnrDetector( 789): 790b0fc8 00000000<br>
D/CrashAnrDetector( 789): 790b0fcc 77138937
/data/app-lib/org.qtproject.example.Test-11/libQt5Core.so
(QArrayData::allocate(unsigned int, unsigned int, unsigned
int, QFlags<QArrayData::AllocationOption>)+34)<br>
D/CrashAnrDetector( 789): 790b0fd0 79128e48<br>
D/CrashAnrDetector( 789): 790b0fd4 792928f0<br>
D/CrashAnrDetector( 789): 790b0fd8 00000009<br>
D/CrashAnrDetector( 789): 790b0fdc 78ec3550
/data/app-lib/org.qtproject.example.Test-11/libTest.so<br>
D/CrashAnrDetector( 789):<br>
D/CrashAnrDetector( 789): memory near r0:<br>
D/CrashAnrDetector( 789): 790b0fb4 790b1024 790b1020
7863e6db 00000001<br>
D/CrashAnrDetector( 789): 790b0fc4 400d2d3d 00000000
77138937 79128e48<br>
D/CrashAnrDetector( 789): 790b0fd4 792928f0 00000009
78ec3550 79292830<br>
D/CrashAnrDetector( 789): 790b0fe4 79292878 79118790
79128be8 790b101c<br>
D/CrashAnrDetector( 789): 790b0ff4 790b1020 78ec3550
790b1024 79118790<br>
D/CrashAnrDetector( 789): 790b1004 790d02a0 79128be8
7863ea09 79128c88<br>
D/CrashAnrDetector( 789): 790b1014 00000000 79128e30
739b25e0 79292830<br>
D/CrashAnrDetector( 789): 790b1024 79292968 79128be8
78ec3550 79118790<br>
D/CrashAnrDetector( 789): 790b1034 7863e9c5 790d02a0
72f7ffb8 00000001<br>
D/CrashAnrDetector( 789): 790b1044 78abec3c 7911776c
79117610 72f7ffb8<br>
D/CrashAnrDetector( 789): 790b1054 790e515b 78ec3550
78b39ba0 790ed<br>
D/CrashAnrDetector( 789):
processName:org.qtproject.example.Test<br>
D/CrashAnrDetector( 789): broadcastEvent :
org.qtproject.example.Test SYSTEM_TOMBSTONE<br>
</div>
<div><br>
</div>
<div>rebooted the device. same thing.<br>
<br>
</div>
<div>I have done this before using an older version of python
and PyQt using Ubuntu linux so I have a libTest.so from that.
<br>
<br>
</div>
<div>I swapped that .so into the build folder and re-ran
androiddeployqt and it worked fine.<br>
</div>
<div>that was also built using .05 of pyqtdeploy if that makes
any difference.<br>
<br>
</div>
<div>Any help is would be appreciated.<br>
<br>
</div>
<div>Thanks<br>
</div>
<div><br>
<br>
</div>
<div><br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></pre>
</blockquote>
<br>
</div>
</blockquote></div><br></div>