Android Question Fatal signal 11 (SIGSEGV)...(code=1)...

KY Leng

Member
Licensed User
Longtime User
Good afternoon,

My app work well for many smart phone, however, when my friend install it on Sony Xperia Z Ultra,
the app is not working properly and crash every time.
So, I take their phone and debug with B4A 3.2, I got the below error:

** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Service (smsrxservice) Create **
** Service (smsrxservice) Start **

Fatal signal 11 (SIGSEGV) at 0x002e0064 (code=1), thread 25365 (.home.bt.gsm.kh)

** Service (smsrxservice) Create **
** Service (smsrxservice) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Service (smsrxservice) Start **

Fatal signal 11 (SIGSEGV) at 0x3f800000 (code=1), thread 25542 (.home.bt.gsm.kh)

...

I try to figure it out with google and B4A forum but still no result.
Note that it still work on Sony Xperia Z Ultra with a condition that I give my self some delay (3s) between each process (let say: push menu => menu items show, pause 3s, push on menu item => hid old panel and show new panel, pause 3s, push menu => menu show again, pause 3s, push on other menu item => hid old panel and show other new panel...)
If I do like that, no error, but if I press the menu and then menu item at regular speed or fast speed, I got my program crash without any additional error from Java as usual.


Please help. Also, my NanifestText is as follow:

<uses-sdk
android:minSdkVersion="4"
android:targetSdkVersion="7"/>

<supports-screens
android:xlargeScreens="true"
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>

)

SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")


I add adroid:xlargeScreen="True" but still not solve.

Looking forward to hearing from the forum soon,
 

KY Leng

Member
Licensed User
Longtime User
Yes Erel, I am glad to post it.

Best regards,
 

Attachments

  • Home Security-Eng.txt
    87.8 KB · Views: 466
Upvote 0

KY Leng

Member
Licensed User
Longtime User
The total file size is over 4MB bigger than the allowed size (500KB). So, I could not attach the whole project. Do you have email or whatever that I could send you the file? I also try to look for solution in Google and Android forum before I post my problem, but no result at all that is why I decide to post in this forum.

Hope everyone understand my problem.
 
Upvote 0

KY Leng

Member
Licensed User
Longtime User
It is fine now. I found the answer.
Ok, let me share:

I used customized menu by using a listview

MenuList.Initialize
MenuList.Add("Connect Bluetooth")
MenuList.Add("Disconnect Bluetooth")
MenuList.Add("Main View")
MenuList.Add("GSM Commands")
MenuList.Add("Bluetooth Settings")
MenuList.Add("House Account Settings")
MenuList.Add("Alarm Zone Settings")
MenuList.Add("Alarm Name Settings")
MenuList.Add("Exit the Application")


and in Activity_KeyPress, I write the code like:

If KeyCode = KeyCodes.KEYCODE_MENU Then
ListInd = InputList(MenuList,"Choose Action:",-1)
'ToastMessageShow("ListInd = " & ListInd, True)
If ListInd = 0 Then mnuConnect_Click
If ListInd = 1 Then mnuDisconnect_Click
If ListInd = 2 Then mnMainCommands_Click
If ListInd = 3 Then mnGSMCommands_Click
If ListInd = 4 Then mnBTSetting_Click
If ListInd = 5 Then mnGSMSetting_Click
If ListInd = 6 Then mnAlarmSetting_Click
If ListInd = 7 Then mnZoneName_Click
If ListInd = 8 Then
ToastMessageShow("Smart Home is Clossing...", True)
Activity_Pause(True)
Activity.Finish
OS.killProcess(OS.myPid)
End If
End If


That is the problem. According to some article in google, it is an internal error of the native android and mostly for android version over 4.X.X. So, I try to use the build-in menu as below

Activity.AddMenuItem("Connect", "mnuConnect")
Activity.AddMenuItem("Disconnect", "mnuDisconnect")
Activity.AddMenuItem("Main", "mnMainCommands")
Activity.AddMenuItem("GSM Commands", "mnGSMCommands")
Activity.AddMenuItem("Bluetooth Settings", "mnBTSetting")
Activity.AddMenuItem("GSM Settings", "mnGSMSetting")
Activity.AddMenuItem("Alarm Settings", "mnAlarmSetting")
Activity.AddMenuItem("Zone Names", "mnZoneName")


And the problem is solved but the menu its self look not nice and cannot be changed to my language. So I decide to use the customized menu with the help from ClsCheckList.bas as below:

LstMenu.Initialize(Me, ScrollViewMenu, "", "BPMenu_Click", "BPMenu_LongClick", 0.6%y)
LstMenu.AddCustomItem(0,Create_IconButton("Connect Bluetooth", DefaultFont,20,LstMenu.Width ),9%y)
LstMenu.AddCustomItem(1,Create_IconButton("Disconnect Bluetooth", DefaultFont,20,LstMenu.Width ),9%y)
LstMenu.AddCustomItem(2,Create_IconButton("Main View", DefaultFont,20,LstMenu.Width ),9%y)
LstMenu.AddCustomItem(3,Create_IconButton("GSM Commands", DefaultFont,20,LstMenu.Width ),9%y)
LstMenu.AddCustomItem(4,Create_IconButton("Bluetooth Settings", DefaultFont,20,LstMenu.Width ),9%y)
LstMenu.AddCustomItem(5,Create_IconButton("House Account Settings", DefaultFont,20,LstMenu.Width ),9%y)
LstMenu.AddCustomItem(6,Create_IconButton("Alarm Zone Settings", DefaultFont,20,LstMenu.Width ),9%y)
LstMenu.AddCustomItem(7,Create_IconButton("Alarm Name Settings", DefaultFont,20,LstMenu.Width ),9%y)
LstMenu.AddCustomItem(8,Create_IconButton("Exit the Application", DefaultFont,20,LstMenu.Width ),9%y)
LstMenu.ResizePanel


Now, my app is fine again. Thank to ClsCheckList.bas (it is not mine but I could not remember the author)

Hope this can be useful for other member.

Best regards,
 
Last edited:
Upvote 0

KY Leng

Member
Licensed User
Longtime User
Can you post the service code?
Have you checked the unfiltered logs?

> Can you post the service code?
My project involve SmsRxService.bas, WidgetService.bas and AsyncStreamService.bas but it is like you said
Going over a large project is difficult. Please try to answer my two questions above.
But still, I can post it if you want.

> Have you checked the unfiltered logs?
Actually, I don't know where is "unfiltered logs". The only log I know is on the B4A editor (right hand side of the window)

I do want to buy the textbook on B4A to improve my knowleadge and coding but I don't know how and what is the content in side it, will it have more detail and explanation than the Beginners GuideV1_6.pdf file you post in the web...
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
There is no good reason to make this call: OS.killProcess(OS.myPid).

You can see the unfiltered logs by unchecking the "filter" checkbox:
SS-2014-08-17_17.50.56.png
 
Upvote 0

KY Leng

Member
Licensed User
Longtime User
Here is the unfiltered log (this is the log of the application around time where the error occurred) and I also highlighted in red color for you as below:

Vibrator off
set_light_buttons : 16777215
interceptKeyTq keycode=82 down=true screenIsOn=true keyguardActive=false policyFlags=2000100 isWakeKey=false
clear
interceptKeyTi keyCode=82 down=true repeatCount=0 keyguardOn=false mHomePressed=false canceled=false
Vibrator on
ImmVibePlayMagSweepEffect 0 55 7874
ViewRoot's KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_MENU, scanCode=139, metaState=0, flags=0x48, repeatCount=0, eventTime=82229117, downTime=82229117, deviceId=8, source=0x101 } to com.android.internal.policy.impl.PhoneWindow$DecorView{420e0db0 V.E..... R.....I. 0,0-768,1280}
milliseconds : 30
getCurrent::mPatternworking : true
getCurrent::mVolumes.size : 0
getCurrent::mJustVibrate false
mPatternIndex : 1 mCurVibration.mPattern[mPatternIndex] : 30
volume vibration pattern's value: 100
clear
ViewRoot's KeyEvent { action=ACTION_UP, keyCode=KEYCODE_MENU, scanCode=139, metaState=0, flags=0x68, repeatCount=0, eventTime=82229150, downTime=82229117, deviceId=8, source=0x101 } to com.android.internal.policy.impl.PhoneWindow$DecorView{420e0db0 V.E..... R.....I. 0,0-768,1280}
interceptKeyTq keycode=82 down=false screenIsOn=true keyguardActive=false policyFlags=2000100 isWakeKey=false


interceptKeyTi keyCode=82 down=false repeatCount=0 keyguardOn=false mHomePressed=false canceled=false
ViewRoot's KeyEvent { action=ACTION_UP, keyCode=KEYCODE_MENU, scanCode=139, metaState=0, flags=0x48, repeatCount=0, eventTime=82229204, downTime=82229117, deviceId=8, source=0x101 } to com.android.internal.policy.impl.PhoneWindow$DecorView{420ed5d8 V.E..... R.....ID 0,0-640,1230}
[LGE][VOLD][NetlinkHandler.cpp][onEvent()] subsys:cpu, action:0


Thread[GAThread,5,main]: No campaign data found.


[LGE][VOLD][NetlinkHandler.cpp][onEvent()] subsys:cpu, action:0


ViewRoot's Touch Event : ACTION_DOWN


ViewRoot's Touch Event : ACTION_UP


Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@42830970 attribute=null, token = android.os.BinderProxy@425ebea0


isShowingBubblePopup : false
isShowingBubblePopup : false
isShowingBubblePopup : false
isShowingBubblePopup : false
isShowingBubblePopup : false
isShowingBubblePopup : false
isShowingBubblePopup : false
Fatal signal 11 (SIGSEGV) at 0x2f4d5347 (code=1), thread 31156 (.home.bt.gsm.kh)


*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***


Build fingerprint: 'lge/geehrc_open_esa/geehrc:4.4.2/KOT49I.E97520a/E97520a.1405604857:user/release-keys'
Revision: '11'
pid: 31156, tid: 31156, name: .home.bt.gsm.kh >>> b4a.home.bt.gsm.kh <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 2f4d5347
Audio hardware entering standby, mixer 0xb4986008, suspend count 0
standby: handle 0xb83a5908 h 0x0
standby handle h 0xb83ba9a0
[LGE][VOLD][NetlinkHandler.cpp][onEvent()] subsys:cpu, action:0


[LGE][VOLD][NetlinkHandler.cpp][onEvent()] subsys:cpu, action:0
r0 00000001 r1 5ff207fc r2 60dfabf0 r3 2f4d5347


r4 5f6a4878 r5 5ff207f0 r6 00000000 r7 00000031
r8 5f6a48c0 r9 00000000 sl 40170811 fp 4017071a
ip 417bfe98 sp beb78258 lr 4174d739 pc 4016e7de cpsr 200b0030
d0 0000000000000000 d1 0000000000000000
d2 0000000000000000 d3 0000000000000000
d4 446a400044110000 d5 41f8000000000000
d6 4418a0004418c000 d7 400000003f800000
d8 0000000000000000 d9 0000000000000000
d10 0000000000000000 d11 0000000000000000
d12 0000000000000000 d13 0000000000000000
d14 0000000000000000 d15 0000000000000000
d16 3738332a3739312a d17 3238383033393730
d18 0075006d0065002f d19 006500740061006c
d20 002f0030002f0064 d21 0065006d006f0048
d22 002d00540042002d d23 002f004d00530047
d24 3ff0000000000000 d25 0000000000000000
d26 3ff0000000000000 d27 0000000000000000
d28 3ff0000000000000 d29 408d480000000000
d30 0000000000000000 d31 0000000000000000
scr 80000010

backtrace:
#00 pc 000107de /system/lib/libutils.so (android::Looper::pollInner(int)+497)
#01 pc 00010879 /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+92)
#02 pc 0006b649 /system/lib/libandroid_runtime.so (android::NativeMessageQueue::pollOnce(_JNIEnv*, int)+22)
#03 pc 0002054c /system/lib/libdvm.so (dvmPlatformInvoke+112)
#04 pc 0005132f /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
#05 pc 000299e0 /system/lib/libdvm.so
#06 pc 00030f48 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
#07 pc 0002e5e0 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
#08 pc 00063af9 /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+392)
#09 pc 0006ba1f /system/lib/libdvm.so
#10 pc 000299e0 /system/lib/libdvm.so
#11 pc 00030f48 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
#12 pc 0002e5e0 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
#13 pc 00063815 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+336)
#14 pc 0004cf17 /system/lib/libdvm.so
#15 pc 0004e17f /system/lib/libandroid_runtime.so
#16 pc 0004eed7 /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+354)
#17 pc 0000109b /system/bin/app_process
#18 pc 0000e5ab /system/lib/libc.so (__libc_init+50)
#19 pc 00000db0 /system/bin/app_process

stack:
beb78218 40247869 /system/lib/libandroid_runtime.so
beb7821c 41700630 [heap]
beb78220 60dfabf0
beb78224 40218609 /system/lib/libandroid_runtime.so (android::MessageQueue::raiseAndClearException(_JNIEnv*, char const*)+16)
beb78228 00000000
beb7822c 00000000
beb78230 60dfabf0
beb78234 41700630 [heap]
beb78238 00000031
beb7823c 40211d1d /system/lib/libandroid_runtime.so (android::NativeInputEventSender::handleEvent(int, int, void*)+68)
beb78240 60dfabf0
beb78244 00000031
beb78248 5f6a4878
beb7824c 5ff207f0
beb78250 00000000
beb78254 4016e7cd /system/lib/libutils.so (android::Looper::pollInner(int)+480)
#00 beb78258 416c8c60
beb7825c 5778cb80 /dev/ashmem/dalvik-LinearAlloc (deleted)
beb78260 416c1030
beb78264 00000001
beb78268 00000031
beb7826c 4017071a /system/lib/libutils.so
beb78270 402224cd /system/lib/libandroid_runtime.so
beb78274 416c1040
beb78278 00000001
beb7827c 587b7cac /system/framework/core.odex
beb78280 00000031
beb78284 00000000
beb78288 59765000 /dev/ashmem/dalvik-aux-structure (deleted)
beb7828c 400eb398
beb78290 00000000
beb78294 00000018
........ ........
#01 beb783a0 00000000
beb783a4 5bc5c918


beb783a8 00000000
beb783ac 41700630 [heap]
beb783b0 416c8e20
beb783b4 beb783d8 [stack]
beb783b8 416c8e18
beb783bc 4021864d /system/lib/libandroid_runtime.so (android::NativeMessageQueue::pollOnce(_JNIEnv*, int)+26)
#02 beb783c0 00000000
beb783c4 41700630 [heap]
beb783c8 57788b60 /dev/ashmem/dalvik-LinearAlloc (deleted)
beb783cc 416c1030
beb783d0 00000000
beb783d4 41721550 /system/lib/libdvm.so (dvmPlatformInvoke+116)

memory near r1:
5ff207dc 00000033 6f74733f 65676172 756d652f
5ff207ec 6574616c 2f302f64 656d6f48 2d54422d
5ff207fc 2f4d5347 00000001 5a6d966b 5a6d966b
5ff2080c 0000003b 400eb13f 400eb1f0 756d652f
5ff2081c 6574616c 2f302f64 656d6f48 2d54422d
5ff2082c 2f4d5347 00000001 5a6d966b 5a6d966b
5ff2083c 00007478 00000038 00000053 00000000
5ff2084c 41400000 3f800000 00000000 00000000
5ff2085c 00000000 00000000 00000000 00000000
5ff2086c 00000000 00000000 00000000 00000000
5ff2087c ff000000 00000000 40800000 0b000506
5ff2088c 5c1150a8 00000004 00000053 00000000
5ff2089c 41400000 3f800000 00000000 00000000
5ff208ac 00000000 00000000 00000000 00000000
5ff208bc 00000000 00000000 00000000 00000000
5ff208cc ff000000 00000000 40800000 0b000506

memory near r2:
60dfabd0 00000040 0000001b 57725738 0000000a
60dfabe0 00000000 00000000 00000001 00000043
60dfabf0 402569ec 1d20042e 6047e398 5bc5c918
60dfac00 402569a8 60dfaba8 00000000 00000007
60dfac10 00000008 00000007 40256a14 60dfc5c8
60dfac20 6956726f 00007765 00000040 00000053
60dfac30 00000000 41400000 3f800000 00000000
60dfac40 00000000 00000000 00000000 00000000
60dfac50 00000000 00000000 00000000 00000000
60dfac60 00000000 ff000000 00000000 40800000
60dfac70 0b000501 5c1150a8 00000004 00000013
60dfac80 00310031 60dfc970 00000010 00000053
60dfac90 00000000 41e00000 3f800000 00000000
60dfaca0 00000000 00000000 00000000 00000000
60dfacb0 00000000 00000000 00000000 00000000
60dfacc0 00000000 ff000000 00000000 40800000

memory near r3:
2f4d5324 ffffffff ffffffff ffffffff ffffffff
2f4d5334 ffffffff ffffffff ffffffff ffffffff
2f4d5344 ffffffff ffffffff ffffffff ffffffff
2f4d5354 ffffffff ffffffff ffffffff ffffffff
2f4d5364 ffffffff ffffffff ffffffff ffffffff
2f4d5374 ffffffff ffffffff ffffffff ffffffff
2f4d5384 ffffffff ffffffff ffffffff ffffffff
2f4d5394 ffffffff ffffffff ffffffff ffffffff
2f4d53a4 ffffffff ffffffff ffffffff ffffffff
2f4d53b4 ffffffff ffffffff ffffffff ffffffff
2f4d53c4 ffffffff ffffffff ffffffff ffffffff
2f4d53d4 ffffffff ffffffff ffffffff ffffffff
2f4d53e4 ffffffff ffffffff ffffffff ffffffff
2f4d53f4 ffffffff ffffffff ffffffff ffffffff
2f4d5404 ffffffff ffffffff ffffffff ffffffff
2f4d5414 ffffffff ffffffff ffffffff ffffffff

memory near r4:
5f6a4858 00000000 00000000 00000000 00000000
5f6a4868 00000000 00000000 00000000 00000073
5f6a4878 40172c38 5bc4b8f8 00000000 00000027
5f6a4888 00000028 00000000 40172af8 00000000
5f6a4898 00000000 00000000 00000010 00000000
5f6a48a8 0000002b 40172b20 5fe1ed30 00000003
5f6a48b8 00000000 00000014 40172b50 5ff25058
5f6a48c8 00000000 00000000 00000014 00000000
5f6a48d8 ffffffff 7fffffff 00000000 0000003b
5f6a48e8 00000002 00000024 420caa18 00000000
5f6a48f8 7379732f 2f6d6574 6d617266 726f7765
5f6a4908 72662f6b 77656d61 2d6b726f 2e736572
5f6a4918 006b7061 000000ab 5f695e68 000079b4
5f6a4928 401a9698 00000000 00000000 00000007
5f6a4938 00000004 401a96c0 00000000 00000000
5f6a4948 00000007 00000004 00000000 5f6a49c8

memory near r5:
5ff207d0 4392a600 424c0000 00000068 00000033
5ff207e0 6f74733f 65676172 756d652f 6574616c


