Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e95aa26 authored by Ady Abraham's avatar Ady Abraham
Browse files

SurfaceFlinger: do not assert if setActiveConfigWithConstraints fails

setActiveConfigWithConstraints may fail if a hotplug event is just about
to be sent. Replace the assert with an ALOGW.

Fixes: 150768854
Test: boot
Change-Id: Idfbfd383cd8942953a996fdda9a82d285c9d1c4f
parent 62e949bc
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1074,7 +1074,9 @@ bool SurfaceFlinger::performSetActiveConfig() {
                                                           mUpcomingActiveConfig.configId.value(),
                                                           constraints, &outTimeline);
    if (status != NO_ERROR) {
        LOG_ALWAYS_FATAL("setActiveConfigWithConstraints failed: %d", status);
        // setActiveConfigWithConstraints may fail if a hotplug event is just about
        // to be sent. We just log the error in this case.
        ALOGW("setActiveConfigWithConstraints failed: %d", status);
        return false;
    }