Touch some edge points of the touchscreen the weston crash

Daniel Stone daniel at fooishbar.org
Wed Jun 29 00:08:44 UTC 2016


Hi,

On 27 June 2016 at 23:27, Ruei, Eric <a0850410 at ti.com> wrote:
> On 6/23/2016 5:17 AM, zhaojinkun wrote:
>>          #2  weston_view_from_global_float (view=0x0, x=-nan(0x7f007c),
>> y=9.18354962e-41, vx=0x7efff658, vy=0x7efff65c) at
>> /usr/src/debug/weston/1.9.0-r0/weston-1.9.0/src/compositor.c:1350
>>          #3  0x00012468 in weston_view_from_global_fixed
>> (view=<optimized out>, x=<optimized out>, y=y at entry=211820,
>> vx=0x7efff690, vx at entry=0x7efff688, vy=0x7efff694, vy at entry=0x7efff68c)
>>              at
>> /usr/src/debug/weston/1.9.0-r0/weston-1.9.0/src/compositor.c:1379
>>          #4  0x00016e28 in default_grab_touch_down (grab=<optimized
>> out>, time=671019, touch_id=0, x=<optimized out>, y=36292) at
>> /usr/src/debug/weston/1.9.0-r0/weston-1.9.0/src/input.c:248
>>          #5  0x00019988 in notify_touch (seat=<optimized out>,
>> time=time at entry=671019, touch_id=touch_id at entry=0, x=-4092, y=36292,
>> touch_type=touch_type at entry=0) at
>> /usr/src/debug/weston/1.9.0-r0/weston-1.9.0/src/input.c:1582
>>
>> So when weston_view_from_global_float() access the view which is null,
>> the weston crash.
>>
> jinkun:
>
> We observed the similar issue. Attached please find our local patch to
> address this issue. It will be great if an official fix can be provided in
> the future release.

This has already been fixed in 1.10:
https://cgit.freedesktop.org/wayland/weston/commit/src/input.c?id=2c40d1d30eabe46706822a8b5c94579aeba58e84

Cheers,
Daniel


More information about the wayland-devel mailing list