TomSchimansky / TomSchimansky/TkinterMapView

Problem displaying the mapview while using threads

Open
#145 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
743
Forks
110
PR merge metrics
No merged PRs in 30d

Description

Hello,
So I'm writing a program using Tkintermapview to display the position of a vehicule on a map. In my code I use threading and it looks like the display of the map is impacted by that, this is the error that I get :

Exception ignored in: <function PhotoImage.del at 0x000001DDCC4540D0>
Traceback (most recent call last):
File "C:\Programs\Python\python39_64\lib\site-packages\PIL\ImageTk.py", line 132, in del
name = self.__photo.name
AttributeError: 'PhotoImage' object has no attribute '_PhotoImage__photo'

And that's the display of the map as it is right now
image

At first there was no problem with the mapview in the early stages of the code, even when first adding threading, but I did some optimisations but no changes that impact the fonctionning, no fonction added etc.

Note that the "map scare" is there with the zoom in zoom out button, everything that I want to display but not the map.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported TkinterMapView display failure with a threaded vehicle-position program and the shown PIL ImageTk exception. The report names no repository files or tests, so locate the map rendering and tile-image update entry points first. Done means the map renders correctly while threaded updates continue without the reported exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.