adjust / android_sdk

This is the Android SDK of
http://www.adjust.com
Other
593 stars 299 forks source link

Adjust create TOO much threads!! #265

Closed Bendor closed 7 years ago

Bendor commented 7 years ago

On some devices (probably android version < 5.0 ) Adjust creates a lot of treads (thousands per minute!) It strongly flood CPU and GC! _Reprodused on Sony C1905 (android 4.3), Fly IQ4410 quard (android 4.2.1), HTC One X (android 4.2.2), Galaxu Nexus (android 4.3) etc..._
Cannot reproduce on android 5.0 and above! Adjust version 4.11.0

Logs (from Fly IQ4410):

01-31 14:30:36.746 25221-9698/? D/dalvikvm: threadid=57 (Adjust-pool-110591-thread-1ActivityHandler): calling run()
01-31 14:30:36.748 25221-9697/? D/jdwp: sendBufferedRequest : len=0x17
01-31 14:30:36.748 25221-9697/? D/dalvikvm: threadid=55: bye!
01-31 14:30:36.757 25221-9698/? D/dalvikvm: create interp thread : stack size=32KB
01-31 14:30:36.757 25221-9698/? D/dalvikvm: create new thread
01-31 14:30:36.758 25221-9698/? D/dalvikvm: new thread created
01-31 14:30:36.758 25221-9698/? D/dalvikvm: update thread list
01-31 14:30:36.758 25221-9699/? D/dalvikvm: threadid=55: interp stack at 0x6201e000
01-31 14:30:36.758 25221-9699/? D/dalvikvm: threadid=55: created from interp
01-31 14:30:36.758 25221-9698/? D/dalvikvm: start new thread
01-31 14:30:36.758 25221-9698/? D/dalvikvm: threadid=57: exiting
01-31 14:30:36.758 25221-9698/? D/jdwp: sendBufferedRequest : len=0x17
01-31 14:30:36.759 25221-9699/? D/dalvikvm: threadid=55: notify debugger
01-31 14:30:36.759 25221-9699/? D/jdwp: sendBufferedRequest : len=0x6F
01-31 14:30:36.759 25221-9698/? D/dalvikvm: threadid=57: bye!
01-31 14:30:36.759 25221-9699/? D/dalvikvm: threadid=55 (Adjust-pool-110592-thread-1ActivityHandler): calling run()
01-31 14:30:36.770 25221-9699/? D/dalvikvm: create interp thread : stack size=32KB
01-31 14:30:36.770 25221-9699/? D/dalvikvm: create new thread
01-31 14:30:36.770 25221-9699/? D/dalvikvm: new thread created
01-31 14:30:36.770 25221-9699/? D/dalvikvm: update thread list
01-31 14:30:36.770 25221-9700/? D/dalvikvm: threadid=57: interp stack at 0x62026000
01-31 14:30:36.771 25221-9700/? D/dalvikvm: threadid=57: created from interp
01-31 14:30:36.771 25221-9699/? D/dalvikvm: start new thread
01-31 14:30:36.771 25221-9699/? D/dalvikvm: threadid=55: exiting
01-31 14:30:36.771 25221-9699/? D/jdwp: sendBufferedRequest : len=0x17
01-31 14:30:36.771 25221-9700/? D/dalvikvm: threadid=57: notify debugger
01-31 14:30:36.771 25221-9700/? D/jdwp: sendBufferedRequest : len=0x6F
01-31 14:30:36.771 25221-9699/? D/dalvikvm: threadid=55: bye!
01-31 14:30:36.771 25221-9700/? D/dalvikvm: threadid=57 (Adjust-pool-110593-thread-1ActivityHandler): calling run()
01-31 14:30:36.782 25221-9700/? D/dalvikvm: create interp thread : stack size=32KB
01-31 14:30:36.782 25221-9700/? D/dalvikvm: create new thread
01-31 14:30:36.783 25221-9700/? D/dalvikvm: new thread created
01-31 14:30:36.783 25221-9700/? D/dalvikvm: update thread list
01-31 14:30:36.783 25221-9701/? D/dalvikvm: threadid=55: interp stack at 0x6201e000
01-31 14:30:36.783 25221-9701/? D/dalvikvm: threadid=55: created from interp
01-31 14:30:36.783 25221-9700/? D/dalvikvm: start new thread
01-31 14:30:36.783 25221-9700/? D/dalvikvm: threadid=57: exiting
01-31 14:30:36.783 25221-9700/? D/jdwp: sendBufferedRequest : len=0x17
01-31 14:30:36.784 25221-9701/? D/dalvikvm: threadid=55: notify debugger
01-31 14:30:36.785 25221-9701/? D/jdwp: sendBufferedRequest : len=0x6F
01-31 14:30:36.786 25221-9701/? D/dalvikvm: threadid=55 (Adjust-pool-110594-thread-1ActivityHandler): calling run()
01-31 14:30:36.787 25221-9700/? D/dalvikvm: threadid=57: bye!
01-31 14:30:36.798 25221-9701/? D/dalvikvm: create interp thread : stack size=32KB
01-31 14:30:36.798 25221-9701/? D/dalvikvm: create new thread
01-31 14:30:36.798 25221-9701/? D/dalvikvm: new thread created
01-31 14:30:36.798 25221-9701/? D/dalvikvm: update thread list
01-31 14:30:36.799 25221-9702/? D/dalvikvm: threadid=57: interp stack at 0x62026000
01-31 14:30:36.799 25221-9702/? D/dalvikvm: threadid=57: created from interp
01-31 14:30:36.799 25221-9701/? D/dalvikvm: start new thread
01-31 14:30:36.799 25221-9701/? D/dalvikvm: threadid=55: exiting
01-31 14:30:36.799 25221-9701/? D/jdwp: sendBufferedRequest : len=0x17
01-31 14:30:36.799 25221-9701/? D/dalvikvm: threadid=55: bye!
01-31 14:30:36.799 25221-9702/? D/dalvikvm: threadid=57: notify debugger
01-31 14:30:36.799 25221-9702/? D/jdwp: sendBufferedRequest : len=0x6F
01-31 14:30:36.799 25221-9702/? D/dalvikvm: threadid=57 (Adjust-pool-110595-thread-1ActivityHandler): calling run()
01-31 14:30:36.810 25221-9702/? D/dalvikvm: create interp thread : stack size=32KB
01-31 14:30:36.810 25221-9702/? D/dalvikvm: create new thread
01-31 14:30:36.811 25221-9702/? D/dalvikvm: new thread created
01-31 14:30:36.811 25221-9702/? D/dalvikvm: update thread list
01-31 14:30:36.811 25221-9703/? D/dalvikvm: threadid=55: interp stack at 0x6201e000
01-31 14:30:36.811 25221-9703/? D/dalvikvm: threadid=55: created from interp
01-31 14:30:36.811 25221-9702/? D/dalvikvm: start new thread
01-31 14:30:36.811 25221-9702/? D/dalvikvm: threadid=57: exiting
01-31 14:30:36.811 25221-9702/? D/jdwp: sendBufferedRequest : len=0x17
01-31 14:30:36.811 25221-9703/? D/dalvikvm: threadid=55: notify debugger
01-31 14:30:36.811 25221-9703/? D/jdwp: sendBufferedRequest : len=0x6F
01-31 14:30:36.811 25221-9702/? D/dalvikvm: threadid=57: bye!
01-31 14:30:36.812 25221-9703/? D/dalvikvm: threadid=55 (Adjust-pool-110596-thread-1ActivityHandler): calling run()
01-31 14:30:36.822 25221-9703/? D/dalvikvm: create interp thread : stack size=32KB
01-31 14:30:36.822 25221-9703/? D/dalvikvm: create new thread
01-31 14:30:36.823 25221-9703/? D/dalvikvm: new thread created
01-31 14:30:36.823 25221-9704/? D/dalvikvm: threadid=57: interp stack at 0x62026000
01-31 14:30:36.823 25221-9703/? D/dalvikvm: update thread list
01-31 14:30:36.823 25221-9704/? D/dalvikvm: threadid=57: created from interp
01-31 14:30:36.824 25221-9703/? D/dalvikvm: start new thread
01-31 14:30:36.824 25221-9703/? D/dalvikvm: threadid=55: exiting
01-31 14:30:36.824 25221-9704/? D/dalvikvm: threadid=57: notify debugger
01-31 14:30:36.825 25221-9704/? D/jdwp: sendBufferedRequest : len=0x6F
01-31 14:30:36.825 25221-9704/? D/dalvikvm: threadid=57 (Adjust-pool-110597-thread-1ActivityHandler): calling run()
01-31 14:30:36.826 25221-9703/? D/jdwp: sendBufferedRequest : len=0x17
01-31 14:30:36.826 25221-9703/? D/dalvikvm: threadid=55: bye!
01-31 14:30:36.836 25221-9704/? D/dalvikvm: create interp thread : stack size=32KB
01-31 14:30:36.836 25221-9704/? D/dalvikvm: create new thread
01-31 14:30:36.837 25221-9704/? D/dalvikvm: new thread created
01-31 14:30:36.837 25221-9704/? D/dalvikvm: update thread list
01-31 14:30:36.837 25221-9705/? D/dalvikvm: threadid=55: interp stack at 0x6201e000
01-31 14:30:36.837 25221-9705/? D/dalvikvm: threadid=55: created from interp
01-31 14:30:36.837 25221-9704/? D/dalvikvm: start new thread
01-31 14:30:36.837 25221-9704/? D/dalvikvm: threadid=57: exiting
01-31 14:30:36.837 25221-9704/? D/jdwp: sendBufferedRequest : len=0x17
01-31 14:30:36.837 25221-9704/? D/dalvikvm: threadid=57: bye!
01-31 14:30:36.838 25221-9705/? D/dalvikvm: threadid=55: notify debugger
01-31 14:30:36.838 25221-9705/? D/jdwp: sendBufferedRequest : len=0x6F
01-31 14:30:36.838 25221-9705/? D/dalvikvm: threadid=55 (Adjust-pool-110598-thread-1ActivityHandler): calling run()
01-31 14:30:36.849 25221-9705/? D/dalvikvm: create interp thread : stack size=32KB
01-31 14:30:36.849 25221-9705/? D/dalvikvm: create new thread
01-31 14:30:36.849 25221-9705/? D/dalvikvm: new thread created
01-31 14:30:36.849 25221-9705/? D/dalvikvm: update thread list
01-31 14:30:36.849 25221-9706/? D/dalvikvm: threadid=57: interp stack at 0x62026000
01-31 14:30:36.850 25221-9706/? D/dalvikvm: threadid=57: created from interp
01-31 14:30:36.850 25221-9705/? D/dalvikvm: start new thread
01-31 14:30:36.851 25221-9705/? D/dalvikvm: threadid=55: exiting
01-31 14:30:36.852 25221-9706/? D/dalvikvm: threadid=57: notify debugger
01-31 14:30:36.852 25221-9706/? D/jdwp: sendBufferedRequest : len=0x6F
01-31 14:30:36.853 25221-9706/? D/dalvikvm: threadid=57 (Adjust-pool-110599-thread-1ActivityHandler): calling run()
01-31 14:30:36.854 25221-9705/? D/jdwp: sendBufferedRequest : len=0x17
01-31 14:30:36.854 25221-9705/? D/dalvikvm: threadid=55: bye!
01-31 14:30:36.864 25221-9706/? D/dalvikvm: create interp thread : stack size=32KB
01-31 14:30:36.864 25221-9706/? D/dalvikvm: create new thread
01-31 14:30:36.865 25221-9707/? D/dalvikvm: threadid=55: interp stack at 0x6201e000
01-31 14:30:36.865 25221-9707/? D/dalvikvm: threadid=55: created from interp
01-31 14:30:36.865 25221-9706/? D/dalvikvm: new thread created
01-31 14:30:36.866 25221-9706/? D/dalvikvm: update thread list
01-31 14:30:36.866 25221-9706/? D/dalvikvm: start new thread
01-31 14:30:36.866 25221-9706/? D/dalvikvm: threadid=57: exiting
01-31 14:30:36.867 25221-9707/? D/dalvikvm: threadid=55: notify debugger
01-31 14:30:36.867 25221-9707/? D/jdwp: sendBufferedRequest : len=0x6F
01-31 14:30:36.868 25221-9707/? D/dalvikvm: threadid=55 (Adjust-pool-110600-thread-1ActivityHandler): calling run()
01-31 14:30:36.868 25221-9706/? D/jdwp: sendBufferedRequest : len=0x17
01-31 14:30:36.869 25221-9706/? D/dalvikvm: threadid=57: bye!
01-31 14:30:36.878 25221-9707/? D/dalvikvm: create interp thread : stack size=32KB
01-31 14:30:36.879 25221-9707/? D/dalvikvm: create new thread
01-31 14:30:36.879 25221-9707/? D/dalvikvm: new thread created
01-31 14:30:36.879 25221-9707/? D/dalvikvm: update thread list
01-31 14:30:36.880 25221-9708/? D/dalvikvm: threadid=57: interp stack at 0x62026000
01-31 14:30:36.880 25221-9708/? D/dalvikvm: threadid=57: created from interp
01-31 14:30:36.881 25221-9707/? D/dalvikvm: start new thread
01-31 14:30:36.881 25221-9707/? D/dalvikvm: threadid=55: exiting
01-31 14:30:36.881 25221-9707/? D/jdwp: sendBufferedRequest : len=0x17
01-31 14:30:36.882 25221-9707/? D/dalvikvm: threadid=55: bye!
01-31 14:30:36.882 25221-9708/? D/dalvikvm: threadid=57: notify debugger
01-31 14:30:36.882 25221-9708/? D/jdwp: sendBufferedRequest : len=0x6F
01-31 14:30:36.882 25221-9708/? D/dalvikvm: threadid=57 (Adjust-pool-110601-thread-1ActivityHandler): calling run()
01-31 14:30:36.892 25221-9708/? D/dalvikvm: create interp thread : stack size=32KB
01-31 14:30:36.893 25221-9708/? D/dalvikvm: create new thread
01-31 14:30:36.893 25221-9708/? D/dalvikvm: new thread created
01-31 14:30:36.893 25221-9708/? D/dalvikvm: update thread list
01-31 14:30:36.893 25221-9709/? D/dalvikvm: threadid=55: interp stack at 0x6201e000
01-31 14:30:36.893 25221-9709/? D/dalvikvm: threadid=55: created from interp
01-31 14:30:36.893 25221-9708/? D/dalvikvm: start new thread
01-31 14:30:36.893 25221-9708/? D/dalvikvm: threadid=57: exiting
01-31 14:30:36.893 25221-9708/? D/jdwp: sendBufferedRequest : len=0x17
01-31 14:30:36.894 25221-9708/? D/dalvikvm: threadid=57: bye!
01-31 14:30:36.894 25221-9709/? D/dalvikvm: threadid=55: notify debugger
01-31 14:30:36.894 25221-9709/? D/jdwp: sendBufferedRequest : len=0x6F
01-31 14:30:36.894 25221-9709/? D/dalvikvm: threadid=55 (Adjust-pool-110602-thread-1ActivityHandler): calling run()
01-31 14:30:36.904 25221-9709/? D/dalvikvm: create interp thread : stack size=32KB
01-31 14:30:36.904 25221-9709/? D/dalvikvm: create new thread
01-31 14:30:36.905 25221-9709/? D/dalvikvm: new thread created
01-31 14:30:36.905 25221-9709/? D/dalvikvm: update thread list
01-31 14:30:36.905 25221-9710/? D/dalvikvm: threadid=57: interp stack at 0x62026000
01-31 14:30:36.905 25221-9710/? D/dalvikvm: threadid=57: created from interp
01-31 14:30:36.905 25221-9709/? D/dalvikvm: start new thread
01-31 14:30:36.905 25221-9709/? D/dalvikvm: threadid=55: exiting
01-31 14:30:36.906 25221-9710/? D/dalvikvm: threadid=57: notify debugger
01-31 14:30:36.908 25221-9710/? D/jdwp: sendBufferedRequest : len=0x6F
01-31 14:30:36.909 25221-9710/? D/dalvikvm: threadid=57 (Adjust-pool-110603-thread-1ActivityHandler): calling run()
01-31 14:30:36.909 25221-9709/? D/jdwp: sendBufferedRequest : len=0x17
01-31 14:30:36.909 25221-9709/? D/dalvikvm: threadid=55: bye!
01-31 14:30:36.919 25221-9710/? D/dalvikvm: create interp thread : stack size=32KB
01-31 14:30:36.919 25221-9710/? D/dalvikvm: create new thread
01-31 14:30:36.920 25221-9710/? D/dalvikvm: new thread created
01-31 14:30:36.920 25221-9710/? D/dalvikvm: update thread list
01-31 14:30:36.920 25221-9711/? D/dalvikvm: threadid=55: interp stack at 0x6201e000
01-31 14:30:36.920 25221-9711/? D/dalvikvm: threadid=55: created from interp
01-31 14:30:36.920 25221-9710/? D/dalvikvm: start new thread
01-31 14:30:36.920 25221-9710/? D/dalvikvm: threadid=57: exiting
01-31 14:30:36.920 25221-9710/? D/jdwp: sendBufferedRequest : len=0x17
01-31 14:30:36.921 25221-9711/? D/dalvikvm: threadid=55: notify debugger
01-31 14:30:36.921 25221-9711/? D/jdwp: sendBufferedRequest : len=0x6F
01-31 14:30:36.921 25221-9710/? D/dalvikvm: threadid=57: bye!
01-31 14:30:36.921 25221-9711/? D/dalvikvm: threadid=55 (Adjust-pool-110604-thread-1ActivityHandler): calling run()
01-31 14:30:36.931 25221-9711/? D/dalvikvm: create interp thread : stack size=32KB
01-31 14:30:36.932 25221-9711/? D/dalvikvm: create new thread
01-31 14:30:36.932 25221-9711/? D/dalvikvm: new thread created
01-31 14:30:36.932 25221-9711/? D/dalvikvm: update thread list
01-31 14:30:36.934 25221-9712/? D/dalvikvm: threadid=57: interp stack at 0x62026000
01-31 14:30:36.934 25221-9712/? D/dalvikvm: threadid=57: created from interp
01-31 14:30:36.934 25221-9711/? D/dalvikvm: start new thread
01-31 14:30:36.934 25221-9711/? D/dalvikvm: threadid=55: exiting
01-31 14:30:36.934 25221-9711/? D/jdwp: sendBufferedRequest : len=0x17
01-31 14:30:36.935 25221-9712/? D/dalvikvm: threadid=57: notify debugger
01-31 14:30:36.935 25221-9712/? D/jdwp: sendBufferedRequest : len=0x6F
01-31 14:30:36.935 25221-9711/? D/dalvikvm: threadid=55: bye!
01-31 14:30:36.936 25221-9712/? D/dalvikvm: threadid=57 (Adjust-pool-110605-thread-1ActivityHandler): calling run()
01-31 14:30:36.947 25221-9712/? D/dalvikvm: create interp thread : stack size=32KB
01-31 14:30:36.947 25221-9712/? D/dalvikvm: create new thread
01-31 14:30:36.948 25221-9712/? D/dalvikvm: new thread created
01-31 14:30:36.948 25221-9712/? D/dalvikvm: update thread list
01-31 14:30:36.948 25221-9713/? D/dalvikvm: threadid=55: interp stack at 0x6201e000
01-31 14:30:36.949 25221-9713/? D/dalvikvm: threadid=55: created from interp
01-31 14:30:36.949 25221-9712/? D/dalvikvm: start new thread
01-31 14:30:36.950 25221-9713/? D/dalvikvm: threadid=55: notify debugger
01-31 14:30:36.950 25221-9712/? D/dalvikvm: threadid=57: exiting
01-31 14:30:36.951 25221-9713/? D/jdwp: sendBufferedRequest : len=0x6F
01-31 14:30:36.951 25221-9713/? D/dalvikvm: threadid=55 (Adjust-pool-110606-thread-1ActivityHandler): calling run()
01-31 14:30:36.952 25221-9712/? D/jdwp: sendBufferedRequest : len=0x17
01-31 14:30:36.952 25221-9712/? D/dalvikvm: threadid=57: bye!
01-31 14:30:36.962 25221-9713/? D/dalvikvm: create interp thread : stack size=32KB
01-31 14:30:36.962 25221-9713/? D/dalvikvm: create new thread
01-31 14:30:36.963 25221-9713/? D/dalvikvm: new thread created
01-31 14:30:36.963 25221-9713/? D/dalvikvm: update thread list
01-31 14:30:36.963 25221-9714/? D/dalvikvm: threadid=57: interp stack at 0x62026000
01-31 14:30:36.963 25221-9714/? D/dalvikvm: threadid=57: created from interp
01-31 14:30:36.963 25221-9713/? D/dalvikvm: start new thread
01-31 14:30:36.963 25221-9713/? D/dalvikvm: threadid=55: exiting
01-31 14:30:36.963 25221-9713/? D/jdwp: sendBufferedRequest : len=0x17
01-31 14:30:36.963 25221-9714/? D/dalvikvm: threadid=57: notify debugger
01-31 14:30:36.963 25221-9714/? D/jdwp: sendBufferedRequest : len=0x6F
01-31 14:30:36.964 25221-9713/? D/dalvikvm: threadid=55: bye!
01-31 14:30:36.964 25221-9714/? D/dalvikvm: threadid=57 (Adjust-pool-110607-thread-1ActivityHandler): calling run()
01-31 14:30:36.974 25221-9714/? D/dalvikvm: create interp thread : stack size=32KB
01-31 14:30:36.975 25221-9714/? D/dalvikvm: create new thread
01-31 14:30:36.975 25221-9714/? D/dalvikvm: new thread created
01-31 14:30:36.975 25221-9714/? D/dalvikvm: update thread list
01-31 14:30:36.975 25221-9715/? D/dalvikvm: threadid=55: interp stack at 0x6201e000
01-31 14:30:36.975 25221-9715/? D/dalvikvm: threadid=55: created from interp
01-31 14:30:36.975 25221-9714/? D/dalvikvm: start new thread
01-31 14:30:36.975 25221-9714/? D/dalvikvm: threadid=57: exiting
01-31 14:30:36.975 25221-9714/? D/jdwp: sendBufferedRequest : len=0x17
01-31 14:30:36.975 25221-9714/? D/dalvikvm: threadid=57: bye!
01-31 14:30:36.976 25221-9715/? D/dalvikvm: threadid=55: notify debugger
01-31 14:30:36.976 25221-9715/? D/jdwp: sendBufferedRequest : len=0x6F
01-31 14:30:36.976 25221-9715/? D/dalvikvm: threadid=55 (Adjust-pool-110608-thread-1ActivityHandler): calling run()
01-31 14:30:36.986 25221-9715/? D/dalvikvm: create interp thread : stack size=32KB
01-31 14:30:36.986 25221-9715/? D/dalvikvm: create new thread
01-31 14:30:36.987 25221-9715/? D/dalvikvm: new thread created
01-31 14:30:36.987 25221-9715/? D/dalvikvm: update thread list
01-31 14:30:36.987 25221-9716/? D/dalvikvm: threadid=57: interp stack at 0x62026000
01-31 14:30:36.987 25221-9716/? D/dalvikvm: threadid=57: created from interp
01-31 14:30:36.989 25221-9715/? D/dalvikvm: start new thread
01-31 14:30:36.989 25221-9715/? D/dalvikvm: threadid=55: exiting
01-31 14:30:36.990 25221-9716/? D/dalvikvm: threadid=57: notify debugger
01-31 14:30:36.990 25221-9716/? D/jdwp: sendBufferedRequest : len=0x6F
01-31 14:30:36.991 25221-9716/? D/dalvikvm: threadid=57 (Adjust-pool-110609-thread-1ActivityHandler): calling run()
01-31 14:30:36.991 25221-9715/? D/jdwp: sendBufferedRequest : len=0x17
01-31 14:30:36.992 25221-9715/? D/dalvikvm: threadid=55: bye!
01-31 14:30:37.001 25221-9716/? D/dalvikvm: create interp thread : stack size=32KB
01-31 14:30:37.002 25221-9716/? D/dalvikvm: create new thread
01-31 14:30:37.002 25221-9716/? D/dalvikvm: new thread created
01-31 14:30:37.002 25221-9716/? D/dalvikvm: update thread list
01-31 14:30:37.002 25221-9717/? D/dalvikvm: threadid=55: interp stack at 0x6201e000
01-31 14:30:37.002 25221-9717/? D/dalvikvm: threadid=55: created from interp
01-31 14:30:37.003 25221-9716/? D/dalvikvm: start new thread
01-31 14:30:37.003 25221-9716/? D/dalvikvm: threadid=57: exiting
01-31 14:30:37.003 25221-9716/? D/jdwp: sendBufferedRequest : len=0x17
01-31 14:30:37.003 25221-9716/? D/dalvikvm: threadid=57: bye!
01-31 14:30:37.003 25221-9717/? D/dalvikvm: threadid=55: notify debugger
01-31 14:30:37.003 25221-9717/? D/jdwp: sendBufferedRequest : len=0x6F
01-31 14:30:37.003 25221-9717/? D/dalvikvm: threadid=55 (Adjust-pool-110610-thread-1ActivityHandler): calling run()
...
nonelse commented 7 years ago

Hi @Bendor. We do have a custom Executor that you can see it here, but we have not noticied this pattern before. Can you turn on verbose logging in the adjust sdk to see if it's logging at the same time? What sort of calls are being made to the sdk? Maybe you can provide short snippet as an example. Can this be replicated with one of the emulators provided by Android Studio? If so, it would make testing for it more easy. Thanks.

Bendor commented 7 years ago

The same story on Android Studio emulator (android 4.3 as example) see http://prntscr.com/e42v07

Bendor commented 7 years ago

Logs:


02-03 19:41:42.171 20584-20584/com.viber.voip I/ViberApplication:  onActivityPaused com.viber.voip.HomeActivity@414a1d88 
02-03 19:41:42.172 20584-20584/com.viber.voip D/AnalyticsManager:  getTracker class=AdjustAnalytics
02-03 19:41:42.173 20584-20584/com.viber.voip D/AdjustAnalyticsImpl:  onPause
02-03 19:41:42.174 20584-20591/com.viber.voip D/jdwp: processIncoming
02-03 19:41:42.174 20584-20591/com.viber.voip D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x40000758, flags=0x0, dataLen=0x9
02-03 19:41:42.174 20584-20591/com.viber.voip D/jdwp: sendBufferedRequest : len=0x34
02-03 19:41:42.175 20584-20584/com.viber.voip D/dalvikvm: create interp thread : stack size=32KB
02-03 19:41:42.175 20584-20584/com.viber.voip D/dalvikvm: create new thread
02-03 19:41:42.176 20584-20584/com.viber.voip D/dalvikvm: new thread created
02-03 19:41:42.176 20584-20584/com.viber.voip D/dalvikvm: update thread list
02-03 19:41:42.178 20584-21074/com.viber.voip D/dalvikvm: threadid=51: interp stack at 0x620d5000
02-03 19:41:42.178 20584-21074/com.viber.voip D/dalvikvm: threadid=51: created from interp
02-03 19:41:42.178 20584-20584/com.viber.voip D/dalvikvm: start new thread
02-03 19:41:42.179 20584-20584/com.viber.voip D/AppBackgroundChecker:  notifyActivityForeground className:class com.viber.voip.HomeActivity isForeground:false
02-03 19:41:42.179 20584-20584/com.viber.voip V/AppBackgroundChecker:  onActivityForegroundStateChanged: isOnForeground=false, className=class com.viber.voip.HomeActivity
02-03 19:41:42.181 20584-20584/com.viber.voip I/PhoneFragment:  onPause
02-03 19:41:42.182 20584-21074/com.viber.voip D/dalvikvm: threadid=51: notify debugger
02-03 19:41:42.192 20584-20584/com.viber.voip W/Trace: Unexpected value from nativeGetEnabledTags: 0
02-03 19:41:42.195 20584-20584/com.viber.voip I/WebProcessMonitor.MAIN:  scheduleChecker
02-03 19:41:42.199 20584-20584/com.viber.voip D/ViberApplication:  mIsTablet=false
02-03 19:41:42.200 20584-21074/com.viber.voip D/dalvikvm: threadid=51 (Adjust-pool-11-thread-1ActivityHandler): calling run()
02-03 19:41:42.206 20584-20584/com.viber.voip D/ViberApplication:  mIsTablet=false
02-03 19:41:42.208 20584-20584/com.viber.voip D/PublicChatsActivity:  onCreate: mIsFeedEnabled=false
02-03 19:41:42.218 20584-20584/com.viber.voip I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.
02-03 19:41:42.228 20584-20584/com.viber.voip I/ViberListFragment:  onAttach called
02-03 19:41:42.229 20584-20584/com.viber.voip D/ViberApplication:  mIsTablet=false
02-03 19:41:42.232 20584-20584/com.viber.voip I/OperatorSceneNotifierControllerFactory:  Create Stub notifier controller for deprecated scene: PublicGroupsFragment{41b9aed8 #0 id=0x7f110114}
02-03 19:41:42.235 20584-21074/com.viber.voip V/Adjust: Foreground timer is already suspended
02-03 19:41:42.239 20584-20584/com.viber.voip D/skia: Flag is not 10
02-03 19:41:42.241 20584-21074/com.viber.voip V/Adjust: Subsession end
02-03 19:41:42.243 20584-20584/com.viber.voip D/skia: Flag is not 10
02-03 19:41:42.252 20584-20584/com.viber.voip D/AbsListView: checkAbsListViewlLogProperty get invalid command
02-03 19:41:42.259 20584-20584/com.viber.voip D/skia: Flag is not 10
02-03 19:41:42.316 20584-20584/com.viber.voip D/skia: Flag is not 10
02-03 19:41:42.319 20584-20584/com.viber.voip D/skia: Flag is not 10
02-03 19:41:42.322 20584-20584/com.viber.voip D/skia: Flag is not 10
02-03 19:41:42.327 20584-20584/com.viber.voip D/ViberApplication:  mIsTablet=false
02-03 19:41:42.329 20584-20584/com.viber.voip I/BaseViberFragmentActivity:  setContentView time = 120
02-03 19:41:42.335 20584-20584/com.viber.voip D/AnalyticsManager:  eventTriggered event=MixpanelEvent: name=public chat, enabled=true, isRegistrationEvent=false, properties={"source":"unknown","action":"public chats screen displayed"}
02-03 19:41:42.339 20584-20584/com.viber.voip W/Trace: Unexpected value from nativeGetEnabledTags: 0
02-03 19:41:42.344 20584-20584/com.viber.voip D/ViberApplication:  mIsTablet=false
02-03 19:41:42.346 20584-20584/com.viber.voip D/ViberApplication:  mIsTablet=false
02-03 19:41:42.347 20584-20584/com.viber.voip D/ViberApplication:  mIsTablet=false
02-03 19:41:42.351 20584-20584/com.viber.voip D/ViberApplication:  mIsTablet=false
02-03 19:41:42.352 20584-20584/com.viber.voip V/Provider/Settings:  from settings cache , name = date_format , value = dd-MM-yyyy
02-03 19:41:42.353 20584-20584/com.viber.voip V/Provider/Settings:  from settings cache , name = time_12_24 , value = 24
02-03 19:41:42.355 20584-20584/com.viber.voip V/LoaderManager: Starting in LoaderManager{418e5968 in HostCallbacks{41abff98}}
02-03 19:41:42.356 20584-20584/com.viber.voip D/RemoteBannerDisplayController:  showBanners: location=PUBLIC_CHATS
02-03 19:41:42.358 20584-20584/com.viber.voip D/RemoteBannerDisplayController:  showBanner: type=BANNER, location=PUBLIC_CHATS, position=BOTTOM
02-03 19:41:42.360 20584-20620/com.viber.voip V/RemoteBannerDisplayController:  showBanner: no new banners found
02-03 19:41:42.369 20584-20584/com.viber.voip D/RemoteBannerDisplayController:  showBanners: location=PUBLIC_CHATS
02-03 19:41:42.370 20584-20584/com.viber.voip D/RemoteBannerDisplayController:  showBanner: type=BANNER, location=PUBLIC_CHATS, position=BOTTOM
02-03 19:41:42.371 20584-21074/com.viber.voip D/Adjust: Wrote Activity state: ec:2 sc:5 ssc:2 sl:957.1 ts:945.8 la:11:12:13 uuid:ef634fa9-991f-44ff-8bd5-181c6cebb4ee
02-03 19:41:42.371 20584-20584/com.viber.voip D/OperatorSceneNotifierController:  notifyScene
02-03 19:41:42.372 20584-20584/com.viber.voip I/MessageManagerData:  onPublicGrousScreenVisibilityChanged: opened=true
02-03 19:41:42.373 20584-20620/com.viber.voip V/RemoteBannerDisplayController:  showBanner: no new banners found
02-03 19:41:42.373 20584-20584/com.viber.voip W/Trace: Unexpected value from nativeGetEnabledTags: 0
02-03 19:41:42.374 20584-20618/com.viber.voip I/TabBadgesManager:  onPublicGroupsScreenVisibilityChanged: opened=true
02-03 19:41:42.381 20584-21074/com.viber.voip D/dalvikvm: threadid=51: exiting
02-03 19:41:42.381 20584-21074/com.viber.voip D/dalvikvm: threadid=51: bye!
02-03 19:41:42.393 20584-20584/com.viber.voip I/ViberApplication:  onActivityResumed com.viber.voip.messages.conversation.publicaccount.PublicChatsActivity@41abfd90 
02-03 19:41:42.394 20584-20584/com.viber.voip I/LocalPreferencesStorage:  getObject: key=activation_step, ret=8, classObjectShouldHave=class java.lang.Integer, defValue=4
02-03 19:41:42.395 20584-20584/com.viber.voip I/LocalPreferencesStorage:  getObject: key=activation_step, ret=8, classObjectShouldHave=class java.lang.Integer, defValue=4
02-03 19:41:42.395 20584-20584/com.viber.voip D/AnalyticsManager:  getTracker class=AdjustAnalytics
02-03 19:41:42.396 20584-20584/com.viber.voip D/AdjustAnalyticsImpl:  onResume
02-03 19:41:42.397 20584-20584/com.viber.voip D/dalvikvm: create interp thread : stack size=32KB
02-03 19:41:42.397 20584-20584/com.viber.voip D/dalvikvm: create new thread
02-03 19:41:42.397 20584-20584/com.viber.voip D/dalvikvm: new thread created
02-03 19:41:42.397 20584-20584/com.viber.voip D/dalvikvm: update thread list
02-03 19:41:42.397 20584-21083/com.viber.voip D/dalvikvm: threadid=51: interp stack at 0x620d5000
02-03 19:41:42.397 20584-21083/com.viber.voip D/dalvikvm: threadid=51: created from interp
02-03 19:41:42.397 20584-20584/com.viber.voip D/dalvikvm: start new thread
02-03 19:41:42.397 20584-21083/com.viber.voip D/dalvikvm: threadid=51: notify debugger
02-03 19:41:42.397 20584-21083/com.viber.voip D/dalvikvm: threadid=51 (Adjust-pool-12-thread-1ActivityHandler): calling run()
02-03 19:41:42.397 20584-20584/com.viber.voip D/AppBackgroundChecker:  notifyActivityForeground className:class com.viber.voip.messages.conversation.publicaccount.PublicChatsActivity isForeground:true
02-03 19:41:42.397 20584-21083/com.viber.voip V/Adjust: Foreground timer starting
02-03 19:41:42.397 20584-21083/com.viber.voip V/Adjust: Subsession start
02-03 19:41:42.398 20584-21083/com.viber.voip D/dalvikvm: create interp thread : stack size=32KB
02-03 19:41:42.398 20584-20584/com.viber.voip V/AppBackgroundChecker:  onActivityForegroundStateChanged: isOnForeground=true, className=class com.viber.voip.messages.conversation.publicaccount.PublicChatsActivity
02-03 19:41:42.398 20584-21083/com.viber.voip D/dalvikvm: create new thread
02-03 19:41:42.398 20584-21083/com.viber.voip D/dalvikvm: new thread created
02-03 19:41:42.398 20584-21083/com.viber.voip D/dalvikvm: update thread list
02-03 19:41:42.398 20584-21084/com.viber.voip D/dalvikvm: threadid=52: interp stack at 0x620f3000
02-03 19:41:42.398 20584-21084/com.viber.voip D/dalvikvm: threadid=52: created from interp
02-03 19:41:42.398 20584-21083/com.viber.voip D/dalvikvm: start new thread
02-03 19:41:42.399 20584-21084/com.viber.voip D/dalvikvm: threadid=52: notify debugger
02-03 19:41:42.399 20584-21084/com.viber.voip D/dalvikvm: threadid=52 (Adjust-pool-13-thread-1SdkClickHandler): calling run()
02-03 19:41:42.399 20584-20616/com.viber.voip V/Provider/Settings:  from settings cache , name = time_12_24 , value = 24
02-03 19:41:42.399 20584-20616/com.viber.voip V/AppBackgroundChecker:  [onForeground]
02-03 19:41:42.399 20584-20584/com.viber.voip D/DelayedRestoreController:  Check state: 2
02-03 19:41:42.400 20584-21083/com.viber.voip D/dalvikvm: create interp thread : stack size=32KB
02-03 19:41:42.400 20584-20616/com.viber.voip I/BitmapCacheManager:  goOnForeground
02-03 19:41:42.401 20584-20584/com.viber.voip D/dalvikvm: create interp thread : stack size=32KB
02-03 19:41:42.401 20584-20584/com.viber.voip D/dalvikvm: create new thread
02-03 19:41:42.401 20584-20584/com.viber.voip D/dalvikvm: new thread created
02-03 19:41:42.401 20584-20584/com.viber.voip D/dalvikvm: update thread list
02-03 19:41:42.401 20584-20616/com.viber.voip I/FilesCacheManager:  goOnForeground
02-03 19:41:42.402 20584-21083/com.viber.voip D/dalvikvm: create new thread
02-03 19:41:42.402 20584-21083/com.viber.voip D/dalvikvm: new thread created
02-03 19:41:42.402 20584-21083/com.viber.voip D/dalvikvm: update thread list
02-03 19:41:42.402 20584-21086/com.viber.voip D/dalvikvm: threadid=53: interp stack at 0x620fb000
02-03 19:41:42.402 20584-21086/com.viber.voip D/dalvikvm: threadid=53: created from interp
02-03 19:41:42.402 20584-21083/com.viber.voip D/dalvikvm: start new thread
02-03 19:41:42.403 20584-20616/com.viber.voip D/FilesCacheManager:  [stopGarbageFiles]
02-03 19:41:42.403 20584-21083/com.viber.voip V/Adjust: Time span since last activity too short for a new subsession
02-03 19:41:42.403 20584-21086/com.viber.voip D/dalvikvm: threadid=53: notify debugger
02-03 19:41:42.403 20584-21086/com.viber.voip D/dalvikvm: threadid=53 (Adjust-pool-14-thread-1PackageHandler): calling run()
02-03 19:41:42.403 20584-20616/com.viber.voip I/PhonebookSyncManager:  mNormalPhoneAppStateListener: onForeground
02-03 19:41:42.404 20584-21085/com.viber.voip D/dalvikvm: threadid=54: interp stack at 0x62103000
02-03 19:41:42.404 20584-21085/com.viber.voip D/dalvikvm: threadid=54: created from interp
02-03 19:41:42.404 20584-20584/com.viber.voip D/dalvikvm: start new thread
02-03 19:41:42.404 20584-20616/com.viber.voip I/PhonebookSyncManager:  enableTracking: mTrackingEnabled=true enable=true
02-03 19:41:42.404 20584-21085/com.viber.voip D/dalvikvm: threadid=54: notify debugger
02-03 19:41:42.404 20584-21085/com.viber.voip D/dalvikvm: threadid=54 (android.hardware.SystemSensorManager$SensorThread): calling run()
02-03 19:41:42.405 20584-20616/com.viber.voip I/AppBackgroundChecker:  [cancelAlarm]
02-03 19:41:42.406 20584-20616/com.viber.voip I/VoipConnectorService:  eventsReceiver: APP_ON_FOREGROUND
02-03 19:41:42.407 20584-20584/com.viber.voip W/Trace: Unexpected value from nativeGetEnabledTags: 0
02-03 19:41:42.408 20584-20584/com.viber.voip W/Trace: Unexpected value from nativeGetEnabledTags: 0
02-03 19:41:42.409 20584-21084/com.viber.voip D/dalvikvm: threadid=52: exiting
02-03 19:41:42.409 20584-20584/com.viber.voip D/ServiceManager: The name of the service is power
02-03 19:41:42.409 20584-21084/com.viber.voip D/dalvikvm: threadid=52: bye!
02-03 19:41:42.412 20584-20584/com.viber.voip W/Trace: Unexpected value from nativeGetEnabledTags: 0
02-03 19:41:42.415 20584-21086/com.viber.voip D/dalvikvm: threadid=53: exiting
02-03 19:41:42.415 20584-20584/com.viber.voip W/GN_FW_Editor: hideInsertionPointCursorController, mInsertionPointCursorController is null.
02-03 19:41:42.415 20584-20584/com.viber.voip D/GN_FW_Editor: stopSelectionActionMode() 
02-03 19:41:42.415 20584-21083/com.viber.voip D/dalvikvm: create interp thread : stack size=32KB
02-03 19:41:42.416 20584-21086/com.viber.voip D/dalvikvm: threadid=53: bye!
02-03 19:41:42.416 20584-21083/com.viber.voip D/dalvikvm: create new thread
02-03 19:41:42.419 20584-21083/com.viber.voip D/dalvikvm: new thread created
02-03 19:41:42.419 20584-21083/com.viber.voip D/dalvikvm: update thread list
02-03 19:41:42.419 20584-21087/com.viber.voip D/dalvikvm: threadid=52: interp stack at 0x620f3000
02-03 19:41:42.419 20584-21087/com.viber.voip D/dalvikvm: threadid=52: created from interp
02-03 19:41:42.419 20584-21083/com.viber.voip D/dalvikvm: start new thread
02-03 19:41:42.419 20584-21083/com.viber.voip D/dalvikvm: threadid=51: exiting
02-03 19:41:42.420 20584-21083/com.viber.voip D/dalvikvm: threadid=51: bye!
02-03 19:41:42.420 20584-21087/com.viber.voip D/dalvikvm: threadid=52: notify debugger
02-03 19:41:42.420 20584-21087/com.viber.voip D/dalvikvm: threadid=52 (Adjust-pool-15-thread-1ActivityHandler): calling run()
02-03 19:41:42.430 20584-21087/com.viber.voip D/dalvikvm: create interp thread : stack size=32KB
02-03 19:41:42.430 20584-21087/com.viber.voip D/dalvikvm: create new thread
02-03 19:41:42.431 20584-21087/com.viber.voip D/dalvikvm: new thread created
02-03 19:41:42.431 20584-21087/com.viber.voip D/dalvikvm: update thread list
02-03 19:41:42.431 20584-21088/com.viber.voip D/dalvikvm: threadid=51: interp stack at 0x620d5000
02-03 19:41:42.431 20584-21088/com.viber.voip D/dalvikvm: threadid=51: created from interp
02-03 19:41:42.431 20584-21087/com.viber.voip D/dalvikvm: start new thread
02-03 19:41:42.431 20584-21087/com.viber.voip D/dalvikvm: threadid=52: exiting
02-03 19:41:42.432 20584-21088/com.viber.voip D/dalvikvm: threadid=51: notify debugger
02-03 19:41:42.432 20584-21088/com.viber.voip D/dalvikvm: threadid=51 (Adjust-pool-16-thread-1ActivityHandler): calling run()
02-03 19:41:42.432 20584-21087/com.viber.voip D/dalvikvm: threadid=52: bye!
02-03 19:41:42.475 20584-20584/com.viber.voip D/dalvikvm: GC_FOR_ALLOC freed 939K, 14% free 15893K/18352K, paused 41ms, total 41ms
02-03 19:41:42.475 20584-20584/com.viber.voip D/jdwp: sendBufferedRequest : len=0x34
02-03 19:41:42.477 20584-20584/com.viber.voip I/dalvikvm-heap: Grow heap (frag case) to 16.441MB for 846416-byte allocation
02-03 19:41:42.492 20584-20584/com.viber.voip D/skia: Flag is not 10
02-03 19:41:42.515 20584-21088/com.viber.voip D/dalvikvm: GC_FOR_ALLOC freed 20K, 13% free 16699K/19180K, paused 38ms, total 38ms
02-03 19:41:42.516 20584-21088/com.viber.voip D/jdwp: sendBufferedRequest : len=0x34
02-03 19:41:42.517 20584-21088/com.viber.voip D/dalvikvm: create interp thread : stack size=32KB
02-03 19:41:42.518 20584-21088/com.viber.voip D/dalvikvm: create new thread
02-03 19:41:42.518 20584-21088/com.viber.voip D/dalvikvm: new thread created
02-03 19:41:42.519 20584-21088/com.viber.voip D/dalvikvm: update thread list
02-03 19:41:42.519 20584-21089/com.viber.voip D/dalvikvm: threadid=52: interp stack at 0x620f3000
02-03 19:41:42.519 20584-21089/com.viber.voip D/dalvikvm: threadid=52: created from interp
02-03 19:41:42.519 20584-21088/com.viber.voip D/dalvikvm: start new thread
02-03 19:41:42.519 20584-21088/com.viber.voip D/dalvikvm: threadid=51: exiting
02-03 19:41:42.519 20584-21088/com.viber.voip D/dalvikvm: threadid=51: bye!
02-03 19:41:42.519 20584-21089/com.viber.voip D/dalvikvm: threadid=52: notify debugger
02-03 19:41:42.519 20584-21089/com.viber.voip D/dalvikvm: threadid=52 (Adjust-pool-17-thread-1ActivityHandler): calling run()
Bendor commented 7 years ago

My adjust config:

  AdjustConfig config = new AdjustConfig(mContext, AnalyticsConfig.ADJUST_TOKEN, AdjustConfig.ENVIRONMENT_SANDBOX);
        config.setEventBufferingEnabled(!ViberBuildConfig.DEBUG);
        config.setLogLevel(ViberBuildConfig.DEBUG ? LogLevel.VERBOSE : LogLevel.INFO);
        Adjust.onCreate(config);

ViberBuildConfig.DEBUG is true

Bendor commented 7 years ago

see also http://prntscr.com/e5muci

afjoseph commented 7 years ago

Hey @Bendor Thanks for reporting the issue. We found what the problem is and will release a fix in the next version.

Bendor commented 7 years ago

Thanks!

Bendor commented 7 years ago

@Obaied Could you give the approximate dates of a next release?

afjoseph commented 7 years ago

We're working on it and we'll try to push a release ASAP. I hope you can be patient with us. Thanks

Bendor commented 7 years ago

@Obaied Could you give the latest adjust version number without this problem?

afjoseph commented 7 years ago

@Bendor We will release a patch in the next 1-2 weeks to fix this issue. For now, I can't guarantee that previous versions didn't have this issue.

From what I can see, the issue is not causing any crashes since we're just creating the thread and it times out after a certain delay (10ms). Its not a good scenario in any case, but I assure you it won't crash since the overhead is tiny. Also, we're only using 1 thread (that will timeout if unused) to do everything related to Adjust, so it won't affect performance.

I hope you can be patient with us, and thanks again for reporting this issue

MichaelRocks commented 7 years ago

Nevertheless, this issue seems to cause native crashes in libdvm.so. We see quite a lot of them after integrating Adjust into our app. Here's a link to a very similar crash in Spotify that is probably caused by this issue.

uerceg commented 7 years ago

Hi @MichaelRocks and thanks for the reports.

Next SDK patch version (4.11.1) will contain fix for this issue. Will be live beginning next week.

Will keep you posted about the release in this issue.

Cheers

uerceg commented 7 years ago

Hi folks.

This should not happen anymore as of latest SDK release (https://github.com/adjust/android_sdk/releases/tag/v4.11.1).

Feel free to reopen the issue if the problem still occurs with newest SDK version.

Cheers