Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User somatik's Avatar
    Join Date
    Nov 2007
    Posts
    5
    Hi all,

    I'm testing a bluetooth application that works fine on a SE850 and N95, but on S40 (6500c / 6300) phones the application crashes half of the time. The crash being a white screen, slow screen rebuild and some theme glitches...

    I got one crash location traced and this code is triggering the crash:
    dis.readFully(sizebuff);

    Our application has one debug(logging) btspp connection + one data btspp connection that is reconnected every time server data is needed.

    Is this a known problem? I suppose not since it was not fixed in s40_5 fp1
    Any ideas?

  2. #2
    Registered User somatik's Avatar
    Join Date
    Nov 2007
    Posts
    5
    The crashing of the application causes some memory to be unavailable after it. We can't start the picture taking application (not enough memory) and the local storage indicates 23mb (equal to the size of the pim storage) instead of 966mb left (the filesystem must be locked in some way..)

    Nokia 6500 (no memory card, 1gig internal storage)

    only a full phone reboot brings everything to normal...

  3. #3
    Nokia Developer Champion traud's Avatar
    Join Date
    Mar 2003
    Posts
    3,897
    How large is your buffer? Have you considered to use the much more stable read() returning just a simple byte?

  4. #4
    Registered User somatik's Avatar
    Join Date
    Nov 2007
    Posts
    5
    Quote Originally Posted by traud View Post
    How large is your buffer? Have you considered to use the much more stable read() returning just a simple byte?
    The place where he crashes I have a buffer of 4 bytes (reading packet size)
    After that I'm using a 2 * 1024 bytes buffer using:

    is.read(buffer, buffpos, buffer.length - buffpos);

    and this untill the buffer is full, and I use the data

  5. #5
    Registered User somatik's Avatar
    Join Date
    Nov 2007
    Posts
    5
    Quote Originally Posted by traud View Post
    How large is your buffer? Have you considered to use the much more stable read() returning just a simple byte?
    I tried reading the 4 bytes using read() 4 times but I'm still getting the crash...

    we are using a python server which uses the bluez stack for bluetooth communication

  6. #6

  7. #7
    Nokia Developer Champion traud's Avatar
    Join Date
    Mar 2003
    Posts
    3,897
    Bluetooth is terrible unstable on my Nokia 6300i, so unstable I am not able to create a qualified bug report so far. And that MIDlet of mine even works on these old Symbian OS beasts. r2j7, I am unsure how to debug this. Emulator, System.err or should I go for paid support services?

    Not even sure this issue is related to mine as I do not do any data exchange via L2CAP or RFCOMM. All I do is SDP and very often the connection is not dropped; and of course it does not happen always. Sometimes it forgets to close the connection or waits for something; I do not know.

  8. #8
    Nokia Developer Moderator r2j7's Avatar
    Join Date
    Aug 2007
    Posts
    1,595
    Hello traud,

    sounds odd, seems to be rather serious for a Series 40 device.

    The defined issue definitively requires further investigation. To do that, please submit a Support Request via Forum Nokia's Technical Support.

    Regards,
    r2j7

Similar Threads

  1. S40 3rd Ed. crash receiving huge data from socket
    By lobsang in forum Mobile Java General
    Replies: 2
    Last Post: 2009-05-28, 07:31
  2. s40 Theme Studio v2.2 crash on Win XP SP2
    By sudhir_lp in forum Tools and SDK Feedback (Closed)
    Replies: 2
    Last Post: 2008-04-25, 20:11
  3. Problem with S40 5th Edition emulation, NCF 1.2 and BT dongle
    By nevillesatz in forum Bluetooth Technology
    Replies: 1
    Last Post: 2007-07-05, 10:52
  4. Nokia手机主要参数列表
    By cqucyf in forum [Archived] Other Programming Discussion 关于其他编程技术的讨论
    Replies: 0
    Last Post: 2005-05-04, 16:34
  5. midi files causing 3510 to crash - help!
    By chickenboy in forum Digital Rights Management & Content Downloading
    Replies: 2
    Last Post: 1970-01-01, 02:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved