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

JPG images are broken on Windows x64 nigthtly build #4393

Closed
promi opened this issue Aug 2, 2020 · 6 comments · Fixed by #4404
Closed

JPG images are broken on Windows x64 nigthtly build #4393

promi opened this issue Aug 2, 2020 · 6 comments · Fixed by #4404

Comments

@promi
Copy link

promi commented Aug 2, 2020

OS is Windows 10 x64, Build https://dev.azure.com/Mumble-VoIP/Mumble/_build/results?buildId=2267&view=results

Git commit is d2d5dc2

JPG images are not shown, PNG images work fine.

@Krzmbrzl
Copy link
Member

Krzmbrzl commented Aug 3, 2020

What server version are you using? Is this behavior consistent across servers?
How do you send the images? I just tried it on Linux using the latest master version with a server hosted locally. When Drag&Dropping a JPG image to the chatbar and sending it that way, it is displayed on a second client running on the same machine just fine (it is also displayed properly in the sending client).

Is the JPG not shown on the receiving or the sending end? Or both?

Have you tried using different JPGs?

@hjf288
Copy link

hjf288 commented Aug 8, 2020

Same on Windows 10 x64 - Using the image picker to insert an image on a channel using a JPG results in "Image format not recognized", manually inserting a using base64 no longer works and jpg images set in existing channel descriptions are no longer displayed.

Non nightly client works fine.

@davidebeatrici
Copy link
Member

We probably have to explicitly import and link to the plugin, like we do for the SVG one:

if(static)
if(TARGET Qt5::QSQLiteDriverPlugin)
include_qt_plugin(mumble PRIVATE "QSQLiteDriverPlugin")
target_link_libraries(mumble PRIVATE Qt5::QSQLiteDriverPlugin)
endif()
if(TARGET Qt5::QSvgIconPlugin)
include_qt_plugin(mumble PRIVATE "QSvgIconPlugin")
target_link_libraries(mumble PRIVATE Qt5::QSvgIconPlugin)
endif()
if(TARGET Qt5::QSvgPlugin)
include_qt_plugin(mumble PRIVATE "QSvgPlugin")
target_link_libraries(mumble PRIVATE Qt5::QSvgPlugin)
endif()
endif()

However, according to microsoft/vcpkg#11727 (comment), with Qt 5.15 that is not required anymore.

The 64 bit build doesn't use the latest environment due to me forgetting to switch to it:

- job: Windows_x86_64
displayName: Windows (x86_64)
pool:
vmImage: 'windows-latest'
variables:
MUMBLE_ENVIRONMENT_VERSION: 'win64-static-1.4.x-2020-05-27-ecb3c64-1151'
MUMBLE_ENVIRONMENT_TRIPLET: 'x64-windows-static-md'
VCVARS_PATH: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat'
steps:
- template: steps_windows.yml
parameters:
arch: 'x64'
- job: Windows_x86
displayName: Windows (x86)
pool:
vmImage: 'windows-latest'
variables:
MUMBLE_ENVIRONMENT_VERSION: 'win32-static-1.4.x-2020-07-22-dbd6271-1162'
MUMBLE_ENVIRONMENT_TRIPLET: 'x86-windows-static-md'
VCVARS_PATH: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsamd64_x86.bat'
steps:
- template: steps_windows.yml
parameters:
arch: 'x86'

I'm going to create a pull request right now.

@davidebeatrici
Copy link
Member

Could you test the build produced in #4404, please?

@hjf288
Copy link

hjf288 commented Aug 9, 2020

Could you test the build produced in #4404, please?

@davidebeatrici Resolves the issue - JPGs are now visible and able to be used.

One slightly off topic note - it would be helpful if the Snapshot MSI builds are able to upgrade the installed version, it's a bit frustrating to have to remove the old version via Add/Remove programs in order to upgrade the snapshot.

@davidebeatrici
Copy link
Member

@davidebeatrici Resolves the issue - JPGs are now visible and able to be used.

Thank you very much for testing it!

One slightly off topic note - it would be helpful if the Snapshot MSI builds are able to upgrade the installed version, it's a bit frustrating to have to remove the old version via Add/Remove programs in order to upgrade the snapshot.

#4407

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants