akiyosi / goqtframelesswindow Goto Github PK
View Code? Open in Web Editor NEWQt frameless window written in Go
Qt frameless window written in Go
When launch the application, I got the following error.
__debug_bin(59399,0xd10c5c0) malloc: *** error for object 0x14a61710: pointer being freed was not allocated
__debug_bin(59399,0xd10c5c0) malloc: *** set a breakpoint in malloc_error_break to debug
Stopped at: 0x7fff70b99766
=>no source available
Command failed: bad instruction
(dlv) bt
0 0x00007fff70b99766 in ???
at ?:-1
1 0x00007fff70b996b5 in ???
at ?:-1
2 0x00007fff70ca8077 in ???
at ?:-1
3 0x00007fff70ca7e38 in ???
at ?:-1
4 0x000000000abebf19 in ???
at ?:-1
5 0x000000000abeca0d in ???
at ?:-1
6 0x000000000ab88a2e in ???
at ?:-1
7 0x00000000056adf4a in ???
at ?:-1
8 0x00000000055e5f71 in C._cgo_2e293618a95b_Cfunc_QWidget_EventDefault
at /tmp/go-build/cgo-gcc-prolog:116824
9 0x000000000406bb50 in runtime.asmcgocall
at /Users/akiyosi/.goenv/versions/1.11.4/src/runtime/asm_amd64.s:637
10 0x0000000000000000 in ???
at ?:-1
11 0x0000000004ae04ba in github.com/therecipe/qt/widgets._Cfunc_QWidget_EventDefault
at _cgo_gotypes.go:101876
12 0x0000000004f202be in github.com/therecipe/qt/widgets.(*QWidget).EventDefault.func1
at /Users/akiyosi/go/src/github.com/therecipe/qt/widgets/widgets.go:103272
13 0x0000000004dca412 in github.com/therecipe/qt/widgets.(*QWidget).EventDefault
at /Users/akiyosi/go/src/github.com/therecipe/qt/widgets/widgets.go:103272
14 0x0000000004dc9f80 in github.com/therecipe/qt/widgets.callbackQWidget_Event
at /Users/akiyosi/go/src/github.com/therecipe/qt/widgets/widgets.go:103238
15 0x0000000004b3c0fa in github.com/therecipe/qt/widgets._cgoexpwrap_2e293618a95b_callbackQWidget_Event
at _cgo_gotypes.go:129462
16 0x000000000406a6bb in runtime.call32
at /Users/akiyosi/.goenv/versions/1.11.4/src/runtime/asm_amd64.s:522
17 0x000000000400d21b in runtime.cgocallbackg1
at /Users/akiyosi/.goenv/versions/1.11.4/src/runtime/cgocall.go:313
18 0x000000000400cfe9 in runtime.cgocallbackg
at /Users/akiyosi/.goenv/versions/1.11.4/src/runtime/cgocall.go:191
19 0x000000000406bc8b in runtime.cgocallback_gofunc
at /Users/akiyosi/.goenv/versions/1.11.4/src/runtime/asm_amd64.s:775
20 0x000000000406bb22 in runtime.asmcgocall
at /Users/akiyosi/.goenv/versions/1.11.4/src/runtime/asm_amd64.s:622
21 0x000000000400cee2 in runtime.cgocall
at /Users/akiyosi/.goenv/versions/1.11.4/src/runtime/cgocall.go:131
22 0x000000000513e975 in github.com/akiyosi/goqtframelesswindow._Cfunc_QFramelessWindowd04616_SetVisibleDefault
at _cgo_gotypes.go:957
23 0x000000000514df14 in github.com/akiyosi/goqtframelesswindow.(*QFramelessWindow).SetVisibleDefault.func1
at /Users/akiyosi/go/src/github.com/akiyosi/goqtframelesswindow/moc.go:1218
24 0x0000000005148f45 in github.com/akiyosi/goqtframelesswindow.(*QFramelessWindow).SetVisibleDefault
at /Users/akiyosi/go/src/github.com/akiyosi/goqtframelesswindow/moc.go:1218
25 0x0000000005148ea8 in github.com/akiyosi/goqtframelesswindow.callbackQFramelessWindowd04616_SetVisible
at /Users/akiyosi/go/src/github.com/akiyosi/goqtframelesswindow/moc.go:1212
26 0x0000000005141ab4 in github.com/akiyosi/goqtframelesswindow._cgoexpwrap_675b43108fee_callbackQFramelessWindowd04616_SetVisible
at _cgo_gotypes.go:2354
27 0x000000000406a6bb in runtime.call32
at /Users/akiyosi/.goenv/versions/1.11.4/src/runtime/asm_amd64.s:522
28 0x000000000400d21b in runtime.cgocallbackg1
at /Users/akiyosi/.goenv/versions/1.11.4/src/runtime/cgocall.go:313
29 0x000000000400cfe9 in runtime.cgocallbackg
at /Users/akiyosi/.goenv/versions/1.11.4/src/runtime/cgocall.go:191
30 0x000000000406bc8b in runtime.cgocallback_gofunc
at /Users/akiyosi/.goenv/versions/1.11.4/src/runtime/asm_amd64.s:775
31 0x000000000406bb22 in runtime.asmcgocall
at /Users/akiyosi/.goenv/versions/1.11.4/src/runtime/asm_amd64.s:622
32 0x000000000400cee2 in runtime.cgocall
at /Users/akiyosi/.goenv/versions/1.11.4/src/runtime/cgocall.go:131
33 0x0000000004aeaa01 in github.com/therecipe/qt/widgets._Cfunc_QWidget_Show
at _cgo_gotypes.go:105055
34 0x0000000004f2a16b in github.com/therecipe/qt/widgets.(*QWidget).Show.func1
at /Users/akiyosi/go/src/github.com/therecipe/qt/widgets/widgets.go:106011
35 0x0000000004ddde7d in github.com/therecipe/qt/widgets.(*QWidget).Show
at /Users/akiyosi/go/src/github.com/therecipe/qt/widgets/widgets.go:106011
Window resizing feature is broken.
Probably not broken up to 5.12.3.
See therecipe/qt#938
I am confronted with a perplexing problem, and I document it here as it is.
MacOS 10.13.6 High Sierra
I had no problems when I used Qt5.13.0 previously, but when I installed Qt5.12.9, I had an issue where apps with frameless windows would only show buttons and the windows would be completely transparent.
Initially I decided it was a Qt5.12 system issue and reinstalled Qt5.13.2. But the event is not resolved.
The following screenshot shows a frameless window in the browser's foreground when the problem is reproduced. (It does indeed exist.)
In this case, the following messages are printed in the log
2020-09-22 13:12:25.280 main[91040:1256095] It does not make sense to draw an image when [NSGraphicsContext currentContext] is nil. This is a prog
ramming error. Break on void _NSWarnForDrawingImageWithNoCurrentContext(void) to debug. This will be logged only once. This may break in the futu
re.
Tracking down this issue, I found that the window was unintentionally completely transparent due to the NSWindowStyleMaskFullSizeContentView
and the Window's background color being clearColor
. Also, the same binary does not seem to have the problem on MacOS 10.14 systems.
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.