-
Notifications
You must be signed in to change notification settings - Fork 109
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
[Updated] Simplify and fix weather plugin icons rendering #676
Conversation
Quality Gate passedIssues Measures |
Crash: 15:15:10.2673 File "/usr/lib/enigma2/python/Screens/Screen.py", line 141, in hide |
Is this crash in OpenATV? |
Yes and in many other images. |
LoadPixmap(None) -> Crash |
The question here is why it is None at first place. I guess incorrect path or missing icon...
Изпратено от Outlook за Android<https://aka.ms/AAb9ysg>
…________________________________
From: jbleyel ***@***.***>
Sent: Friday, August 23, 2024 8:03:38 PM
To: oe-alliance/enigma2-plugins ***@***.***>
Cc: Dimitar Tsenev ***@***.***>; Author ***@***.***>
Subject: Re: [oe-alliance/enigma2-plugins] [Updated] Simplify and fix weather plugin icons rendering (PR #676)
LoadPixmap(None) -> Crash
—
Reply to this email directly, view it on GitHub<#676 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAORCBOQNHEK4U5BDL37EGLZS5TOVAVCNFSM6AAAAABMA5DDPWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBXGQ3TONZQGU>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
|
How will that work? Won't it just raise the exception? https://github.com/openatv/enigma2/blob/master/lib/python/Tools/LoadPixmap.py#L28 |
It's only a workaround and quick fix to prevent the crash. |
But it file name is empty it will crash. |
Then you need to stop calling LoadPixmap if empty. |
The None call in the original code was to remove the icon. |
LoadPixmap(None) -> 15:15:10.2692 File "/usr/lib/enigma2/python/Tools/LoadPixmap.py", line 8, in LoadPixmap |
You need to do this: self.instance.setPixmap(None) |
|
No description provided.