Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bug 141, ellipse hang on drawing #5

Closed
wants to merge 1 commit into from
Closed

Conversation

yodalee
Copy link
Contributor

@yodalee yodalee commented May 7, 2014

I think the problem is that
in resizeTouched the State variable will be set to -1 because of <= comparison
change to < will solve the issue.

@guitorri
Copy link
Member

guitorri commented May 8, 2014

It is now crashing on OSX Mavericks, with:

Assertion failed: (CGFloatIsValid(x) && CGFloatIsValid(y)), function void CGPathAddArc(CGMutablePathRef, const CGAffineTransform *, CGFloat, CGFloat, CGFloat, CGFloat, CGFloat, bool), file Paths/CGPath.cc, line 279.

Part of the crash report:

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib          0x00007fff8372e866 __pthread_kill + 10
1   libsystem_pthread.dylib         0x00007fff82eb335c pthread_kill + 92
2   libsystem_c.dylib               0x00007fff83046b1a abort + 125
3   libsystem_c.dylib               0x00007fff830109bf __assert_rtn + 321
4   com.apple.CoreGraphics          0x00007fff8e1ed257 CGPathAddArc + 254
5   QtGui                           0x00000001075761da qt_mac_cg_context(QPaintDevice const*) + 16602
6   QtGui                           0x000000010749fc09 QPaintEngine::drawEllipse(QRect const&) + 73
7   QtGui                           0x00000001074b6cc6 QPainter::drawEllipse(QRect const&) + 70
8   qucs                            0x0000000106be63e7 QPainter::drawEllipse(int, int, int, int) + 71 (qpainter.h:727)
9   qucs                            0x0000000106be5350 ViewPainter::drawEllipse(int, int, int, int) + 448 (viewpainter.cpp:290)
10  qucs                            0x0000000106fe44f3 Ellipse::paint(ViewPainter*) + 979 (ellipse.cpp:63)
11  qucs                            0x0000000106bee380 Schematic::drawContents(QPainter*, int, int, int, int) + 1120 (schematic.cpp:449)
12  Qt3Support                      0x00000001087e36f4 Q3ScrollView::drawContentsOffset(QPainter*, int, int, int, int, int, int) + 100

This might be interesting: http://code.google.com/p/fritzing/issues/detail?id=2791

@yodalee
Copy link
Contributor Author

yodalee commented May 9, 2014

I search google and get an similar bug report on qwt
http://sourceforge.net/p/qwt/mailman/qwt-interest/thread/5279E491.9020309@tigertal.de/
I got no Mac, sorry I cannot help on this bug O_O

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants