help: Segmentation fault during simple-ivi-share testing

이양우 YangWoo.lee at hyundai-autron.com
Tue Jan 31 00:16:17 EST 2017


In my case, "window->share_buffer.eglimage" was null of redraw function of simple-ivi-share application.

if (window->share_buffer.eglimage != NULL) {
...

Where can I get "EGLImageKHR eglimage;" value or who setting the value?

I may need a basic explanation. If then sorry that my question is stupid.


-----Original Message-----
From: 이양우 [mailto:YangWoo.lee at hyundai-autron.com] 
Sent: Tuesday, January 31, 2017 11:24 AM
To: 'Mizuno, Wataru (ADITJ/SWG)'; 'Ucan, Emre (ADITG/SW1)'; 'genivi-ivi-layer-management at lists.genivi.org'
Cc: 'Ishikawa, Tetsuri (ADITJ/SWG)'; 'securitycheck at denso.co.jp'
Subject: RE: help: Segmentation fault during simple-ivi-share testing

Hello Mizuno.

I'm working on TI J6 board.
This TI board using SGX544 GPU, so I'm using it's libraries and driver instead mesa open source.

Because this TI SDK supporting OpenGL ES 2.0 and EGL 1.4, I thought, it already supporting required API for EGLImages.
And I confirmed required API in its  implemented header file like below.

/usr/include/GLES/glext.h
GL_API void GL_APIENTRY glEGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image);

Do I need more libraries like mesa to run simple-ivi-share application?

-----Original Message-----
From: Mizuno, Wataru (ADITJ/SWG) [mailto:wmizuno at jp.adit-jv.com]
Sent: Friday, January 27, 2017 9:02 PM
To: 이양우; Ucan, Emre (ADITG/SW1); genivi-ivi-layer-management at lists.genivi.org
Cc: Ishikawa, Tetsuri (ADITJ/SWG); securitycheck at denso.co.jp
Subject: RE: help: Segmentation fault during simple-ivi-share testing

Hello,

Your procedure is correct.
Please check you use the Mesa.

The simple-ivi-share cannot get shared buffer without Mesa.

Best regards,

Wataru Mizuno
ADITJ / SWG

+81-(0)566-56-0946

-----Original Message-----
From: genivi-ivi-layer-management [mailto:genivi-ivi-layer-management-bounces at lists.genivi.org] On Behalf Of ???
Sent: Thursday, January 26, 2017 9:14 AM
To: Ucan, Emre (ADITG/SW1); genivi-ivi-layer-management at lists.genivi.org
Subject: RE: help: Segmentation fault during simple-ivi-share testing

Thank you Ucan.

I could compile successfully with your patch and ran it.
But still I don't know how to test it.
Could explain how to test or how to proof it?

I did like below.
1. run Weston-flower sample application(let's say it's id is 10201) 2. Make screen-layer-surface hierarchy with running surface id 10201(id of weston-flower) 3. run "simple-ivi-share 10201"  and check created shared surface id 1000 from surface 10201(using LayerManagerControl surfaces)
   -- I could see two surfaces 10201 and 1000 4. Make screen-layer-surface hierarchy for surface ID 1000 ==> I could not see any image or contents from surface id 1000, It just output black screen.

Also I tried weston-simple-egl application with above flow, but below error message was printed.
Do I have a misunderstanding about simple-ivi-share application?

Specified surface (ID:10229) is invalid
Specified surface (ID:10229) is invalid
Specified surface (ID:10229) is invalid
.....


-----Original Message-----
From: Ucan, Emre (ADITG/SW1) [mailto:eucan at de.adit-jv.com]
Sent: Wednesday, January 25, 2017 10:40 PM
To: 이양우; genivi-ivi-layer-management at lists.genivi.org
Subject: RE: help: Segmentation fault during simple-ivi-share testing

Hi,

I fixed not the compilation error and made a PR for wayland-ivi-extension: https://github.com/GENIVI/wayland-ivi-extension/pull/15

You can try it out.

Best regards

Emre Ucan
Software Group I (ADITG/SW1)

Tel. +49 5121 49 6937

> -----Original Message-----
> From: genivi-ivi-layer-management [mailto:genivi-ivi-layer-management-
> bounces at mailman1.genivi.org] On Behalf Of ???
> Sent: Mittwoch, 25. Januar 2017 06:55
> To: genivi-ivi-layer-management at lists.genivi.org
> Subject: RE: help: Segmentation fault during simple-ivi-share testing
> 
> Hello.
> 
> 
> 
> I debugged it using gdb.
> 
> Result was
> 
> 
> 
> ----------------------------------------------------------------------
> ------
> ----
> 
> Program received signal SIGSEGV, Segmentation fault.
> 
> 0xb6ef2904 in wl_proxy_marshal_constructor ()
> 
>    from /usr/lib/libwayland-client.so.0
> 
> (gdb) bt
> 
> #0  0xb6ef2904 in wl_proxy_marshal_constructor ()
> 
>    from /usr/lib/libwayland-client.so.0
> 
> #1  0x00011adc in ivi_share_get_ivi_share_surface 
> (surface_id=<optimized
> out>,
> 
>     ivi_share=<optimized out>)
> 
>     at
> /usr/src/debug/wayland-ivi-extension/1.10.90-r1/build/protocol/ivi-
> share-client-protocol.h:123
> 
> #2  get_share_surface (display=0xbefff710, window=0xbefff73c)
> 
>     at /usr/src/debug/wayland-ivi-extension/1.10.90-r1/wayland-ivi-
> extension-1.10.90/ivi-layermanagement-examples/simple-ivi-
> share/src/simple-
> ivi-share.c:273
> 
> #3  main (argc=<optimized out>, argv=<optimized out>)
> 
>     at /usr/src/debug/wayland-ivi-extension/1.10.90-r1/wayland-ivi-
> extension-1.10.90/ivi-layermanagement-examples/simple-ivi-
> share/src/simple-
> ivi-share.c:693
> 
> ----------------------------------------------------------------------
> ------
> -----------------------
> 
> 
> 
> So I added missing build configuration “option (IVI_SHARE "Enable 
> ivi_share protocol" ON)”
> 
> 
> 
> But there is still compile problem
> 
> “wayland-ivi-extension-1.10.90/weston-ivi-shell/src/ivi-share.h:25:38:
> fatal error: ivi-controller-interface.h: No such file or directory”
> 
> 
> 
> I couldn’t find “ivi-controller-interface.h” anywhere both
> wayland-ivi- extension and Weston directory.
> 
> 
> 
> 
> 
> From: 이양우 [mailto:YangWoo.lee at hyundai-autron.com]
> Sent: Wednesday, January 25, 2017 1:14 PM
> To: genivi-ivi-layer-management at lists.genivi.org
> Subject: help: Segmentation fault during simple-ivi-share testing
> 
> 
> 
> Hello
> 
> 
> 
> I don’t know, how to test simple-ivi-share application?
> 
> I ran the weston-simple-egl with wayland-ivi-extesnion. and I can get 
> surface ID “17023” through "LayerManagerControl" command
> 
> After then I ran it like "simple-ivi-shell 17023"
> 
> But result was "Segmentation fault"
> 
> Is this the right way? What can I expect after this command?
> 
> I don't know how to test it. Please help me.
> 
> 
> 
> Thank you
> 
> _______________________________________________
> genivi-ivi-layer-management mailing list 
> genivi-ivi-layer-management at mailman1.genivi.org
> http://lists.genivi.org/cgi-bin/mailman/listinfo/genivi-ivi-layer-mana
> gement

_______________________________________________
genivi-ivi-layer-management mailing list genivi-ivi-layer-management at lists.genivi.org
http://lists.genivi.org/mailman/listinfo/genivi-ivi-layer-management




More information about the genivi-ivi-layer-management mailing list