Comments (5)
It seems an assertion is triggered in setTags
at canvas.d:713
foreach (tag; tags)
{
assert(!tag.all!(isNumber), "Tags must not be entirely composed of numbers.");
}
Here's a backtrace:
(gdb) r
Starting program: /home/simendsjo/.dub/packages/tkd-master/build/example/example
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7ffff3c49700 (LWP 2840)]
Program received signal SIGSEGV, Segmentation fault.
0x000000000043a514 in std.utf.__T6decodeTAyaZ.decode() (str=...,
index=@0x7fffffffd8c8: 0) at /usr/include/dlang/gdc/std/utf.d:958
958 if (str[index] < codeUnitLimit!S)
(gdb) bt
#0 0x000000000043a514 in std.utf.__T6decodeTAyaZ.decode() (str=...,
index=@0x7fffffffd8c8: 0) at /usr/include/dlang/gdc/std/utf.d:958
#1 0x000000000043a467 in std.array.__T5frontTyaZ.front() (a=...)
at /usr/include/dlang/gdc/std/array.d:647
#2 0x00000000004617bf in std.algorithm.__T4findS623std10functional40__T3notS29_D3std3uni8isNumberFNaNbNfwZbZ3notTAyaZ.find() (haystack=...)
at /usr/include/dlang/gdc/std/algorithm.d:4299
#3 0x0000000000461756 in std.algorithm.__T3allS29_D3std3uni8isNumberFNaNbNfwZbTAyaZ.all() (range=...) at /usr/include/dlang/gdc/std/algorithm.d:10206
#4 0x00000000004b4f10 in tkd.widget.canvas.CanvasItem.__T7setTagsTC3tkd6widget6canvas10CanvasItemZ.setTags() (this=..., tags=...) at source/tkd/widget/canvas.d:713
#5 0x000000000041e647 in tkd.widget.canvas.CanvasItem.init() (this=..., parent=...)
at source/tkd/widget/canvas.d:640
#6 0x00000000004222ac in tkd.widget.canvas.CanvasRectangle.init() (this=...,
parent=...) at source/tkd/widget/canvas.d:1251
#7 0x00000000004b01b8 in tkd.widget.canvas.Canvas.__T7addItemTC3tkd6widget6canvas6CanvasZ.addItem() (this=..., item=...) at source/tkd/widget/canvas.d:386
#8 0x000000000040c239 in main.Application.createCanvasPane() (this=...)
at source/example/example.d:328
#9 0x000000000040d36a in main.Application.initInterface() (this=...)
at source/example/example.d:454
#10 0x00000000004192e4 in tkd.tkdapplication.TkdApplication.__ctor() (this=...)
at source/tkd/tkdapplication.d:102
#11 0x000000000040d8ba in main.Application.__ctor() (this=...)
at source/example/example.d:13
#12 0x000000000040d8eb in D main (args=...) at source/example/example.d:495
#13 0x00000000004d127f in rt.dmain2._d_run_main() ()
#14 0x00000000004d174f in rt.dmain2._d_run_main() ()
#15 0x00000000004d1999 in rt.dmain2._d_run_main() ()
#16 0x00000000004d174f in rt.dmain2._d_run_main() ()
#17 0x00000000004d18c6 in _d_run_main ()
#18 0x00000000004071bb in main (argc=1, argv=0x7fffffffe418)
at /usr/include/dlang/gdc/__entrypoint.di:59
from tkd.
The library has not been tested at all with other compilers and i don't have them installed. If you could find the issue, your help would be most appreciated.
from tkd.
I don't actually use gdc or have a project in mind - it was just to test it. Looks great though!
But I don't have an incentive to spend a lot of time on this. I guess someone else will jump on it soon. Sorry about that.
from tkd.
Ah ok, i'll leave this issue open and hope someone can take a look sometime.
from tkd.
I prefer to advise you to not use GDC anymore. They do a great job, but they do not follow current D references. The best replacement would certainly be DMD2 or LDC for performances. Just trying to compile the simplest code with GDC won't be successful.
Sorry if I hurt you ;)
from tkd.
Related Issues (20)
- Build of example fails on Mac OSX 10.11 HOT 1
- Text bind (<<Modified>>) only happens once HOT 3
- Example fails to run on Windows but build fine HOT 1
- Add note for linker flags in windows needed to prevent console window. HOT 2
- commandCallbackHandler catches Throwable making unrecoverable Errors impossible HOT 5
- lib found but undefined references HOT 5
- start TK in D Programming ! HOT 4
- Feature Request: add OpenGL capabilites HOT 4
- Changing Widget Background Color HOT 3
- MDI Support HOT 3
- Color methods have been added to widgets that can't use them
- does canvas use the gpu to draw? HOT 1
- Error: module `tkdapplication` is in file 'tkd\tkdapplication.d' which cannot be read HOT 4
- Windows requires Microsoft Visual C++ Redistributable HOT 2
- How to install this in Windows ? HOT 3
- Segmentaiton Fault after Choosing a File via OpenFileDialog HOT 2
- Rebinding default tk keys does not work HOT 9
- How can I get currently selected tab in NoteBook widget? HOT 1
- Has this been abandoned? HOT 3
- Simple Q: is the final app using this lib completely native? HOT 3
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 tkd.