Comments (8)
Thanks for the report. Unfortunately, we do not have a fedora system to test this issue. We would have to rely on the community to tackle this issue.
Contributions are welcome.
from clipboard.
this might depend by two things, either P_XOpenDisplay is NULL but doesn't get checked before being used here, or the $DISPLAY environment variable is not set (if the argument of XOpenDisplay is NULL as in this case, $DISPLAY is used instead).
from clipboard.
Just did a quick test and if the function pointer is correctly initialized, it shouldn't crash even if $DISPLAY is not set ... so there's a good chance that this SIGSEGV is caused by the function pointer being NULL (also hinted by that addr=0x0 pc=0x0). I suggest to check for those pointers in the initX11 function and return 1 only if they are all set. Also what's the point of looping 42 times? :D
from clipboard.
@changkun I confirm this bug is not specifically related to Fedora.
from clipboard.
@zangarmarsh Thanks for confirming the issue. Could you maybe share more details on how to reproduce the issue? More specifically, which environment, in which steps that you did?
from clipboard.
@changkun It occurs in Ubuntu X11. I also tried in wayland and it works correctly.
from clipboard.
@zangarmarsh Is the problem occurring on the latest commit?
from clipboard.
@changkun I updated it to version 0.6.3 and it works! Thank you.
from clipboard.
Related Issues (20)
- Build Error in Ubuntu 20.04 LTS with Unity as X-Window HOT 1
- Can add some function let us know the bytes is image or text HOT 2
- Remove Linux Cgo requirement HOT 1
- ld: error: duplicate symbol: when using with Fyne Android HOT 2
- can't work in the win service HOT 5
- Build fails with "error: implicit declaration of function 'nanosleep'" HOT 1
- bug: Image Write Doesn't Seem to Work on Linux and Windows (Ubuntu 20.04) HOT 10
- PNG data overwritten on Windows HOT 4
- How to watch copy file in windows10 HOT 3
- First thanks for your contribution. Maybe it's a stupid question, may i ask why can`t copy jpg image HOT 1
- Feature Request: Support to read and write raw content (without any formatting) from and into clipboards
- Housekeeping: update golang version and library dependencies HOT 2
- Windows 32-bit system will get stuck when executing. HOT 3
- Windows: Write an image encoded to PNG after being loaded as JPEG messes up the image HOT 5
- TestClipboardMultipleWrites only write text,no image. HOT 1
- The shortcut key Ctrl+C cannot be detected when copying images. HOT 4
- Remove cgo requirements on macOS HOT 2
- suggestion: making `Write` blocking instead of returning a channel HOT 30
- Add *BSD support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clipboard.