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

Attached node background images not loading #226

Closed
scallyob opened this issue Oct 31, 2022 · 6 comments
Closed

Attached node background images not loading #226

scallyob opened this issue Oct 31, 2022 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@scallyob
Copy link

I created a *.alz file using version 3.0.0, then tried to open it later. Images do not display. and when I click on an object that should have an image in it the app crashes giving the messages below.

I tried opening in 3.6.1 and got same results.

$ ./Heimer-3.6.1-x86_64.AppImage 
Mon Oct 31 00:09:48 2022 [I] Heimer version 3.6.1
Mon Oct 31 00:09:48 2022 [I] Copyright (c) 2018-2022 Jussi Lind
Mon Oct 31 00:09:48 2022 [I] Compiled against Qt version 5.9.5
Mon Oct 31 00:09:48 2022 [I] Trying Qt translations for 'en-US'
Mon Oct 31 00:09:48 2022 [W] Failed to load Qt translations for 'en-US'
Mon Oct 31 00:09:48 2022 [I] Trying application translations for 'en-US'
Mon Oct 31 00:09:48 2022 [W] Failed to load application translations for 'en-US'
Mon Oct 31 00:09:49 2022 [I] 'Single arrow' set as active default
Mon Oct 31 00:09:55 2022 [I] Extracting embedded image id=3 to '/tmp/Heimer-iITG7f/w.jpeg'
Mon Oct 31 00:09:55 2022 [I] Bytes written: 2813, OK
Mon Oct 31 00:09:55 2022 [I] Extracting embedded image id=4 to '/tmp/Heimer-3oPuxi/h.jpeg'
Mon Oct 31 00:09:55 2022 [I] Bytes written: 13476, OK
Mon Oct 31 00:09:55 2022 [I] Extracting embedded image id=1 to '/tmp/Heimer-1IqGFf/m.jpeg'
Mon Oct 31 00:09:55 2022 [I] Bytes written: 5600, OK
Mon Oct 31 00:09:55 2022 [I] Extracting embedded image id=2 to '/tmp/Heimer-nntEDi/h.jpeg'
Mon Oct 31 00:09:55 2022 [I] Bytes written: 13476, OK
Mon Oct 31 00:09:55 2022 [I] Extracting embedded image id=5 to '/tmp/Heimer-GEHgig/h.jpeg'
Mon Oct 31 00:09:55 2022 [I] Bytes written: 13476, OK
Mon Oct 31 00:09:55 2022 [I] Extracting embedded image id=6 to '/tmp/Heimer-IERp5h/m.jpeg'
Mon Oct 31 00:09:55 2022 [I] Bytes written: 5600, OK
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt.
You must not let any exception whatsoever propagate through Qt code.
If that is not possible, in Qt 5 you must at least reimplement
QCoreApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'std::runtime_error'
  what():  Cannot open file: '/tmp/Heimer-RkfgWi/m.jpeg'
Aborted (core dumped)

@scallyob
Copy link
Author

I edited the *.alz and removed the image info. Then I could open it and edit in 3.6.1. But if I tried adding an image again, saved, closed and re-opened, same problem is created.

@juzzlin
Copy link
Owner

juzzlin commented Nov 1, 2022

Thanks for reporting! I'll check this.

@juzzlin juzzlin added the bug Something isn't working label Nov 1, 2022
@juzzlin
Copy link
Owner

juzzlin commented Nov 1, 2022

I'm not sure what happens there. There might be some unintentional incompatibility between 3.0.0 and 3.6.1 when in comes to embedded images. At least it's not fundamentally broken as I'm not able to reproduce anything like this when creating and opening with 3.6.1.

Would it be possible for you to send me your problematic mind map file?

@scallyob
Copy link
Author

scallyob commented Nov 2, 2022

sure, don't want to post it here, how can i send?

@juzzlin
Copy link
Owner

juzzlin commented Nov 2, 2022

sure, don't want to post it here, how can i send?

You can send it to jussi.lind@iki.fi

@juzzlin juzzlin changed the title something about images casuing crash/runtime_error Attached node backoground images not loading Nov 6, 2022
@juzzlin juzzlin self-assigned this Nov 6, 2022
@juzzlin juzzlin changed the title Attached node backoground images not loading Attached node background images not loading Nov 6, 2022
juzzlin added a commit that referenced this issue Nov 6, 2022
- Decode images in memory without exporting into a file first
juzzlin added a commit that referenced this issue Nov 6, 2022
- Decode images in memory without exporting into a file first
juzzlin added a commit that referenced this issue Nov 6, 2022
- Decode images in memory without exporting into a file first
juzzlin added a commit that referenced this issue Nov 6, 2022
- Decode images in memory without exporting into a file first
juzzlin added a commit that referenced this issue Nov 6, 2022
- Decode images in memory without exporting into a file first
@juzzlin
Copy link
Owner

juzzlin commented Nov 6, 2022

Fixed in f462662

@juzzlin juzzlin closed this as completed Nov 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants