From owner-freebsd-x11@freebsd.org Wed Jun 26 18:16:42 2019 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 55CF515CEE17 for ; Wed, 26 Jun 2019 18:16:42 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 9D899821D5 for ; Wed, 26 Jun 2019 18:16:41 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: by mailman.ysv.freebsd.org (Postfix) id 6130315CEE15; Wed, 26 Jun 2019 18:16:41 +0000 (UTC) Delivered-To: x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4FAA315CEE14 for ; Wed, 26 Jun 2019 18:16:41 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: from out.migadu.com (out.migadu.com [91.121.223.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.migadu.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C4A2B821D1 for ; Wed, 26 Jun 2019 18:16:39 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: (Migadu outbound); Wed, 26 Jun 2019 18:15:27 +0000 Received: from [192.168.1.127] ([62.122.208.146]) by out.migadu.com (Haraka/2.8.16) with ESMTPSA id BE0E94BB-CA5B-43E1-B529-ABE34B3CC504.1 envelope-from (authenticated bits=0) (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 verify=FAIL); Wed, 26 Jun 2019 18:15:26 +0000 Date: Wed, 26 Jun 2019 21:15:24 +0300 From: Greg V Subject: Re: wayland: gdk error 12 "cannot allocate memory" To: raichoo Cc: x11@freebsd.org Message-Id: <1561572924.40243.0@unrelenting.technology> In-Reply-To: <20190626162920.GA1293@lain.lan> References: <20190626162920.GA1293@lain.lan> X-Mailer: geary/3.34-dev MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed DKIM-Signature: v=1; a=rsa-sha256; bh=sSqmk02tgHElOGLF2Um11sow2BBvPpju2gWVahS8DEs=; c=relaxed/simple; d=unrelenting.technology; h=from:subject:date:to; s=default; b=f0e4QY2xA1nAkW6n12lMrVvzzdzbu/StvIpZbopXLZbTHPGumEkNKEK9bDueGHHhT1QkniFgYbQhaRI9UIAxd6cYEtDcuVxMVQzpDXSp5FzNIQD2u0kcGhw8EiUF8O0Pb+U3KZ8fHrpY4FpJ/vl1HRbkHp+nHsdG0DjXlx/I9bI= X-Rspamd-Queue-Id: C4A2B821D1 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.98 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[]; NEURAL_HAM_SHORT(-0.98)[-0.981,0] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jun 2019 18:16:42 -0000 On Wed, Jun 26, 2019 at 18:29, raichoo wrote: > Hi, > > I'm currently developing a wayland compositor and I'm running into an > interesting issue. After a certain amount of views I cannot open any > more and > GDK complains about being unable to allocate memory. Am I doing > something > wrong or is this a shortcoming of the current state of wayland on > FreeBSD? It's failing to allocate timerfds, which were implemented as threads + kernel timers. Now there's a pure kqueue implementation in epoll-shim git master that fixes the problem: https://github.com/jiixyj/epoll-shim/issues/8