Homescreen fails to start any application - SIGSEGV in binder

Description

Homescreen cannot launch any application.

Error is : "surface for this app(3221) hasn't created yet"  See log below.

 

 

---------------- log -------------

Sep 04 07:53:18 intel-corei7-64 HomeScreen[1328]: Using Wayland-EGL
Sep 04 07:53:19 intel-corei7-64 HomeScreen[1328]: D-Bus: connect to org.agl.windowmanager /windowmanager
Sep 04 07:53:19 intel-corei7-64 HomeScreen[1328]: D-Bus: connect to org.agl.homescreen /Popup
Sep 04 07:53:19 intel-corei7-64 WindowManager[1300]: =[addLayout]=
Sep 04 07:53:19 intel-corei7-64 WindowManager[1300]: addLayout 1 one app, size 1
Sep 04 07:53:19 intel-corei7-64 systemd[1212]: Started AGL reference HomeScreen.
Sep 04 07:53:19 intel-corei7-64 systemd[1212]: Reached target Default.
Sep 04 07:53:19 intel-corei7-64 systemd[1212]: Startup finished in 1.796s.
Sep 04 07:53:19 intel-corei7-64 systemd[1]: Started User Manager for UID 0.
Sep 04 07:53:19 intel-corei7-64 WindowManager[1300]: current layout   : -1
Sep 04 07:53:19 intel-corei7-64 WindowManager[1300]: available layouts: 1
Sep 04 07:53:19 intel-corei7-64 WindowManager[1300]: --[id: 1]--[one app]--
Sep 04 07:53:19 intel-corei7-64 WindowManager[1300]:   1 surface areas
Sep 04 07:53:19 intel-corei7-64 WindowManager[1300]:   -area 0
Sep 04 07:53:19 intel-corei7-64 WindowManager[1300]:     -x     : 0
Sep 04 07:53:19 intel-corei7-64 WindowManager[1300]:     -y     : 218
Sep 04 07:53:19 intel-corei7-64 WindowManager[1300]:     -width : 1080
Sep 04 07:53:19 intel-corei7-64 WindowManager[1300]:     -height: 1487
Sep 04 07:53:19 intel-corei7-64 systemd[1]: Startup finished in 5.880s (kernel) + 7.085s (userspace) = 17.093s.
Sep 04 07:53:19 intel-corei7-64 VideoOnDemand[1274]: Index | MOST | MAC-ADDRESS       | DEV  | INST | ID  | Type  | BW  | Dir | Con-Label | Buffer | State  |DEVICE
Sep 04 07:53:19 intel-corei7-64 VideoOnDemand[1274]: ------|------|-------------------|------|------|----|------|----|----|-----------|--------|--------|------
Sep 04 07:53:19 intel-corei7-64 VideoOnDemand[1274]: ------|------|-------------------|------|------|----|------|----|----|-----------|--------|--------|------
Sep 04 07:53:19 intel-corei7-64 HomeScreen[1328]: name: "POI" icon: "POI" id: "poi@0.1"
Sep 04 07:53:19 intel-corei7-64 HomeScreen[1328]: name: "Dashboard" icon: "Dashboard" id: "dashboard@0.1"
Sep 04 07:53:19 intel-corei7-64 HomeScreen[1328]: name: "Settings" icon: "Settings" id: "settings@0.1"
Sep 04 07:53:19 intel-corei7-64 HomeScreen[1328]: name: "Navigation" icon: "Navigation" id: "navigation@0.1"
Sep 04 07:53:19 intel-corei7-64 HomeScreen[1328]: name: "Phone" icon: "Phone" id: "phone@0.1"
Sep 04 07:53:19 intel-corei7-64 HomeScreen[1328]: name: "HVAC" icon: "HVAC" id: "hvac@0.1"
Sep 04 07:53:19 intel-corei7-64 HomeScreen[1328]: name: "Radio" icon: "Radio" id: "radio@0.1"
Sep 04 07:53:19 intel-corei7-64 HomeScreen[1328]: name: "Mixer" icon: "Mixer" id: "mixer@0.1"
Sep 04 07:53:19 intel-corei7-64 HomeScreen[1328]: name: "MediaPlayer" icon: "Multimedia" id: "mediaplayer@0.1"
Sep 04 07:53:19 intel-corei7-64 HomeScreen[1328]: Using the 'ivi-shell' shell integration

