Android Question Ignoring event: sv_scrollchanged

scsjc

Well-Known Member
Licensed User
Hi,
Sometimes i don' know why when load the app dont response at touch the menus.... and get:

.....Ignoring event: sv_scrollchanged....
.....Ignoring event: toolbar_menuitemclick...
.....
....

thanks

B4X:
~i:** Activity (chatirc) Resume **
~i:** Activity (chatirc) Pause, UserClosed =alse **
~i:Ignoring event: sv_scrollchanged 
~i:Ignoring event: toolbar_menuitemclick 
~i:Ignoring event: toolbar_menuitemclick 
~i:Ignoring event: vp_pagechanged 
~i:Ignoring event: vp_pagechanged 
~i:Ignoring event: toolbar_menuitemclick 
~i:Ignoring event: toolbar_menuitemclick 
~i:Ignoring event: toolbar_menuitemclick 
~i:Ignoring event: vp_pagechanged 
~i:Ignoring event: vp_pagechanged
~i:Ignoring event: vp_pagechanged 
vp_pagechanged ~i:Ignoring event: toolbar_menuitemclick ~i:Ignoring event: toolbar_menuitemclick ~i:Ignoring event: toolbar_menuitemclick ~i:Ignoring event: toolbar_menuitemclick ~i:Ignoring event: vp_pagechanged ~i:Ignoring event: toolbar_navigationitemclick ~i:Ignoring event: toolbar_navigationitemclick ~i:Ignoring event: toolbar_navigationitemclick ~i:Ignoring event: toolbar_navigationitemclick ~i:Ignoring event: toolbar_navigationitemclick ~i:Ignoring event: toolbar_navigationitemclick ~i:Ignoring event: toolbar_navigationitemclick
~i:** Activity (chatirc) Pause, UserClosed =alse ** ~e:chatirc_activity_pause (java line: 673)
 
Last edited:

scsjc

Well-Known Member
Licensed User
How are you reading the logs? From the IDE?

Is the screen turned on when it happens?
The activity is paused so there shouldn't be any UI events. Are you using a real device?

-This log is from "Starter --> Application_Error"
-When i'm conected with a real device with B4A in log, obtain the same error...every time i push a ToolBar_MenuItemClick.... i obtain : "Ignoring event: toolbar_menuitemclick" or move Page.....: "Ignoring event: vp_pagechanged"
-The screen is active, and that error is only some some times... (1 time fault, from 20 good or more)
-If i touch continue (move page, toolbar menu click)... the program Hang up
 
Upvote 0

scsjc

Well-Known Member
Licensed User
Something is strange in these logs. You shouldn't see the activity after Activity_Pause is raised.
Today i receive the log from a user...i copy here complet:

B4X:
~i:Ignoring event: sv_scrollchanged
~i:Ignoring event: sv_scrollchanged
~i:Ignoring event: sv_scrollchanged
~i:Ignoring event: sv_scrollchanged
~i:Ignoring event: sv_scrollchanged
~i:Ignoring event: sv_scrollchanged
~i:Ignoring event: sv_scrollchanged
~i:Ignoring event: sv_scrollchanged
~i:Ignoring event: vp_pagechanged
~i:** Activity (chatirc) Pause, UserClosed =alse ** ~e:chatirc_activity_pause (java line: 684) ~e:java.lang.NullPointerException
~e:    at myworldapp.people.com.chatirc._activity_pause(chatirc.java:684)
~e:    at java.lang.reflect.Method.invokeNative(Native Method)
~e:    at java.lang.reflect.Method.invoke(Method.java:515)
~e:    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:179)
~e:    at myworldapp.people.com.chatirc.onPause(chatirc.java:266)
~e:    at android.app.Activity.performPause(Activity.java:5546)
~e:    at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1240)
~e:    at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3324)
~e:    at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3293)
~e:    at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:3271)
~e:    at android.app.ActivityThread.access$1000(ActivityThread.java:166)
~e:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294)
~e:    at android.os.Handler.dispatchMessage(Handler.java:102)
~e:    at android.os.Looper.loop(Looper.java:136)
~e:    at android.app.ActivityThread.main(ActivityThread.java:5584)
~e:    at java.lang.reflect.Method.invokeNative(Native Method)
~e:    at java.lang.reflect.Method.invoke(Method.java:515)
~e:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
~e:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
~e:    at dalvik.system.NativeStart.main(Native Method)
java.lang.NullPointerException
    at myworldapp.people.com.chatirc._activity_pause(chatirc.java:684)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:179)
    at myworldapp.people.com.chatirc.onPause(chatirc.java:266)
    at android.app.Activity.performPause(Activity.java:5546)
    at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1240)
    at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3324)
    at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3293)
    at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:3271)
    at android.app.ActivityThread.access$1000(ActivityThread.java:166)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:136)
    at android.app.ActivityThread.main(ActivityThread.java:5584)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
    at dalvik.system.NativeStart.main(Native Method)


and the code activity_pause

B4X:
Sub Activity_Pause (UserClosed As Boolean)
        If UserClosed=False Then CallSubDelayed3(Starter,"notifi",True, nombresala)
        Log("ChatIRC_Activity_pause:" & LastException)
End Sub
 
Last edited:
Upvote 0

scsjc

Well-Known Member
Licensed User
How do you know that LastException is not null?

If you haven't changed the code since releasing the app then it is worth checking what is line 684 in the Java code.
Forget the line "Log("ChatIRC_Activity_pause:" & LastException)"... im mistake on a copy code.
I try to find the problem... thanks !!
 
Upvote 0
Top