matyalatte / libui-rubiks-demo Goto Github PK
View Code? Open in Web Editor NEWSmall and portable app to play with 3x3x3 rubiks cube
License: MIT License
Small and portable app to play with 3x3x3 rubiks cube
License: MIT License
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.