Tool/software: Linux
Surface will not be rendered when screen rotates;
when our app run in android 8.1, there are some errors which can be found in log:
12-21 03:30:38.567 211 211 I ti_hwc : Setting up plane 37 and connecting connector 36 to crtc 38
12-21 03:30:38.576 211 211 E ti_hwc : cannot set CRTC for connector 36 (-22): m
12-21 03:30:38.576 211 211 E ti_hwc : Failed to update display 1
12-21 03:30:39.610 211 211 E ti_hwc : cannot set CRTC for connector 36 (-22): m
12-21 03:30:39.610 211 211 E ti_hwc : Failed to update display 1
12-21 03:30:39.610 211 211 E SurfaceFlinger: [SurfaceView - com.singulato.surfaceviewtest/com.singulato.surfaceviewtest.MainActivity#0] rejecting buffer: bufWidth=150, bufHeight=300, front.active.{w=300, h=150}
12-21 03:30:39.617 211 211 I ti_hwc : Setting up plane 37 and connecting connector 36 to crtc 38
12-21 03:30:39.629 211 211 E ti_hwc : cannot set CRTC for connector 36 (-22): m
12-21 03:30:39.629 211 211 E ti_hwc : Failed to update display 1
12-21 03:30:39.629 211 211 E SurfaceFlinger: [SurfaceView - com.singulato.surfaceviewtest/com.singulato.surfaceviewtest.MainActivity#0] rejecting buffer: bufWidth=150, bufHeight=300, front.active.{w=300, h=150}
The attached files is our test codes and full running log; It looks like there are some bugs.app.1.logSurfaceViewTest.zip