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

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.


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)
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.


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
 
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
Cookies are required to use this site. You must accept them to continue using the site. Learn more…