Android Question Fatal signal 7 & Fatal signal 11

vecino

Well-Known Member
Licensed User
Longtime User
Hello, to see if you can help me with this problem.
I have a software for POS that has been running for about 5 years.
It is installed on a thousand computers with android 4.0
tpvhard.jpg

It makes use of scale, barcode readers, cash drawer, ticket printer, etc. Everything is OK until now.
The provider has sent us a new POS order, and in this case they come with android 4.1.2 and an unexpected problem has occurred.
tpvsoft.png


When reading with the barcode reader, one of the following errors always occurs:
Fatal signal 7 (SIGBUS) at 0x00000000 (code=128), thread 6239 (s.easytouch.com)
Fatal signal 11 (SIGSEGV) at 0xfffffff4 (code=1), thread 6288 (s.easytouch.com)
Fatal signal 7 (SIGBUS) at 0x00000000 (code=128), thread 6239 (s.easytouch.com)
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
** Activity (actpv) Create, isFirst = true **
** Activity (actpv) Resume **
Fatal signal 7 (SIGBUS) at 0x00000000 (code=128), thread 6263 (s.easytouch.com)
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
** Activity (actpv) Create, isFirst = true **
** Activity (actpv) Resume **
Fatal signal 11 (SIGSEGV) at 0xfffffff4 (code=1), thread 6288 (s.easytouch.com)
The reader reads an EditText and there is nothing special, this is the code, if you click on a panel for each article or if you read with the barcode reader.

I do not know what information you may need to help.
I have seen other threads with the same error message, but in no case has it served me. Can it be a problem with that version of Android?
Thank you.

Logger connected to: Freescale AO4
--------- beginning of /dev/log/main
Enabling JNI app bug workarounds for target SDK version 5...
Starting remote logger. Port: 47710
Could not find method android.content.Context.startForegroundService, referenced from method anywheresoftware.b4a.objects.ServiceHelper$StarterHelper.startServiceFromReceiver
VFY: unable to resolve virtual method 233: Landroid/content/Context;.startForegroundService (Landroid/content/Intent;)Landroid/content/ComponentName;
VFY: replacing opcode 0x6e at 0x0079
Could not find method android.app.AlarmManager.setAndAllowWhileIdle, referenced from method anywheresoftware.b4a.keywords.Common.StartServiceAt
VFY: unable to resolve virtual method 146: Landroid/app/AlarmManager;.setAndAllowWhileIdle (IJLandroid/app/PendingIntent;)V
VFY: replacing opcode 0x6e at 0x0017
Could not find method android.app.AlarmManager.setExactAndAllowWhileIdle, referenced from method anywheresoftware.b4a.keywords.Common.StartServiceAtExact
VFY: unable to resolve virtual method 148: Landroid/app/AlarmManager;.setExactAndAllowWhileIdle (IJLandroid/app/PendingIntent;)V
VFY: replacing opcode 0x6e at 0x0018
** Activity (main) Create, isFirst = true **
GC_CONCURRENT freed 236K, 10% free 3002K/3312K, paused 3ms+3ms, total 28ms
GC_FOR_ALLOC freed 77K, 7% free 3309K/3524K, paused 16ms, total 16ms
After accept
GC_FOR_ALLOC freed 9K, 6% free 3575K/3788K, paused 17ms, total 17ms
GC_CONCURRENT freed 66K, 4% free 4002K/4148K, paused 3ms+2ms, total 18ms
GC_CONCURRENT freed 409K, 11% free 4019K/4500K, paused 1ms+3ms, total 17ms
GC_FOR_ALLOC freed 15K, 10% free 4080K/4500K, paused 12ms, total 13ms
Grow heap (frag case) to 4.322MB for 281896-byte allocation
GC_FOR_ALLOC freed <1K, 9% free 4354K/4776K, paused 12ms, total 12ms
Skipped 33 frames! The application may be doing too much work on its main thread.
GC_CONCURRENT freed 261K, 7% free 4620K/4956K, paused 2ms+3ms, total 25ms
WAIT_FOR_CONCURRENT_GC blocked 16ms
GC_CONCURRENT freed 515K, 13% free 4640K/5304K, paused 3ms+2ms, total 23ms
WAIT_FOR_CONCURRENT_GC blocked 20ms
GC_CONCURRENT freed 577K, 13% free 4684K/5336K, paused 2ms+2ms, total 24ms
WAIT_FOR_CONCURRENT_GC blocked 20ms
** Activity (main) Resume **
GC_CONCURRENT freed 521K, 13% free 4690K/5336K, paused 3ms+5ms, total 30ms
WAIT_FOR_CONCURRENT_GC blocked 17ms
Grow heap (frag case) to 4.855MB for 215616-byte allocation
GC_FOR_ALLOC freed 8K, 12% free 4892K/5548K, paused 24ms, total 24ms
** Activity (main) Pause, UserClosed = true **
Trying to load lib /data/app-lib/seypos.easytouch.com-2/libserial_port.so 0x41cb8a78
libserial_port.so has text relocations. This is wasting memory and is a security risk. Please fix.
Added shared lib /data/app-lib/seypos.easytouch.com-2/libserial_port.so 0x41cb8a78
No JNI_OnLoad found in /data/app-lib/seypos.easytouch.com-2/libserial_port.so 0x41cb8a78, skipping init
** Activity (actpv) Create, isFirst = true **
GC_CONCURRENT freed 620K, 13% free 4936K/5632K, paused 2ms+4ms, total 37ms
GC_CONCURRENT freed 334K, 8% free 5238K/5648K, paused 2ms+4ms, total 34ms
Trying to load lib /data/app-lib/seypos.easytouch.com-2/libAclasArmPos.so 0x41cb8a78
Added shared lib /data/app-lib/seypos.easytouch.com-2/libAclasArmPos.so 0x41cb8a78
No JNI_OnLoad found in /data/app-lib/seypos.easytouch.com-2/libAclasArmPos.so 0x41cb8a78, skipping init
Trying to load lib /data/app-lib/seypos.easytouch.com-2/libAclasArmPos.so 0x41cb8a78
Shared lib '/data/app-lib/seypos.easytouch.com-2/libAclasArmPos.so' already loaded in same CL 0x41cb8a78
Trying to load lib /data/app-lib/seypos.easytouch.com-2/libAclasArmPos.so 0x41cb8a78
Shared lib '/data/app-lib/seypos.easytouch.com-2/libAclasArmPos.so' already loaded in same CL 0x41cb8a78
GC_CONCURRENT freed 550K, 11% free 5492K/6116K, paused 2ms+3ms, total 36ms
Skipped 66 frames! The application may be doing too much work on its main thread.
** Activity (actpv) Resume **
5901720160461
Fatal signal 11 (SIGSEGV) at 0x00000004 (code=1), thread 6386 (s.easytouch.com)

B4X:
Sub edEAN_EnterPressed   ' Barcode read in EditText
    If bProcesando Then Return
    cArticuloActivo = edEAN.Text.Trim
    bEsEAN = (cArticuloActivo.Length>0)
    bProcesando=True
    '
    QueArticulo( cArticuloActivo )
End Sub

Sub arti_Click  ' Push panel with image
    If bProcesando Then    Return
    '
    If bTicketCerrado Then
        Msgbox(msg(342),msg(9))
        Return
    End If
    '
    lbInfoUltimaVenta.Visible = False   
    '
  Dim pp As Panel = Sender
    cArticuloActivo = pp.Tag
    bEsEAN = False
    bProcesando = True
    '
    QueArticulo( cArticuloActivo )
End Sub

Sub QueArticulo( cQA As String )
    Log(cQA)
    ' tomar el precio según la prioridad de las tarifas       
    Try
        fPrecioArti = getPrecioTarifaPrioridad( cQA, iMesa )   
    Catch
        Log("No hay tarifa válida")
        fPrecioArti = 0
    End Try
 

vecino

Well-Known Member
Licensed User
Longtime User
Thank you very much for the help.
Although I have a question. What you say to me is a suspicion or is it undoubtedly necessary?
I ask for two reasons. Because the software has been working well for five years (without any errors), in a thousand POS terminals. And because the problem has occurred when changing the Android version.
Also, because there are about 50 thousand lines of code that must be checked o_O
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Hello, I have finally found the problem.
The error occurs when I give the focus to the EditText that collects the value read by the barcode reader.
I do not understand it, it's only edEan.RequestFocus
Well, it's already solved.
I have created a "Sub SetFocus" for each time I need to assign the focus.
Thank you very much to everyone for your help.
I hope it has finally been solved :)
Regards.
 
Upvote 0
Top