Sep 04 07:53:19 intel-corei7-64 WindowManager[1300]: =[notificationFunc_non_static]=
Sep 04 07:53:19 intel-corei7-64 WindowManager[1300]: Notification from weston!
Sep 04 07:53:19 intel-corei7-64 WindowManager[1300]: =[surfaceCallbackFunction_non_static]=
Sep 04 07:53:19 intel-corei7-64 WindowManager[1300]: surfaceCallbackFunction_non_static changes for surface 4194304
Sep 04 07:53:19 intel-corei7-64 WindowManager[1300]: ILM_NOTIFICATION_CONTENT_AVAILABLE
Sep 04 07:53:20 intel-corei7-64 WindowManager[1300]: =[surfaceCallbackFunction_non_static]=
Sep 04 07:53:20 intel-corei7-64 WindowManager[1300]: surfaceCallbackFunction_non_static changes for surface 4194304
Sep 04 07:53:20 intel-corei7-64 WindowManager[1300]: ILM_NOTIFICATION_CONFIGURED
Sep 04 07:53:20 intel-corei7-64 WindowManager[1300]:   surfaceProperties 4194304
Sep 04 07:53:20 intel-corei7-64 WindowManager[1300]:     surfaceProperties.origSourceWidth: 1080
Sep 04 07:53:20 intel-corei7-64 WindowManager[1300]:     surfaceProperties.origSourceHeight: 1920
Sep 04 07:53:20 intel-corei7-64 WindowManager[1300]: =[addSurfaceToLayer]=
Sep 04 07:53:20 intel-corei7-64 WindowManager[1300]:   surfaceId 4194304
Sep 04 07:53:20 intel-corei7-64 WindowManager[1300]:   layerId 103
Sep 04 07:53:20 intel-corei7-64 WindowManager[1300]: =[surfaceCallbackFunction_non_static]=
Sep 04 07:53:20 intel-corei7-64 WindowManager[1300]: surfaceCallbackFunction_non_static changes for surface 4194304
Sep 04 07:53:20 intel-corei7-64 WindowManager[1300]: ILM_NOTIFICATION_SOURCE_RECT
Sep 04 07:53:20 intel-corei7-64 WindowManager[1300]: =[surfaceCallbackFunction_non_static]=
Sep 04 07:53:20 intel-corei7-64 WindowManager[1300]: surfaceCallbackFunction_non_static changes for surface 4194304
Sep 04 07:53:20 intel-corei7-64 WindowManager[1300]: ILM_NOTIFICATION_DEST_RECT
Sep 04 07:53:20 intel-corei7-64 WindowManager[1300]: =[surfaceCallbackFunction_non_static]=
Sep 04 07:53:20 intel-corei7-64 WindowManager[1300]: surfaceCallbackFunction_non_static changes for surface 4194304
Sep 04 07:53:20 intel-corei7-64 WindowManager[1300]: ILM_NOTIFICATION_VISIBILITY
Sep 04 07:53:20 intel-corei7-64 WindowManager[1300]: =[updateScreen]=
Sep 04 07:53:20 intel-corei7-64 WindowManager[1300]: Layer render order (ivi-layer-id), 0 bgApps:
Sep 04 07:53:20 intel-corei7-64 WindowManager[1300]:   m_showLayers[3]=103
Sep 04 07:53:20 intel-corei7-64 WindowManager[1300]: Screen render order 0, 1 layers
Sep 04 07:53:20 intel-corei7-64 WindowManager[1300]: =[updateScreen]=
Sep 04 07:53:20 intel-corei7-64 WindowManager[1300]: Layer render order (ivi-layer-id), 0 bgApps:
Sep 04 07:53:20 intel-corei7-64 WindowManager[1300]:   m_showLayers[3]=103
Sep 04 07:53:20 intel-corei7-64 WindowManager[1300]: Screen render order 0, 1 layers
Sep 04 07:53:26 intel-corei7-64 kernel: random: crng init done
Sep 04 07:53:26 intel-corei7-64 kernel: random: crng init done
Sep 04 07:53:26 intel-corei7-64 kernel[628]: [   20.382295] random: crng init done
Sep 04 07:53:37 intel-corei7-64 HomeScreen[1328]: launch "mediaplayer@0.1"
Sep 04 07:53:37 intel-corei7-64 systemd[1212]: Created slice afm\x2dappli\x2dmediaplayer.slice.
Sep 04 07:53:37 intel-corei7-64 systemd[1212]: Starting This is a demo application for multimedia...
Sep 04 07:53:37 intel-corei7-64 systemd[1212]: Started This is a demo application for multimedia.
Sep 04 07:53:37 intel-corei7-64 HomeScreen[1328]: pid: 1518
Sep 04 07:53:37 intel-corei7-64 HomeScreen[1328]: makeMeVisible 1518
Sep 04 07:53:37 intel-corei7-64 WindowManager[1300]: =[showAppLayer]=
Sep 04 07:53:37 intel-corei7-64 WindowManager[1300]: id= "mediaplayer@0.1" , pid= 1518
Sep 04 07:53:37 intel-corei7-64 WindowManager[1300]: NOTE: surface for this app(1518) hasn't created yet.
Sep 04 07:53:37 intel-corei7-64 afb-daemon[1518]:  ERROR: ALERT! signal 11 received: Segmentation fault [/usr/src/debug/af-binder/master+gitAUTOINC+170aef20bc-r0/g
Sep 04 07:53:37 intel-corei7-64 afb-daemon[1518]:  ERROR: [BACKTRACE 1/8] /usr/bin/afb-daemon(+0xd143) [0x564a1a857143] [/usr/src/debug/af-binder/master+gitAUTOINC
Sep 04 07:53:37 intel-corei7-64 afb-daemon[1518]:  ERROR: [BACKTRACE 2/8] /usr/bin/afb-daemon(+0xe473) [0x564a1a858473] [/usr/src/debug/af-binder/master+gitAUTOINC
Sep 04 07:53:37 intel-corei7-64 afb-daemon[1518]:  ERROR: [BACKTRACE 3/8] /usr/bin/afb-daemon(sig_monitor+0x92) [0x564a1a875612] [/usr/src/debug/af-binder/master+g
Sep 04 07:53:37 intel-corei7-64 afb-daemon[1518]:  ERROR: [BACKTRACE 4/8] /usr/bin/afb-daemon(+0x29161) [0x564a1a873161] [/usr/src/debug/af-binder/master+gitAUTOIN
Sep 04 07:53:37 intel-corei7-64 afb-daemon[1518]:  ERROR: [BACKTRACE 5/8] /usr/bin/afb-daemon(jobs_start+0x13a) [0x564a1a873bfa] [/usr/src/debug/af-binder/master+g
Sep 04 07:53:37 intel-corei7-64 afb-daemon[1518]:  ERROR: [BACKTRACE 6/8] /usr/bin/afb-daemon(main+0x21e) [0x564a1a85751e] [/usr/src/debug/af-binder/master+gitAUTO
Sep 04 07:53:37 intel-corei7-64 afb-daemon[1518]:  ERROR: [BACKTRACE 7/8] /lib/libc.so.6(__libc_start_main+0xf1) [0x7f3adc16e291] [/usr/src/debug/af-binder/master+
Sep 04 07:53:37 intel-corei7-64 afb-daemon[1518]:  ERROR: [BACKTRACE 8/8] /usr/bin/afb-daemon(_start+0x2a) [0x564a1a85767a] [/usr/src/debug/af-binder/master+gitAUT
Sep 04 07:53:37 intel-corei7-64 afb-daemon[1518]:  ERROR: start aborted: received signal Segmentation fault [/usr/src/debug/af-binder/master+gitAUTOINC+170aef20bc-
Sep 04 07:53:37 intel-corei7-64 afb-daemon[1518]:  ERROR: Terminating signal 15 received: Terminated [/usr/src/debug/af-binder/master+gitAUTOINC+170aef20bc-r0/git/
Sep 04 07:53:37 intel-corei7-64 systemd[1212]: afm-appli-mediaplayer@0.1.service: Main process exited, code=exited, status=1/FAILURE
Sep 04 07:53:37 intel-corei7-64 systemd[1212]: afm-appli-mediaplayer@0.1.service: Unit entered failed state.
Sep 04 07:53:37 intel-corei7-64 systemd[1212]: afm-appli-mediaplayer@0.1.service: Failed with result 'exit-code'.
Sep 04 07:53:41 intel-corei7-64 HomeScreen[1328]: launch "hvac@0.1"
Sep 04 07:53:41 intel-corei7-64 systemd[1212]: Created slice afm\x2dappli\x2dhvac.slice.
Sep 04 07:53:41 intel-corei7-64 systemd[1212]: Starting This is a demo application used to control and dialog with HVAC system...
Sep 04 07:53:41 intel-corei7-64 systemd[1212]: Started This is a demo application used to control and dialog with HVAC system.
Sep 04 07:53:41 intel-corei7-64 HomeScreen[1328]: pid: 1551
Sep 04 07:53:41 intel-corei7-64 HomeScreen[1328]: makeMeVisible 1551
Sep 04 07:53:41 intel-corei7-64 WindowManager[1300]: =[showAppLayer]=
Sep 04 07:53:41 intel-corei7-64 WindowManager[1300]: id= "hvac@0.1" , pid= 1551
Sep 04 07:53:41 intel-corei7-64 WindowManager[1300]: NOTE: surface for this app(1551) hasn't created yet.
Sep 04 07:53:41 intel-corei7-64 kernel: can: controller area network core (rev 20120528 abi 9)
Sep 04 07:53:41 intel-corei7-64 kernel: NET: Registered protocol family 29
Sep 04 07:53:41 intel-corei7-64 kernel[628]: [   35.369823] can: controller area network core (rev 20120528 abi 9)
Sep 04 07:53:41 intel-corei7-64 kernel[628]: [   35.376922] NET: Registered protocol family 29
Sep 04 07:53:41 intel-corei7-64 kernel: can: raw protocol (rev 20120528)
Sep 04 07:53:41 intel-corei7-64 kernel[628]: [   35.391173] can: raw protocol (rev 20120528)
Sep 04 07:53:41 intel-corei7-64 afb-daemon[1551]:  ERROR: [API hvac] ioctl failed [../../git/binding/hvac-demo-binding.c:122,open_can_dev_helper]
Sep 04 07:53:41 intel-corei7-64 afb-daemon[1551]:  ERROR: [API hvac] ioctl failed [../../git/binding/hvac-demo-binding.c:122,open_can_dev_helper]
Sep 04 07:53:41 intel-corei7-64 afb-daemon[1551]:  ERROR: [API hvac] ioctl failed [../../git/binding/hvac-demo-binding.c:122,open_can_dev_helper]
Sep 04 07:53:41 intel-corei7-64 afb-daemon[1551]:  ERROR: [API hvac] ioctl failed [../../git/binding/hvac-demo-binding.c:122,open_can_dev_helper]
Sep 04 07:53:41 intel-corei7-64 afb-daemon[1551]:  ERROR: [API hvac] Open of interface vcan0 failed. Falling back to simulation mode [../../git/binding/hvac-demo-b
Sep 04 07:53:41 intel-corei7-64 afb-daemon[1551]:  ERROR: ALERT! signal 11 received: Segmentation fault [/usr/src/debug/af-binder/master+gitAUTOINC+170aef20bc-r0/g
Sep 04 07:53:41 intel-corei7-64 afb-daemon[1551]:  ERROR: [BACKTRACE 1/8] /usr/bin/afb-daemon(+0xd143) [0x562a4df17143] [/usr/src/debug/af-binder/master+gitAUTOINC
Sep 04 07:53:41 intel-corei7-64 afb-daemon[1551]:  ERROR: [BACKTRACE 2/8] /usr/bin/afb-daemon(+0xe473) [0x562a4df18473] [/usr/src/debug/af-binder/master+gitAUTOINC
Sep 04 07:53:41 intel-corei7-64 afb-daemon[1551]:  ERROR: [BACKTRACE 3/8] /usr/bin/afb-daemon(sig_monitor+0x92) [0x562a4df35612] [/usr/src/debug/af-binder/master+g
Sep 04 07:53:41 intel-corei7-64 afb-daemon[1551]:  ERROR: [BACKTRACE 4/8] /usr/bin/afb-daemon(+0x29161) [0x562a4df33161] [/usr/src/debug/af-binder/master+gitAUTOIN
Sep 04 07:53:41 intel-corei7-64 afb-daemon[1551]:  ERROR: [BACKTRACE 5/8] /usr/bin/afb-daemon(jobs_start+0x13a) [0x562a4df33bfa] [/usr/src/debug/af-binder/master+gSep 04 07:53:26 intel-corei7-64 kernel[628]: [   20.382295] random: crng init done

 

Environment

build from master (4 sep 2017) Intel Minnowboard. Linux 4.8.17

Activity

Show:

Jose Bollo 
September 19, 2017 at 10:53 AM

have you checked whether it is solved or not?

Jose Bollo 
September 5, 2017 at 1:43 PM

I was thinking at first that it was solved by https://gerrit.automotivelinux.org/gerrit/#/c/10763/

But the issue solved by https://gerrit.automotivelinux.org/gerrit/#/c/10763/ has segmentation fault without backtraces. Can you check that using this reviewed commits the issue remains or not?

Tadao Tanikawa 
September 5, 2017 at 1:13 PM
(edited)

This is not issue of either window manager nor ivi-shell.

It looks an issue of binder. There are some errors of binder.

Sep 04 07:53:37 intel-corei7-64 afb-daemon[1518]: ERROR: ALERT! signal 11 received: Segmentation fault [/usr/src/debug/af-binder/master+gitAUTOINC+170aef20bc-r0/g Sep 04 07:53:37 intel-corei7-64 afb-daemon[1518]: ERROR: [BACKTRACE 1/8] /usr/bin/afb-daemon(+0xd143) [0x564a1a857143] [/usr/src/debug/af-binder/master+gitAUTOINC Sep 04 07:53:37 intel-corei7-64 afb-daemon[1518]: ERROR: [BACKTRACE 2/8] /usr/bin/afb-daemon(+0xe473) [0x564a1a858473] [/usr/src/debug/af-binder/master+gitAUTOINC Sep 04 07:53:37 intel-corei7-64 afb-daemon[1518]: ERROR: [BACKTRACE 3/8] /usr/bin/afb-daemon(sig_monitor+0x92) [0x564a1a875612] [/usr/src/debug/af-binder/master+g Sep 04 07:53:37 intel-corei7-64 afb-daemon[1518]: ERROR: [BACKTRACE 4/8] /usr/bin/afb-daemon(+0x29161) [0x564a1a873161] [/usr/src/debug/af-binder/master+gitAUTOIN Sep 04 07:53:37 intel-corei7-64 afb-daemon[1518]: ERROR: [BACKTRACE 5/8] /usr/bin/afb-daemon(jobs_start+0x13a) [0x564a1a873bfa] [/usr/src/debug/af-binder/master+g Sep 04 07:53:37 intel-corei7-64 afb-daemon[1518]: ERROR: [BACKTRACE 6/8] /usr/bin/afb-daemon(main+0x21e) [0x564a1a85751e] [/usr/src/debug/af-binder/master+gitAUTO Sep 04 07:53:37 intel-corei7-64 afb-daemon[1518]: ERROR: [BACKTRACE 7/8] /lib/libc.so.6(__libc_start_main+0xf1) [0x7f3adc16e291] [/usr/src/debug/af-binder/master+ Sep 04 07:53:37 intel-corei7-64 afb-daemon[1518]: ERROR: [BACKTRACE 8/8] /usr/bin/afb-daemon(_start+0x2a) [0x564a1a85767a] [/usr/src/debug/af-binder/master+gitAUT Sep 04 07:53:37 intel-corei7-64 afb-daemon[1518]: ERROR: start aborted: received signal Segmentation fault [/usr/src/debug/af-binder/master+gitAUTOINC+170aef20bc- Sep 04 07:53:37 intel-corei7-64 afb-daemon[1518]: ERROR: Terminating signal 15 received: Terminated [/usr/src/debug/af-binder/master+gitAUTOINC+170aef20bc-r0/git/ Sep 04 07:53:37 intel-corei7-64 systemd[1212]: afm-appli-mediaplayer@0.1.service: Main process exited, code=exited, status=1/FAILURE

BTW the message "surface for this app(3221) hasn't created yet"  doesn't mean any error, it reports the status of window manager for early launched applications.

 

Fixed

Details

Assignee

Reporter

Labels

Contract ID

Components

Affects versions

Priority

Created September 4, 2017 at 3:20 PM
Updated October 11, 2017 at 12:56 PM
Resolved October 10, 2017 at 1:34 PM

Flag notifications