Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Oct 25 2019 20:17
    test1
Oldes Huhuman
@Oldes
@hiddenman I don't know any, and I think that it will not be easy to build it too as it was early experiment without any documentation and not maintained quite a long time.. if there was not something done in private.
Gregg Irwin
@greggirwin
Cross compiling is the way to go, but it does look like work will need to be done to sync that branch back up. I get an error compiling %red/tests/android/vid.red:
Compiling to native code...
*** Warning: OS_TYPE macro in R/S is redefined
*** Compilation Error: invalid path value: image/extract-data
*** in file: %/c/dev/greggirwin/red/tests/android/datatypes/binary.reds
*** in function: red/binary/to
*** at line: 1
*** near: [1030x7
    proto: image/extract-data as red-image! spec EXTRACT_ARGB
]
lucindamichele
@lucindamichele
@pekr "Could the GTK status be expressed in few words/sentences?" +1
R cqls
@rcqls
@pekr @lucindamichele It is difficult to express accurately the status but IMHO it is now very useable and since @bitbegin says that merging to master branch is possibly the next step, I guess it is because the GTK branch is useful enough. Without testing tools, it is diffiicult to compare accurately the three different OS on red/view features.
lucindamichele
@lucindamichele
got it. thank you!
Petr Krenzelok
@pekr
@rcqls what kind of linuxes will Red/View run on? I am again starting to experiment with embedded boards, in the past Beagle Bone used Angstrom, now it uses Debian. Is there any special linux flavor used in the embedded area, e.g. fast booting, streamlined etc? In the past there was Damn Small Linux, but not sure about its popularity, etc.
R cqls
@rcqls
@pekr I am not an expert at all on embedded board. I only tested the odroid offered by @respectech by cross-compiling the binaries and the tests were mostly Ok. I guess @rebolek will be better to answer your question. The only particular case I know is that it does not work when using alpine Linux (and it is too bad).
Boleslav Březovský
@rebolek
@pekr AFAIK noone reported any distro recently that doesn’t work with Red/View. However, that doesn’t mean there aren’t unsupported distros. Anything that uses musl as libc won’t work with Red. That means Alpine Linux, OpenWRT and derivates like TurrisOS and probably other distros. That may be a bit unfortunate for your use case as musl is heavily used in embedded world for its small size. BSo you need to either choose different distro or wait until Red supports musl.
Petr Krenzelok
@pekr
Thanks.
Maciej Łoziński
@loziniak
Hi! In Linux when I do on-wheel [print type? event/picked] I get float and in Windows (Wine) I get integer. Does it mean it needs fixing?
Gregg Irwin
@greggirwin
@bitbegin :point_up:
Maciej Łoziński
@loziniak
@bitbegin Also scroll event does not propagate – when I scroll the wheel over a text that is on the pane, pane's event handler is not executed. Unlike in Windows.
bitbegin
@bitbegin
@loziniak float! is right
scroll not be supported
Boleslav Březovský
@rebolek
I'm trying View console under GTK, font requestor looks really nice, but the font stays the same, no matter what I select.
Petr Krenzelok
@pekr
@rebolek Is it quite usable on Linux already? Not just functionality, but speed, smoothness of use, etc.?
bitbegin
@bitbegin
@rebolek fixed
Boleslav Březovský
@rebolek
@pekr IMO it’s very good.
@bitbegin thanks!
Maciej Łoziński
@loziniak
@bitbegin so, it's the Windows version that should be fixed to return float!? Scroll is not supported – what do you mean? Not supported by Red? Not supported by GTK?
Maciej Łoziński
@loziniak
↑↑↑ ?
GaryMiller
@GaryMiller
In Windows 10 It does not auto scroll as the associated text window fills up. You can coerce it to kind of work with code as long as text added is only single line. But when you word wrap and text added become 2 or 3 lines at a time it gets out of synch and text become invisible off the bottom of the screen. If you could figure how many lines your text would wrap to you could compensate with code. But I'm still waiting for a Christmas miracle.
bitbegin
@bitbegin
@loziniak on win10, i get float!
gtk3 scroll widget is special, not find a way to support scroll feature
Maciej Łoziński
@loziniak
I'm simulating scroll by moving all faces inside a panel in on-wheel handler.
Maciej Łoziński
@loziniak

@bitbegin This code:

view [panel red on-wheel [probe event/picked]]

works under GTK and produces floats;
works under Wine with old build and produces integers;
works under Wine with new build and produces floats;
does not work under Windows 7 with new build - produces nothing.

Maciej Łoziński
@loziniak
And I have another problem. Too strange for a bug report :-)
I have an app with menu. The problem was that clicking 2nd button fired actions of 2nd and 1st button, clicking 3rd button fired actions for 3rd, 2nd and 1st, and so on. It was with old build of console-view (commit f8d2a3629). So I prepared a minimal code, that had this issue:
Red [Needs: 'View]
menu-button-style: [
    default-actor: on-down
    template: [type: 'base size: 100x100]
]
styles: reduce ['menu-button menu-button-style]
window: layout/styles [
    panel [
        below

        menu-button "1" [print "1"] ;prints "1"
        menu-button "22" [print "22"] ;prints "22^/1"
        menu-button "333" [print "333"] ;prints "333^/22^/1"
    ]
] styles
view window
Next, I pulled fresh changes and built console-view again. But this time my minimal version was fine, but my original code still has this problem.
So, seems like commits from last two weeks fixed a problem for a minimal example, but did not fix it for original code.
Maciej Łoziński
@loziniak
Update: adding space 0x0 gives errors also on current build:
Red [Needs: 'View]

menu-button-style: [
    default-actor: on-down
    template: [type: 'base size: 100x100]
]

styles: reduce ['menu-button menu-button-style]

window: layout/styles [
    panel [
        space 0x0 ;-- adding this makes the code misbehave 
        ;space 1x1 ;-- this is ok in recent build, but fails on commit f8d2a3629

        below
        menu-button "1" [print "1"]
        menu-button "22" [print "22"]
        menu-button "333" [print "333"]
    ]

] styles
view window
bitbegin
@bitbegin
@loziniak you can read https://doc.red-lang.org/en/view.html#_panel to check if the event be supported
bitbegin
@bitbegin
@loziniak if the base haven't color, it will be treated as transparent layer. on windows, the 333 layer is on top of all these layers, so the other layers will not response click event. with GTK backend, the top layer will check if it's background layer and then resend the click event.
bitbegin
@bitbegin
anyway, https://github.com/red/red/pull/4185 will fix the issue
Maciej Łoziński
@loziniak
Great, thanks!
Maciej Łoziński
@loziniak
@bitbegin It will be fantastic, when scrolling panes will be implemented. I await this patiently, and will happily help if possible. But as I also read in docs, wheel event is officially supported, so I base on that. It's good that it's finally settled what type on-wheel's picked will return. Is Windows 7 supported by Red?
lucindamichele
@lucindamichele
But as I also read in docs, wheel event is officially supported, so I base on that.
Oh wow. I initially read that as "whee" with a 1 on the end, and I thought, how cool is that?! Been staring at the screen too long. :)
Maciej Łoziński
@loziniak
That would make Red a perfect language for kindergarten programming classes!
Maciej Łoziński
@loziniak
Can anybody confirm, that after release-compiling this code and clicking a button we get *** Runtime error 98: assertion failed?
Red [Needs: 'View]
a: make face! [
    type: 'base color: red size: 20x20
    showw: function [
        parent [object!]
        offs [pair!]
    ] [
        self/offset: offs
        self/parent: parent
        append parent/pane self
    ]
]

view [
    panel 500x500 [
        button "show a" [a/showw face/parent 30x30]
    ]
]
When interpreted, it runs fine.
Do I have error in this code?
Maciej Łoziński
@loziniak
Full error message:
*** Runtime Error 98: assertion failed
*** in file: XXXred/gtk/red-github/runtime/datatypes/object.reds
*** at line: 384
***
***   stack: red/object/fire-on-set 00000062h 080951FEh 00000000h FFE69840h
***   stack: red/object/fire-on-set F54FBFB0h 091DCF94h 091E43E4h 091E43D4h
***   stack: red/object/fire-on-set* 091DDF24h 091DCF94h
***   stack: ctx||458~showw F7EE3C8Ch
***   stack: red/_function/call 091E43A4h F7EE3C8Ch
***   stack: red/interpreter/eval-code 091E43A4h F531C788h F531C788h false F531C758h F531C7B0h F54FA000h
***   stack: red/interpreter/eval-path F531C7B0h F531C768h F531C788h false false false false
***   stack: red/interpreter/eval-expression F531C768h F531C788h false false false
***   stack: red/interpreter/eval F531C6F0h true
***   stack: red/interpreter/eval-function 091E4374h F531C6F0h
***   stack: red/_function/call 091E4374h F7EE4428h
***   stack: red/interpreter/eval-code 091E4374h F5284A38h F5284A38h false 00000000h 00000000h 091E42D4h
***   stack: red/interpreter/eval-expression F5284A18h F5284A38h false false false
***   stack: red/interpreter/eval 091E4364h true
***   stack: red/natives/do* false -1 -1 -1
***   stack: red/interpreter/eval-arguments F54F94C0h F52849F0h F52849F0h 00000000h 00000000h
***   stack: red/interpreter/eval-code F54F94C0h F52849E0h F52849F0h false 00000000h 00000000h F54F94C0h
***   stack: red/interpreter/eval-expression F52849E0h F52849F0h false false false
***   stack: red/interpreter/eval 091E4344h true
***   stack: red/natives/try* true 0
***   stack: do-safe
***   stack: do-actor
***   stack: ctx||403~awake F7EEFC68h
***   stack: gui/make-event 093A7100h 0 9
***   stack: gui/button-clicked 093A7100h 093A7100h
bitbegin
@bitbegin
@loziniak if you compile it on win10, you will get same issue,
Boleslav Březovský
@rebolek
I have a problem where a face steals all events in a panel. To reproduce it:

1) clone repo https://gitlab.com/rebolek/red-styles/tree/scroller
2) checkout scroller branch
3) do %demo/scroller.red
4) click and drag anywhere on the panel. Horizontal scroller will start moving

If you remove the dx box from demo, it works fine. If you remove react block from dx, it works fine. On W10 it works fine.

Maciej Łoziński
@loziniak

Hi! Can anybody confirm this crashes on Linux/GTK, when run from console-view at the button click?

Red [Needs: 'View]

metrics-font: make font! []

styles: [
    panel-widget: [
        default-actor: on-down
        template: [
            type: 'panel
            pane: copy [] 
            actors: [
                on-create: func [face [object!] event [event! none!]] [
                    append face/pane make face! [
                        type: 'field
                        font: (metrics-font)
                        parent: face
                    ]
                ]
            ]
        ]
    ]

]

window: layout/styles [
    panel [
        panel-widget
        button "CLICK ME" [
            print "OK?"
            make metrics-font [style: 'bold] ; XXXXX
            print "OK!"
        ]
    ]
] styles

view/flags window ['resize]

With various error messages. The ones I noticed were:

free(): invalid pointer
[1]    5197 abort (core dumped) 

munmap_chunk(): invalid pointer
[1]    5138 abort (core dumped)

double free or corruption (out)
[1]    5270 abort (core dumped)

*** Runtime Error 1: access violation
*** Cannot determine source file/line info.
***
I mean confirm or deny :-)
console-view compiled from latest GTK branch.
Maciej Łoziński
@loziniak
If I compile it, it's the same.
bitbegin
@bitbegin
@loziniak confirmed
Maciej Łoziński
@loziniak
@bitbegin thanks! filed a bug report.