Giter Club home page Giter Club logo

iupforzig's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

iupforzig's Issues

Crashing at malloc_consolidate()

Running on Linux (Ubuntu 21.04 kernel 5.11.0-18-generic) in debug or release-safe mode crashes at malloc_consolidate().

Running in release-fast and release-small works fine.

How to reproduce:

  1. Opening any existing file
malloc_consolidate(): unaligned fastbin chunk detected
The following command terminated unexpectedly:
cd /home/batiati/IUPforZig/IUPforZig && /home/batiati/IUPforZig/IUPforZig/zig-out/bin/example 
error: the following build command failed with exit code 1:
/home/batiati/IUPforZig/IUPforZig/zig-cache/o/6cece1366aaf0a2f9f1ae0f99faff783/build /snap/zig/3678/zig /home/batiati/IUPforZig/IUPforZig /home/batiati/IUPforZig/IUPforZig/zig-cache /home/batiati/.cache/zig run
  1. Clicking on "Close" button on "Find" dialog
malloc_consolidate(): invalid chunk size
The following command terminated unexpectedly:
cd /home/batiati/IUPforZig/IUPforZig && /home/batiati/IUPforZig/IUPforZig/zig-out/bin/example 
error: the following build command failed with exit code 1:
/home/batiati/IUPforZig/IUPforZig/zig-cache/o/6cece1366aaf0a2f9f1ae0f99faff783/build /snap/zig/3678/zig /home/batiati/IUPforZig/IUPforZig /home/batiati/IUPforZig/IUPforZig/zig-cache /home/batiati/.cache/zig run

Build issues

Currently, we have some issues building:

  • Find native include and libraries is broken with msvc ABI (zig issue 9002)
  • Set exe.subsystem = .Windows; and use wWinMain entrypoint did not work with exe.linkLibC
  • Do we really need linkLibC ?
  • Add option to link static or use dynamic IUP libraries
  • Latest zig 0.9.0-dev.315+1534cd2f8 compiles but fails running.

Complex metadata representation

Figure out the better way to represent those metadata complexities:

1. IUP elements that have attributes that are applied on children;

Example:

  • MDI attributes for Canvas for example

Proposals:

  • Render these functions in all possible elements, allowing to set them even when they are not children of the expected element.
  • Render these functions on parent element with a special signature .setXYZ(child, value); Maybe not ergonomics to declare in fluent API.

2. Complex union values

Examples:

  • Colors can be an RGB triplet or a well-known alias, like "BGCOLOR", "FGCOLOR", etc.
  • Tree.setValue expects an i32 representing the index, or a well-known alias, like "NEXT", "PREVIOUS", "ROOT", etc

Proposals

  • Status-quo: Declare an union with each possible value, for example
pub const Color = union(enum) {
    BgColor,
    FgColor,
    Rgb: Rgb,
};

pub const Selection = union(enum) {
    Next,
    Previous,
    Root,
    Index: i32
};
  • Use anytype in set; Each case may have a get behavior.
  • Declare two functions, one for each type, for example setColorRgb and setColorStr`

3. Handle or HandleName attributes

Example:

  • setImage and many others attribute should accept an Image or a string with the HandleName

Proposals

  • Status-quo: use aways string, for example setImage(image.getHandleName())
  • Use anytype in set; Each case may have a get behavior.
  • Declare two functions, one for each type, for example setImage and setImageHandleName`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.