Coder Social home page Coder Social logo

libui-rubiks-demo's People

Contributors

matyalatte avatar

Stargazers

 avatar

Watchers

 avatar

libui-rubiks-demo's Issues

Segmentation fault occurs when the mouse is over the window on Ubuntu

Hi @matyalatte

Thank you for sharing your project.
libui-ng/libui-ng#251 (comment)

I tried this rubiks cube program on Ubuntu.
I found that the program crashes when I move the mouse over the window.
It crashes on the following line

https://github.com/libui-ng/libui-ng/blob/ac1c0d55f8da2dcacb6bc7a4da7702176d0de2da/unix/area.c#L311

static gboolean onCrossing(areaWidget *aw, int left)
{
	uiArea *a = aw->a;

	(*(a->ah->MouseCrossed))(a->ah, a, left);     // here
	uiprivClickCounterReset(a->cc);
	return GDK_EVENT_PROPAGATE;
}
(gdb) print a
$1 = (uiA$1 = (uiArea *) 0x63e0b0
(gdb) print a->ah
$2 = (uiAreaHandler *) 0x7fffffffd970
(gdb) print a->ah->MouseCrossed
$3 = (void (*)(uiAreaHandler *, uiArea *, int)) 0x7fffffffd9a0
Thread 1 Thread 1 "libui_rubiks_de" received signal SIGSEGV, Segmentation fault.
0x00007fffffffd9a0 in ?? ()

If it works fine on non-Unix platforms, it may be a potential bug in libui-ng?


DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=23.10
DISTRIB_CODENAME=mantic
DISTRIB_DESCRIPTION="Ubuntu 23.10"
libgtk-3 3.24.38-5ubuntu1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.