5ff207f0 2f302f64 656d6f48 2d54422d 2f4d5347
5ff20800 00000001 5a6d966b 5a6d966b 0000003b
5ff20810 400eb13f 400eb1f0 756d652f 6574616c
5ff20820 2f302f64 656d6f48 2d54422d 2f4d5347
5ff20830 00000001 5a6d966b 5a6d966b 00007478
5ff20840 00000038 00000053 00000000 41400000
5ff20850 3f800000 00000000 00000000 00000000
5ff20860 00000000 00000000 00000000 00000000
5ff20870 00000000 00000000 00000000 ff000000
5ff20880 00000000 40800000 0b000506 5c1150a8
5ff20890 00000004 00000053 00000000 41400000
5ff208a0 3f800000 00000000 00000000 00000000
5ff208b0 00000000 00000000 00000000 00000000
5ff208c0 00000000 00000000 00000000 ff000000

memory near r8:
5f6a48a0 00000010 00000000 0000002b 40172b20
5f6a48b0 5fe1ed30 00000003 00000000 00000014
5f6a48c0 40172b50 5ff25058 00000000 00000000
5f6a48d0 00000014 00000000 ffffffff 7fffffff
5f6a48e0 00000000 0000003b 00000002 00000024
5f6a48f0 420caa18 00000000 7379732f 2f6d6574
5f6a4900 6d617266 726f7765 72662f6b 77656d61
5f6a4910 2d6b726f 2e736572 006b7061 000000ab
5f6a4920 5f695e68 000079b4 401a9698 00000000
5f6a4930 00000000 00000007 00000004 401a96c0
5f6a4940 00000000 00000000 00000007 00000004
5f6a4950 00000000 5f6a49c8 00000034 00000100
5f6a4960 00000034 00000000 00000000 00000000
5f6a4970 00000000 00010001 00000000 00000000
5f6a4980 00000000 5f6a4ad0 00000008 00000100
5f6a4990 00000008 00000000 00000000 00000000

memory near sl:
401707f0 7665206c 73746e65 25783020 6e6f2078
40170800 6b617720 65722065 70206461 2e657069
40170810 6e674900 6e69726f 6e752067 65707865
40170820 64657463 6f706520 65206c6c 746e6576
40170830 78302073 6f207825 6466206e 20642520
40170840 74616874 20736920 6c206f6e 65676e6f
40170850 65722072 74736967 64657265 6f43002e
40170860 20646c75 20746f6e 61657263 77206574
40170870 20656b61 65706970 6520202e 6f6e7272
40170880 0064253d 6c756f43 6f6e2064 616d2074
40170890 7720656b 20656b61 64616572 70697020
401708a0 6f6e2065 6c622d6e 696b636f 202e676e
401708b0 72726520 253d6f6e 6f430064 20646c75
401708c0 20746f6e 656b616d 6b617720 72772065
401708d0 20657469 65706970 6e6f6e20 6f6c622d
401708e0 6e696b63 20202e67 6e727265 64253d6f

memory near fp:
401706f8 20736570 69687428 70253d73 6872202c
40170708 70253d73 65720029 746c7573 203d2120
40170718 6f4c0030 7265706f 756f4300 6e20646c
40170728 6120746f 636f6c6c 20657461 20534c54
40170738 2e79656b 68747000 64616572 636e6f5f
40170748 61662065 64656c69 43005700 646c756f
40170758 746f6e20 69727720 77206574 20656b61
40170768 6e676973 202c6c61 6e727265 64253d6f
40170778 72724500 7220726f 766f6d65 20676e69
40170788 6c6f7065 7665206c 73746e65 726f6620
40170798 20646620 202c6425 6e727265 64253d6f
401707a8 6c6f5000 6166206c 64656c69 74697720
401707b8 6e612068 656e7520 63657078 20646574
401707c8 6f727265 65202c72 6f6e7272 0064253d
401707d8 6f6e6749 676e6972 656e7520 63657078
401707e8 20646574 6c6f7065 7665206c 73746e65

memory near ip:
417bfe78 400fe9b1 400bd58c 400a9ae0 400af711
417bfe88 400af715 400af53d 400bc640 400a9874
417bfe98 400a9ac0 400a9970 400c9383 400fc925
417bfea8 400fcacd 400bc808 400af399 400af3c1
417bfeb8 400af3b3 400ae74d 400ae767 400ae7ef
417bfec8 400ca96b 400ae1b1 400bcd14 400c863d
417bfed8 400c0da9 400b06a7 400bcb94 400bce60
417bfee8 400bd1f0 400bcd34 400bce00 400bd0a8
417bfef8 400bcd54 40175311 40175445 40175569
417bff08 40175525 400bdae4 400bda48 400bd8dc
417bff18 40098249 400fbdc1 400ca885 400bccd4
417bff28 400bda6c 400d0ffd 400cd1c1 400be6d9
417bff38 400b497d 400bd988 400b4281 400bd920
417bff48 400bd968 400fe91d 400be06c 400bc888
417bff58 400bdcb4 400bd7d8 400fd6a5 400fd071


417bff68 400bc828 400bc788 400ca8bf 400bdd94

memory near sp:
beb78238 00000031 40211d1d 60dfabf0 00000031
beb78248 5f6a4878 5ff207f0 00000000 4016e7cd
beb78258 416c8c60 5778cb80 416c1030 00000001
beb78268 00000031 4017071a 402224cd 416c1040
beb78278 00000001 587b7cac 00000031 00000000
beb78288 59765000 400eb398 00000000 00000018
beb78298 00000018 420c3008 00000001 00000018
beb782a8 417c5e18 597be41c 420cc228 4234c3e0
beb782b8 ffffffff 4234c3e0 41700a98 417774c9
beb782c8 417bfc24 417bfc24 400eb398 00000018
beb782d8 417c5e18 400eb398 00000018 4172dc68
beb782e8 416c1030 416c8c30 00000000 00000000
beb782f8 00000000 00000000 00000000 00000000
beb78308 00000000 00000000 00000000 00000000
beb78318 00000000 00000000 00000000 00000000
beb78328 00000000 00000000 00000000 00000000

code around pc:
4016e7bc 692b68c0 68024639 c008f8d2 47e0682a
4016e7cc 4620b918 f7ff4639 68ebfe95 010cf105
4016e7dc 6818b13b 7c0cf850 f7fc19d8 f8c5fcc4
4016e7ec f06f900c 36010701 428e6d21 4638d3d7
4016e7fc e8bdb049 bf008ff0 00002098 00002125
4016e80c 00002175 0000207c 0000207a 00002114
4016e81c 43f8e92d 46884604 461e4615 20009f08
4016e82c 0914f04f 6ce3e011 65e11c51 3202fb09
4016e83c 2b006893 6850db09 69126811 6028b105
4016e84c 6031b106 603ab1b7 6de2e014 429a6d23
4016e85c b148d3e9 2100b10d b10e6029 60322200
4016e86c 2300b13f e004603b 46414620 feb8f7ff
4016e87c 4603e7eb e8bd4618 000083f8 47f3e92d
4016e88c 46071e0e 46994690 a028f8dd 4642dc0a
4016e89c a000f8cd 46314638 f7ff464b 1c82ffb9
4016e8ac e01dd0f5 f7fe2001 4b0ef905 460d4604

code around lr:
4174d718 bf00bd3e 0007253a fffffe54 000543be
4174d728 00058c5d 2107b510 68004604 fbd1f00a
4174d738 bd104620 4603b537 460c4d12 46194668
4174d748 f7ff447d b1c4ffc7 582d480f 7059f505
4174d758 f7d39001 f505e9ca 21007053 f7de4622
4174d768 b938e9ee 20054909 46234a09 447a4479
4174d778 e966f7d3 f7ffa801 4668ff21 ffd2f7ff
4174d788 bf00bd3e 000724d8 fffffe58 0005434c
4174d798 00058c2e b5374603 a801460d 4c094619
4174d7a8 ff98f7ff 447c4808 a8015821 2a00688a
4174d7b8 f04fbf0c 240034ff f7ff602a 4620ffb3
4174d7c8 bf00bd3e 00072472 fffffe54 4601b513
4174d7d8 a8014614 ff7ef7ff f7d34620 a801e920
4174d7e8 ffa0f7ff b573bd1c 46164601 e9dda801
4174d7f8 f7ff4506 68f3ff6f d5060659 46294620
4174d808 0210f106 eb12f7dd e9c6e001 a8014504

memory map around fault addr 2f4d5347:
(no map below)
(no map for address)
4007c000-4007e000 r-x /system/bin/app_process

snd_use_case_set(): uc_mgr 0xb8374238 identifier _verb value Inactive
Set mixer controls for HiFi enable 0
Setting mixer control: SLIMBUS_0_RX Audio Mixer MultiMedia1, value: 0
Number of modifiers 0
usecase_type is 0
snd_use_case_set(): uc_mgr 0xb8374238 identifier _disdev value Handset
disdev: device Handset not enabled, no need to disable
snd_use_case_set(): uc_mgr 0xb8374238 identifier _disdev value Speaker
Set mixer controls for Speaker enable 0
Setting mixer control: RX3 MIX1 INP1, value: ZERO
Setting mixer control: RX3 MIX1 INP2, value: ZERO
Setting mixer control: RX4 DSM MUX, value: CIC_OUT
Setting mixer control: RX3 Digital Volume, value: 60
Setting mixer control: LINEOUT1 Volume, value: 0
Setting mixer control: LINEOUT3 Volume, value: 0
Setting mixer control: SLIM TX3 MUX, value: ZERO
closeUsbPlaybackIfNothingActive, musbPlaybackState: 0
exitPlaybackThread, mproxypfdPlayback: -1
closeDevice handle 0x0
closeDevice handle 0x0
releaseWakeLock_l() AudioOut_2
thread 0xb4986008 type 0 TID 871 going to sleep
GC_CONCURRENT freed 1653K, 46% free 9421K/17384K, paused 3ms+3ms, total 32ms
getVibrateVolume vibrateType 2
vibratePattern() volumeIndex 5
Vibrator off
Vibrator on
ImmVibePlayMagSweepEffect 0 55 7874
interceptKeyTq keycode=82 down=true screenIsOn=true keyguardActive=false policyFlags=2000100 isWakeKey=false
 
Upvote 0

KY Leng

Member
Licensed User
Longtime User
The similar problem when I used InputDialog
There is no error when my phone is in Android 4.1.2 but when I upgrade to 4.4.2, I got error when I use InputDialog, and MenuList.
 
Upvote 0

KY Leng

Member
Licensed User
Longtime User
There is no good reason to make this call: OS.killProcess(OS.myPid).

In my code, I use ServiceNotification in Service_Create below:

Sub Service_Create
'ToastMessageShow("SMS Service Start", False)
Try
SI.Initialize2("SI", 999)
Catch
ToastMessageShow("Cannot Initiate SMS Receive", False)
End Try

PE.Initialize("PE")
BatHigh = True

MediaPlayer1.Initialize

ServiceNotification.Initialize
ServiceNotification.Icon = "icon"
ServiceNotification.SetInfo("Home Security System (AE&C)","We are monitoring your house...",Main)
ServiceNotification.Sound = True
ServiceNotification.Vibrate = True
ServiceNotification.Light = True
ServiceNotification.OnGoingEvent = True
Service.StartForeground(1,ServiceNotification)
ServiceNotification.Notify(1)
ServiceNotification.Sound = False
ServiceNotification.Vibrate = False

SMSSmartHomeFolderSetting = File.DirRootExternal&"/Home-BT-GSM"
End Sub


And I could not stop my application by simply call the

StopService(AsyncStreamService) and
CancelScheduledService(AsyncStreamService)

So, I decide to use

Activity_Pause(True)
Activity.Finish
OS.killProcess(OS.myPid)


to kill my application completely.
If you have any commends, please tell me, I do want to learn more.

Best regards,[/quote]
 
Upvote 0
Top