Last active 10 days ago


Last active 8 months ago

#161 Polyline 10 days ago

Comment by ~eliasnaur on ~eliasnaur/gio

FWIW, I'm working on integrating https://github.com/linebender/piet-gpu (see the "compute" branch). It natively supports stroked paths, including polylines.

#318 Annotations document gone 30 days ago

Ticket created by ~eliasnaur on ~sircmpwn/git.sr.ht

https://man.sr.ht/git.sr.ht/annotations.md is 404. It's linked from https://drewdevault.com/2019/07/08/Announcing-annotations-for-sourcehut.html.

FWIW, I'm debugging an issue where annotation uploads report a 405 Method not allowed. See the end of


However, I can't remember the content of my secret upload-annotations, nor why it succeeds in spite of a 405.

#154 Android problems: emulators are now x86; example has glitch a month ago

Comment by ~eliasnaur on ~eliasnaur/gio

On Tue Aug 25, 2020 at 14:43, ~ceo_of_programming wrote:

The emulator is Android 10; API 30; x86. The device is a Motorola Condor (Moto-e) with Android 7. Go version is 1.14.4 on Debian amd64.

On the emulator logs, I noticed complains about missing OpenGL support and "Unexpected CPU variant for X86 using defaults: x86". Note the capital "X". It also complained about missing instructions, probably because of the ISA mismatch:

Mismatch between dex2oat instruction set features to use (ISA: X86 Feature string: -ssse3,-sse4.1,-sse4.2,-avx,-avx2,-popcnt) and those from CPP defines (ISA: X86 Feature string: ssse3,-sse4.1,-sse4.2,-avx,-avx2,-popcnt) for the command line:

The SSE instruction family is used for vector processing, so I suspect that might be the reason why OpenGL is not working. The device version does not complain about OpenGL not working.

I don't think the device CPU and instruction set have any influence over OpenGL performance and features, since the GPU is a separate processor.

Logs attached. The emulator log is obnoxiously large, if your text editor can't open it, try emacs or 'cat log.txt | egrep "kitchen"'.


The important log message for the emulator is

org.gioui.kitchen: no support for OpenGL ES 3 nor EXT_sRGB

which indicates that your emulator for some reason haven't enabled OpenGL ES 3. The emulator does support ES 3, so you probably need to tweak a configuration somewhere. I found


I didn't find interesting log entries for the Moto E glitchy graphics, but given the GPU chip (Adreno 302) was announced in 2013 I'm not surprised graphics rendering doesn't work well. FWIW, Viktor Ogeman and myself are working towards a replacement renderer based on GPU compute which will be able to run on the CPU, side-stepping (buggy/slow) GPUs.


#157 Apparent loss of patches a month ago

Comment by ~eliasnaur on ~sircmpwn/lists.sr.ht

I have s similar problem for patches to ~eliasnaur/gio-patches. At least two mails appeared in my inbox but not on the mailing list: https://paste.sr.ht/~eliasnaur/4ef2a2a0ef4f62e25d9d94078dd2e2ebd25898f0 and https://paste.sr.ht/~eliasnaur/04be3a9d1c2a547934a977d57ddf6b8769689c4f .

#158 GLFW example fails to run due to missing uniform location a month ago

Comment by ~eliasnaur on ~eliasnaur/gio

The fix https://gioui.org/commit/e214191 should solve the problem. Re-open if not.


#159 widget.Enum.Changed() can return true even if nothing has changed a month ago

Comment by ~eliasnaur on ~eliasnaur/gio


#158 GLFW example fails to run due to missing uniform location a month ago

Comment by ~eliasnaur on ~eliasnaur/gio

Interesting. Does the other examples (hello, kitchen) work on the same setup?

#226 Don't include self-references a month ago

Ticket created by ~eliasnaur on ~sircmpwn/todo.sr.ht

The reporter of https://todo.sr.ht/~eliasnaur/gio/157 included a link to the issue itself in a follow-up, resulting in a " referenced this from #157".

#157 unable dynamic refresh the widget the content ??? a month ago

on ~eliasnaur/gio


#157 unable dynamic refresh the widget the content ??? a month ago

Comment by ~eliasnaur on ~eliasnaur/gio

On Mon Aug 17, 2020 at 02:54, wrote:

the window must be manually clicked before it can be refreshed,unable dynamic refresh the widget the content ???

Please elaborate: Provide a small example of a program that doesn't behave as you expect.

It sounds like you need to use either op.InvalidateOp:


or Window.Invalidate:


depending on your situation.

See also the Gio architecture document, in particular the "Animation" section: