4.2 is crashing due to missing hwcomposer apis
Bug #1081597 reported by
vishal
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro Android |
Fix Released
|
Critical
|
Bernhard Rosenkraenzer |
Bug Description
Tracking panda 4.2 is crashing in hwcomposer. Logs at http://
Changed in linaro-android: | |
importance: | Undecided → Critical |
tags: | added: juice |
summary: |
- tracking panda 4.2 is crashing due to hwcomposer + 4.2 is crashing due to missing hwcomposer apis |
Changed in linaro-android: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Looks like something is calling a NULL pointer here -- this may be caused by acquire() calling mHwc->blank() without checking that for NULL first. Same goes on in HWComposer: :release.
Possible fix:
diff --git a/services/ surfaceflinger/ DisplayHardware /HWComposer. cpp b/services/ surfaceflinger/ DisplayHardware /HWComposer. cpp surfaceflinger/ DisplayHardware /HWComposer. cpp surfaceflinger/ DisplayHardware /HWComposer. cpp :release( int disp) { FATAL_IF( disp >= HWC_NUM_ DISPLAY_ TYPES);
eventControl( disp, HWC_EVENT_VSYNC, 0); t)mHwc- >blank( mHwc, disp, 1); t)mHwc- >blank( mHwc, disp, 1);
index 31d731e..9d37816 100644
--- a/services/
+++ b/services/
@@ -679,14 +679,15 @@ status_t HWComposer:
LOG_
if (mHwc) {
- return (status_
+ if(mHwc->blank)
+ return (status_
}
return NO_ERROR;
}
status_t HWComposer: :acquire( int disp) { FATAL_IF( disp >= HWC_NUM_ DISPLAY_ TYPES); t)mHwc- >blank( mHwc, disp, 0);
LOG_
- if (mHwc) {
+ if (mHwc && mHwc->blank) {
return (status_
}
return NO_ERROR;