-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]Function named "freeSampleStreamingSession" called "timerQueueCancelTimer", only enter "timerQueueCancelTimer" but not exited, please confirm! #1273
Comments
Can you please post which release/version of the SDK you're using and what platform you're on (i.e. Linux/Mac/Windows) and other important details about your platform? |
Also what is the impact of what you are seeing do you suspect a deadlock? There is nothing blocking in |
A、SDK version is webrtc-sdk-c-update-libwebsockets-4.2-stable,platform is linux,cross-compiling tool named arm-linux-gnueabihf-gcc4.9.4-uclibc1.0.31- |
As I remember I've faces similar problem. Try to add IS_VALID checker to this part of code
to
and modify
The main thing is to Cancel timers before anything. |
Let me confirm it,Is this problem not located at the root cause? Do all debugging prints need to be merged? And why did you block “deinitKvsWebRtc()”? |
The problem was not solved, and it reappeared after the changes were merged.Log is the same as above,only begin but not exit. |
I misunderstood the issue to be linked |
Sorry it appears there was some confusion, I'm linking PRs to the issue so when the correct one is merged I will take care of closing the issue. @August88618 can you confirm if you were able to try the change from @ilyaikik and if it worked for you? I have a PR right now with those changes but I kept |
Do you mean merge all Fix bugs #1279 changes to our branches? |
Didn't understand your first question, sorry. Actually I did not expect that this code will be PRed as it is. It's better to check funtionality) I could clear the code, check it and prepare it for PR if needed. |
@August88618 If you can pull the latest from the develop branch and test it should be fixe there. @ilyaikik feel free to try it as well this should be fixed there as well. |
Closing because this should be resolved on the latest develop branch. |
The problem was not solved, and it reappeared after the changes were merged.Log is the same as above,only begin but not exit. |
I added printing before and after calling the function, as follows:
MUTEX_LOCK(pSampleConfiguration->configurationObjLock);
if (pSampleConfiguration->iceCandidatePairStatsTimerId != MAX_UINT32 && pSampleConfiguration->streamingSessionCount == 0 &&
pSampleConfiguration->iceCandidatePairStatsTimerId != MAX_UINT32) {
AEDA_LOG_INFO(MODULE, "CY1111:timerQueueCancelTimer begin");
CHK_LOG_ERR(timerQueueCancelTimer(pSampleConfiguration->timerQueueHandle, pSampleConfiguration->iceCandidatePairStatsTimerId,
(uint64_t)(uint32_t)pSampleConfiguration));
AEDA_LOG_INFO(MODULE, "CY1111:timerQueueCancelTimer end");
pSampleConfiguration->iceCandidatePairStatsTimerId = MAX_UINT32;
}
MUTEX_UNLOCK(pSampleConfiguration->configurationObjLock);
When our IPC is abnormal,the last time "timerQueueCancelTimer" was called, only begin but not end.The log reference is as follows
errorLog.txt
:
The text was updated successfully, but these errors were encountered: