<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.17114" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am currently developing a telecommunication
project involving Blutooth communication between Android devices. For this
purpose, I'm trying to use Necessitas Bluetooth support and I experiment very
similar problems that are described in the "Crash when using Bluetooth" (Kate
Alhola) archive thread.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Environment:</FONT></DIV>
<DIV><FONT face=Arial size=2>Java JDK 1.7.0_09<BR>Qt Creator 2.5.83 Based on Qt
4.8.3 running on Linux Suze<BR>Kit = Necessitas Qt 4.8.2 for Android
armv7a<BR>Compiler = Android GCC (arm-4.4.3)<BR>Android target SDK =
android-16<BR>Deploy to Nexus 7 with Android version 4.2.</FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><FONT face=Arial
size=2></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2>I firstly tried to deploy the btchat sample and I
faced the same problem:</FONT></DIV>
<DIV><FONT face=Arial size=2>JNI ERROR (app bug): accessed stale local reference
0xe680001d (index 7 in a table of size 4)<BR>VM aborting<BR>Fatal signal 11
(SIGSEGV) at 0xdeadd00d (code=1), thread 13965 (.example.btchat)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Setting traces in different source files of
the connectivity library, I also noticed that the error happens when trying to
use some member functions of QBluetoothLocalDevice (btchat sample requests for
the local device name from the main function).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I tried to bypass this problem by only creating the
QBluetoothLocalDevice without requesting for the device name in the btchat
application. The program then starts correctly.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>In the btchat application, the "Connect" button
calls the QBluetoothServiceDiscoveryAgent::start function. This function
randomly processes the request because it relies on discoveryState and
deviceAddress members, which seem not to be initialized : either the discovery
process freezes or the program aborts with an error (if luckily discoveryState
and deviceAddress members get consistent values). I didn't try any further
investigation. It seems to me that the connectivity library is compiled with
qbluetoothlocaldevice_p.cpp, which just contains empty functions for the
QBluetoothLocalDevice class, instead of a customized source for
Android.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Is Bluetooth support for Android in Necessitas
complete ?</FONT></DIV>
<DIV><FONT face=Arial size=2>Is the btchat sample expected to work
properly with Android ?</FONT></DIV>
<DIV><FONT face=Arial size=2>Is there any specific configuration issue I could
miss ?</FONT></DIV>
<DIV><FONT face=Arial size=2>Is there any corrective or complement software I
could download ?</FONT></DIV>
<DIV><FONT face=Arial size=2>How can I progress on this issue ? What is the best
way to get help and advices ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Dominique RETY</FONT></DIV>
<DIV><FONT face=Arial size=2><A
href="">dominiquerety@hotmail.fr</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></DIV></BODY></HTML>