iOS Question SignalHandler 11 error

Alex_197

Well-Known Member
Licensed User
Longtime User
Hi all.

I have a strange error SignalHandler 11.

B4X:
SignalHandler 11
Error occurred on line: 82 (clsMenu)
Signal - 11
Stack Trace: (
    "0   Menu Test            SignalHandler + 108",
    "1   libsystem_platform.dylib            0x00000002b6ea21b8 3EDB2C1D-BF74-39F3-A9F6-B8C78BD66DD5 + 16824",
    "2   Menu Test            -[b4i_clsmenu _menu_click::] + 612",
    "3   Menu Test            -[b4i_dashboard _btnfeedback_click] + 416",
    "4   CoreFoundation       101EB2F1-1915-34A0-8BC9-631D03753B84 + 407844",
    "5   CoreFoundation       101EB2F1-1915-34A0-8BC9-631D03753B84 + 407464",
    "6   Menu Test            +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 776",
    "7   Menu Test            -[B4IShell runMethod:] + 320",
    "8   Menu Test            -[B4IShell raiseEventImpl:method:args::] + 932",
    "9   Menu Test            -[B4IShellBI raiseEvent:event:params:] + 1008"
)

Please see the attached project.

The error happens in this code
B4X:
public Sub Menu_Click(btn As B4XView)
    Try
       
        aspm_main.MenuViewGap = aspm_main.TriangleProperties.Height -50dip
        aspm_main.ShowTriangle =False
        aspm_main.TriangleProperties.Left = 100dip/2 - aspm_main.TriangleProperties.Width/2

        aspm_main.OpenMenu(btn,200dip)
           
    Catch
        Log("Menu_Click " & LastException.description)
       
    End Try
End Sub

This is a code of the page where I use clsMenu class

B4X:
'Code module

Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'Public variables can be accessed from all modules.
    Dim pg As Page
    Dim Menu As clsMenu
   
    Private btnFeedBack As Button
End Sub



Public Sub Show
    Try
        If pg.IsInitialized=False Then
            pg.Initialize("pg")
        End If
       
        pg.RootPanel.LoadLayout("Dashboard")
        Main.NavControl.ShowPage(pg)
    Catch
        Log(LastException)
    End Try
End Sub



Private Sub pg_Appear
    Try
        Menu.Initialize(pg.RootPanel)      
    Catch
        Log(LastException)
    End Try
End Sub

Private Sub btnFeedBack_Click
    Try
        Menu.Menu_Click(btnFeedBack)
    Catch
        Log(LastException)
    End Try
End Sub

This error happens when I click on the menu in the top right corner. I tested it in debug mode only.

If I click Clean Project and run the project again - it woks.

Then I added a one more line into pg_Appear sub and the error happens again.
If I click Clean Project again and run the project again - it woks.

B4X:
Private Sub pg_Appear

    Try

        Menu.Initialize(pg.RootPanel)      
        Dim ABC as String  
       
    Catch

        Log(LastException)

    End Try

End Sub


My IDE is 10.30

Thank you.
 

Attachments

  • MenuTest.zip
    172.1 KB · Views: 28

Erel

B4X founder
Staff member
Licensed User
Longtime User
I'm getting compiler errors from ASPopupMenu (new feature BTW :) ). Based on the errors it is expected to work with B4XPages.

1789277195548.png
 
Upvote 0

Alex_197

Well-Known Member
Licensed User
Longtime User
I'm getting compiler errors from ASPopupMenu (new feature BTW :) ). Based on the errors it is expected to work with B4XPages.

View attachment 173584
@Erel , please see the libs that I'm using. ASPopUpMenu 1.17 is an internal library and this is the example.

I've been using this menu in my B4i app for about 5 o 6 years and never had any problem before.

Thanks and Chag Sameach.
 

Attachments

  • screen1.jpg
    screen1.jpg
    21.5 KB · Views: 25
Upvote 0

Alex_197

Well-Known Member
Licensed User
Longtime User
ASPopUpMenu is an additional library: https://www.b4x.com/android/forum/threads/b4x-xui-as-popup-menu.121832/
And depends on B4XPages, starting from v1.15. I don't know whether it is related to this issue or not. If you like upload your library and I'll try it here.
I have noticed that I am using ASPopUpMenu lib ver. 1.11 so I tried to replace it with the latest ver. 1.17 and as you mentioned - I've gotten compiler error exactly as you have. I replaced it back to 1.11 and with the new IDE 10.31 the Signalhandler 11 error is no longer happens. This problem has been solved.

It looks that ver. 1.17 is not compatible with the regular B4i app.

Thanks.
 
Upvote 0
Top