Closed Bendor closed 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.
The same story on Android Studio emulator (android 4.3 as example) see http://prntscr.com/e42v07
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()
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
see also http://prntscr.com/e5muci
Hey @Bendor Thanks for reporting the issue. We found what the problem is and will release a fix in the next version.
Thanks!
@Obaied Could you give the approximate dates of a next release?
We're working on it and we'll try to push a release ASAP. I hope you can be patient with us. Thanks
@Obaied Could you give the latest adjust version number without this problem?
@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
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.
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
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
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):