Comments (4)
Hi @gastsail in order to check if the SDK is running into any issues while initializing could you enable the SDK's debug logging (see: https://help.split.io/hc/en-us/articles/360020343291-Android-SDK#logging) and share the logs here?
from android-client.
@agustinona I have tried again and is not triggering any callback even if I put the callback right after the splitFactory.client()
from android-client.
The error log shows this
W Method java.lang.Object androidx.compose.runtime.snapshots.SnapshotStateMap.mutate(kotlin.jvm.functions.Function1) failed lock verification and will run slower.
Common causes for lock verification issues are non-optimized dex code
and incorrect proguard optimizations.
2023-11-01 14:18:53.109 24537-24537 ample.splittest com.example.splittest W Method void androidx.compose.runtime.snapshots.SnapshotStateMap.update(kotlin.jvm.functions.Function1) failed lock verification and will run slower.
2023-11-01 14:18:53.109 24537-24537 ample.splittest com.example.splittest W Method boolean androidx.compose.runtime.snapshots.SnapshotStateMap.removeIf$runtime_release(kotlin.jvm.functions.Function1) failed lock verification and will run slower.
2023-11-01 14:18:53.136 24537-24537 ample.splittest com.example.splittest W Method boolean androidx.compose.runtime.snapshots.SnapshotStateList.conditionalUpdate(kotlin.jvm.functions.Function1) failed lock verification and will run slower.
2023-11-01 14:18:53.136 24537-24537 ample.splittest com.example.splittest W Method java.lang.Object androidx.compose.runtime.snapshots.SnapshotStateList.mutate(kotlin.jvm.functions.Function1) failed lock verification and will run slower.
2023-11-01 14:18:53.136 24537-24537 ample.splittest com.example.splittest W Method void androidx.compose.runtime.snapshots.SnapshotStateList.update(kotlin.jvm.functions.Function1) failed lock verification and will run slower.
2023-11-01 14:18:53.180 24537-24580 SplitSDK com.example.splittest E Error while executing my segments sync task: Network error while retrieving my segments: Error while sending data to https://sdk.split.io/api/mySegments/37f86cb0-6382-11ee-bcc4-229fff831ab4: HttpException: Something happened while retrieving data: Chain validation failed
2023-11-01 14:18:53.180 24537-24589 SplitSDK com.example.splittest E Error while executing splits sync/update task: Network error while fetching feature flagsError while sending data to https://sdk.split.io/api/splitChanges: HttpException: Something happened while retrieving data: Chain validation failed
2023-11-01 14:18:53.301 24537-24591 ProfileInstaller com.example.splittest D Installing profile for com.example.splittest
2023-11-01 14:18:54.182 24537-24572 TrafficStats com.example.splittest D tagSocket(105) with statsTag=0xffffffff, statsUid=-1
2023-11-01 14:18:54.182 24537-24589 TrafficStats com.example.splittest D tagSocket(104) with statsTag=0xffffffff, statsUid=-1
2023-11-01 14:18:54.308 24537-24572 SplitSDK com.example.splittest E Error while executing my segments sync task: Network error while retrieving my segments: Error while sending data to https://sdk.split.io/api/mySegments/37f86cb0-6382-11ee-bcc4-229fff831ab4: HttpException: Something happened while retrieving data: Chain validation failed
2023-11-01 14:18:54.308 24537-24589 SplitSDK com.example.splittest E Error while executing splits sync/update task: Network error while fetching feature flagsError while sending data to https://sdk.split.io/api/splitChanges: HttpException: Something happened while retrieving data: Chain validation failed
2023-11-01 14:18:56.316 24537-24589 TrafficStats com.example.splittest D tagSocket(104) with statsTag=0xffffffff, statsUid=-1
2023-11-01 14:18:56.319 24537-24572 TrafficStats com.example.splittest D tagSocket(105) with statsTag=0xffffffff, statsUid=-1
2023-11-01 14:18:56.551 24537-24572 SplitSDK com.example.splittest E Error while executing my segments sync task: Network error while retrieving my segments: Error while sending data to https://sdk.split.io/api/mySegments/37f86cb0-6382-11ee-bcc4-229fff831ab4: HttpException: Something happened while retrieving data: Chain validation failed
2023-11-01 14:18:56.551 24537-24589 SplitSDK com.example.splittest E Error while executing splits sync/update task: Network error while fetching feature flagsError while sending data to https://sdk.split.io/api/splitChanges: HttpException: Something happened while retrieving data: Chain validation failed
2023-11-01 14:18:58.084 24537-24553 System com.example.splittest W A resource failed to call close.
2023-11-01 14:18:58.106 24537-24598 TrafficStats com.example.splittest D tagSocket(5) with statsTag=0xffffffff, statsUid=-1
2023-11-01 14:19:00.555 24537-24571 TrafficStats com.example.splittest D tagSocket(74) with statsTag=0xffffffff, statsUid=-1
2023-11-01 14:19:00.555 24537-24589 TrafficStats com.example.splittest D tagSocket(103) with statsTag=0xffffffff, statsUid=-1
2023-11-01 14:19:00.648 24537-24571 SplitSDK com.example.splittest E Error while executing my segments sync task: Network error while retrieving my segments: Error while sending data to https://sdk.split.io/api/mySegments/37f86cb0-6382-11ee-bcc4-229fff831ab4: HttpException: Something happened while retrieving data: Chain validation failed
2023-11-01 14:19:01.655 24537-24589 SplitSDK com.example.splittest E Error while executing splits sync/update task: Network error while fetching feature flagsError while sending data to https://sdk.split.io/api/splitChanges: HttpException: Something happened while retrieving data: Chain validation failed
2023-11-01 14:19:08.708 24537-24580 TrafficStats com.example.splittest D tagSocket(60) with statsTag=0xffffffff, statsUid=-1
2023-11-01 14:19:09.067 24537-24580 SplitSDK com.example.splittest E Error while executing my segments sync task: Network error while retrieving my segments: Error while sending data to https://sdk.split.io/api/mySegments/37f86cb0-6382-11ee-bcc4-229fff831ab4: HttpException: Something happened while retrieving data: Chain validation failed
2023-11-01 14:19:09.661 24537-24589 TrafficStats com.example.splittest D tagSocket(60) with statsTag=0xffffffff, statsUid=-1
2023-11-01 14:19:09.924 24537-24589 SplitSDK com.example.splittest E Error while executing splits sync/update task: Network error while fetching feature flagsError while sending data to https://sdk.split.io/api/splitChanges: HttpException: Something happened while retrieving data: Chain validation failed
2023-11-01 14:19:25.078 24537-24572 TrafficStats com.example.splittest D tagSocket(60) with statsTag=0xffffffff, statsUid=-1
2023-11-01 14:19:25.185 24537-24572 SplitSDK com.example.splittest E Error while executing my segments sync task: Network error while retrieving my segments: Error while sending data to https://sdk.split.io/api/mySegments/37f86cb0-6382-11ee-bcc4-229fff831ab4: HttpException: Something happened while retrieving data: Chain validation failed
2023-11-01 14:19:25.926 24537-24589 TrafficStats com.example.splittest D tagSocket(60) with statsTag=0xffffffff, statsUid=-1
2023-11-01 14:19:26.053 24537-24589 SplitSDK com.example.splittest E Error while executing splits sync/update task: Network error while fetching feature flagsError while sending data to https://sdk.split.io/api/splitChanges: HttpException: Something happened while retrieving data: Chain validation failed
2023-11-01 14:19:57.201 24537-24572 TrafficStats com.example.splittest D tagSocket(60) with statsTag=0xffffffff, statsUid=-1
2023-11-01 14:19:57.344 24537-24572 SplitSDK com.example.splittest E Error while executing my segments sync task: Network error while retrieving my segments: Error while sending data to https://sdk.split.io/api/mySegments/37f86cb0-6382-11ee-bcc4-229fff831ab4: HttpException: Something happened while retrieving data: Chain validation failed
2023-11-01 14:19:58.057 24537-24589 TrafficStats com.example.splittest D tagSocket(60) with statsTag=0xffffffff, statsUid=-1
2023-11-01 14:19:58.164 24537-24589 SplitSDK com.example.splittest E Error while executing splits sync/update task: Network error while fetching feature flagsError while sending data to https://sdk.split.io/api/splitChanges: HttpException: Something happened while retrieving data: Chain validation failed
2023-11-01 14:19:59.109 24537-24598 TrafficStats com.example.splittest D tagSocket(60) with statsTag=0xffffffff, statsUid=-1
2023-11-01 14:19:59.215 24537-24598 SplitSDK com.example.splittest E An unexpected error has occurred while receiving stream events from: : HttpException: Something happened while retrieving data: Chain validation failed
from android-client.
@gastsail In this case it seems the SDK is unable to establish a connection to Split's CDN due to a SSL handshake error:
2023-11-01 14:18:53.180 24537-24589 SplitSDK com.example.splittest E Error while executing splits sync/update task: Network error while fetching feature flagsError while sending data to https://sdk.split.io/api/splitChanges: HttpException: Something happened while retrieving data: Chain validation failed
Hence the SDK will not become ready and the callback will not be executed.
Is this happening in an emulator? Could you check is you are running into the issue described here? https://help.split.io/hc/en-us/articles/360042140631-HTTP-Exception-Chain-validation-failed
from android-client.
Related Issues (20)
- Crashes in SplitUpdatesWorker and MySegmentsUpdateWorker HOT 11
- Proguard issue HOT 3
- Fatal Exception: java.lang.NullPointerException SqLitePersistentMySegmentsStorage HOT 4
- name: android.database.sqlite.SQLiteFullException database or disk is full (code 13) HOT 3
- [QUESTION] Best practices for re-initializing Split after shutdown() HOT 6
- Crash CursorWindow.java - Could not allocate CursorWindow HOT 7
- Very slow startup, split consuming 100% CPU HOT 9
- SdkTargetPath.mySegments does not URL encode the Key String HOT 2
- Android Custom Widgets and Keyboard not getting updated Split Partitions Value when Apps is in Background HOT 8
- Creating a Split client on app targeting Android S (API 31) causes crash on Android S devices HOT 9
- App crash on launch after upgrading from 2.7.2 to 2.7.3 HOT 3
- IllegalArgumentException on SDK 31+ devices emulators HOT 3
- A listener was added for SDK_READY on the SDK, which has already fired and won’t be emitted again. The callback won’t be executed. HOT 4
- A listener was added for SDK_READY on the SDK, which has already fired and won’t be emitted again. The callback won’t be executed.
- Any issue not calling `client.destroy() ` before app shut down? HOT 2
- [v2.13.0] NPE on SplitEventTask.onPostExecution HOT 5
- [v2.13.1] Splits with custom targeting rules always return `control` HOT 3
- okhttp3 outdated version HOT 3
- (Network) Instrumentation/Telemetry on top of OkHttp HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-client.