Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Error bad pointer with wailsΒ #2

@thomasdqr

Description

@thomasdqr

Hi !

Your library is amazing ! Thanks for the share, it works really well πŸ‘Œ
I have an issue tho when using it with wails

When I try to execute the getIcon function from my frontend app, it throw a bad pointer error πŸ€”

DEB | [ExternalAssetHandler] Loading 'http://localhost:5173/wailsjs/go/main/App.js'
runtime: bad pointer in frame github.com/fcjr/geticon/internal/winapi.EnumResourceNamesA at 0xc0003369f8: 0xe
fatal error: invalid pointer found on stack

runtime stack:
runtime.throw({0x10febf5?, 0x100000000?})
        C:/Program Files/Go/src/runtime/panic.go:1077 +0x65 fp=0x56899ff248 sp=0x56899ff218 pc=0x873125
runtime.adjustpointers(0xc0003369e0, 0x56899ff358, 0x0?, {0x56899ff378?, 0x89516b?})
        C:/Program Files/Go/src/runtime/stack.go:627 +0x285 fp=0x56899ff2d8 sp=0x56899ff248 pc=0x888925
runtime.adjustframe(0x56899ff4f8, 0x56899ff3d8)

When I try to run the function at the load of my app directly from the main.go file, it works well, but as soon as I try to run it from my app, I have the error above 😞

It is easily replicable by setting up a template project using wails, whatever the frontend framework chosen (I tried react, and vanilla js) and try to call a simple getIcon function inside the default Greet function for example, you should get the same error as mine

Any help would be immensely appreciated πŸ™

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions