Comments (2)
Additional info:
I have managed to avoid this behavior by commenting out this in ./src/comp[onents/cansignaldata/cansignadata_p.h
ComponentInterface::ComponentProperties _supportedProps = {
std::make_tuple(_nameProperty, QVariant::String, true, cf(nullptr)),
std::make_tuple(_fileProperty, QVariant::String, true, cf([] { return new PropertyFieldPath; } )),
// std::make_tuple(_colorProperty, QVariant::String, true, cf([] { return new PropertyFieldColor; } ))
};
Relevant commit: 8f84350
Not a clean or proper solution, but maybe you can tell me where to dig next.
segmentation fault occures here src/common/propertyfields.h:
struct PropertyFieldColor : public PropertyFieldText {
PropertyFieldColor()
{
_pb = new QPushButton(this);
_pb->setText("...");
_pb->setFixedSize(24, 24);
_pb->setFlat(true);
_pb->setProperty("type", "PropertyFieldPath");
layout()->addWidget(_pb);
_cd = new QColorDialog(this); // THIS LINE !!! SEGFAULTS
connect(_pb, &QPushButton::pressed, [&] {
_cd->setCurrentColor(QColor(_le->text()));
if (_cd->exec() == QDialog::Accepted) {
_le->setText(_cd->selectedColor().name(QColor::HexRgb).toUpper());
}
});
}
private:
QPushButton* _pb;
QColorDialog* _cd;
};
from candevstudio.
Thanks @kefir, that's very useful. I will have a look.
from candevstudio.
Related Issues (20)
- Can't run application after build on Debian bullseye/sid HOT 1
- Installation problem HOT 3
- DBUS/Python support? HOT 2
- Build error on latest git HOT 2
- Error when try select socket can :Cannot load library socketcan HOT 1
- Cannot parse dbc files with special symbols, e.g., "°C" as Unit HOT 2
- Cannot launch qml script
- why you choose NodeEditor framework?
- install/build hanging: "Visual Studio 16 2019 - could not find any instance of Visual Studio."
- Not able to use QML-Executor block HOT 3
- building for macOS-arm64 but attempting to link with file built for macOS-x86_64 HOT 2
- latest release (v1.2.2) fails to run on Ubuntu 22.04.1 LTS HOT 1
- Error during installation HOT 3
- Please provide QML example with GUI
- floating point values from DBC file truncated to integer HOT 2
- installation in raspberry pi
- Added support of TouCAN CAN USB adapter from RUSOKU for Windows, Macos, Linux
- SAMPLE CONFIGURATION
- DBC problem HOT 1
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 candevstudio.