joaorb64 / joaorb64/TournamentStreamHelper
5.2: The thumbnail generator fails to generate thumbnails on Manjaro
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 139
- Forks
- 59
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 6
Description
When ran through Python 3.10 on the latest Manjaro Plasma, the thumbnail generator is unable to properly generate thumbnails including the default preview. For instance, here is the message that appears when booting the software or when trying to generate the default preview:

And here is the associated log from the console:
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap
set type font ['./assets/font/RobotoCondensed.ttf', './assets/font/RobotoCondensed.ttf']
set type font ['./assets/font/RobotoCondensed.ttf', './assets/font/RobotoCondensed.ttf']
[{'name': 'Player 1', 'team': 'Sponsor 1', 'asset': {'assets': {'full': {'asset': './assets/mock_data/mock_asset/full_character_0.png', 'eyesight': {'x': 540, 'y': 126}}}, 'codename': 'character', 'name': 'Character', 'skin': '0'}}, {'name': 'Player 2', 'team': 'Sponsor 2', 'asset': {'assets': {'full': {'asset': './assets/mock_data/mock_asset/full_character_1.png', 'eyesight': {'x': 540, 'y': 126}}}, 'codename': 'character', 'name': 'Character', 'skin': '0'}}, {'name': 'Player 3', 'team': 'Sponsor 3', 'asset': {'assets': {'full': {'asset': './assets/mock_data/mock_asset/full_character_2.png', 'eyesight': {'x': 540, 'y': 126}}}, 'codename': 'character', 'name': 'Character', 'skin': '0'}}, {'name': 'Player 4', 'team': 'Sponsor 4', 'asset': {'assets': {'full': {'asset': './assets/mock_data/mock_asset/full_character_3.png', 'eyesight': {'x': 540, 'y': 126}}}, 'codename': 'character', 'name': 'Character', 'skin': '0'}}]
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::end: Painter not active, aborted
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::end: Painter not active, aborted
No proportional size. Calculating.
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
Processing asset: ./assets/mock_data/mock_asset/full_character_0.png
QPainter::begin: Paint device returned engine == 0, type: 2
Traceback (most recent call last):
File "/home/mathias/Documents/TournamentStreamHelper-5.2/src/TSHThumbnailSettingsWidget.py", line 855, in GeneratePreview
tmp_file = thumbnail.generate(
File "/home/mathias/Documents/TournamentStreamHelper-5.2/src/thumbnail/main_generate_thumbnail.py", line 1406, in generate
thumbnail = paste_characters(
File "/home/mathias/Documents/TournamentStreamHelper-5.2/src/thumbnail/main_generate_thumbnail.py", line 673, in paste_characters
thumbnail = paste_image_matrix(
File "/home/mathias/Documents/TournamentStreamHelper-5.2/src/thumbnail/main_generate_thumbnail.py", line 323, in paste_image_matrix
zoom_x = max_size[0] / tmpWidth
ZeroDivisionError: division by zero
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap
The Executable can be used as a workaround should Wine be installed on the system using the following command:
sudo pacman -S wine winetricks wine-mono wine_gecko
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the thumbnail generation failure on Manjaro with Python 3.10, then inspect src/TSHThumbnailSettingsWidget.py around GeneratePreview and src/thumbnail/main_generate_thumbnail.py around generate, paste_characters, and paste_image_matrix. Use the supplied traceback and Qt warnings to trace the zero-sized image condition. Done means the default preview and asset thumbnails generate without the ZeroDivisionError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, python
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100