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

Failed to add image 'zbstudio/res/32/FOLDER-PROJECT.png' to the image list. #1171

Open
ildar opened this issue Dec 9, 2023 · 8 comments
Open
Assignees

Comments

@ildar
Copy link

ildar commented Dec 9, 2023

Greetings!
I just started ZBS v2.01 in the Wayland session and was glad to see it works (1.90 fails). Two errors I see:

  1. the Project tree has wrong icons and the Output window immediately shows errors as in subject (10+ icons are missing)
  2. the Output window behaves quite strange. When I click in it, the cursor is placed ~5 chars to the left. E.g. I click on the e in the work image and the cursor appears before i.
@pkulchenko pkulchenko self-assigned this Dec 9, 2023
@pkulchenko
Copy link
Owner

@ildar, thank you for the report! I saw the first issue you describe on macOS and Windows and expected the commit fb564b9 to fix this (and it does fix it on macOS and Windows). Do you know if it works for you in v2.00 (before that commit is applied)? If it does, what's the value returned by ide:GetContentScaleFactor() for you?

With respect to the second issue, not sure what to say. I've never seen anything like what you describe. Does the local console work correctly for you (when you click)? Does the issue only show when you click?

@ildar
Copy link
Author

ildar commented Dec 10, 2023 via email

@ildar
Copy link
Author

ildar commented Dec 10, 2023

2.01 with bundled wx:
Screenshot-2023-12-10-14:39:22

2.01 with self-built wx:
Screenshot-2023-12-10-14:38:41

2.0 with self-built wx:

ASSERT INFO:
./src/gtk/bitmap.cpp(1073): assert ""rect.x >= 0 && rect.y >= 0 && rect.x + w <= bmpData->m_width && rect.y + h <= bmpData->m_height"" failed in GetSubBitmap(): invalid bitmap region

BACKTRACE:
[1] wxBitmap::GetSubBitmap(wxRect const&) const
[2] lua_pcall
[3] wxLuaState::LuaPCall(int, int)
[4] wxLuaEventCallback::OnEvent(wxEvent*)
[5] wxLuaEventCallback::OnAllEvents(wxEvent&)
[6] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[7] wxEvtHandler::SearchDynamicEventTable(wxEvent&)
[8] wxEvtHandler::TryHereOnly(wxEvent&)
[9] wxEvtHandler::ProcessEventLocally(wxEvent&)
[10] wxEvtHandler::ProcessEvent(wxEvent&)
[11] wxScrollHelperEvtHandler::ProcessEvent(wxEvent&)
[12] wxGenericTreeCtrl::Expand(wxTreeItemId const&)
[13] lua_pcall
[14] lua_cpcall
[15] __libc_start_main

@ildar
Copy link
Author

ildar commented Dec 10, 2023 via email

@ildar
Copy link
Author

ildar commented Mar 30, 2024 via email

@ildar
Copy link
Author

ildar commented Mar 30, 2024 via email

@pkulchenko
Copy link
Owner

@ildar, I'm a bit confused, as wxBitmap::GetSubBitmap should not be called by the IDE right now, as it was removed in fb564b9.

If this only happens in Wayland, I wonder if you could test with line package.lua:1130 to always be set to 1 (instead of GetContentScaleFactor()) and confirm if it fixes the issue for you.

@ildar
Copy link
Author

ildar commented Apr 30, 2024 via email

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

No branches or pull requests

2 participants