Files
MapLibreParticleLab/platform/qt/src
Thiago Marcos P. Santos 253ba55f1f [qt] Fix crash on Qt filesource
When opening many maps and sharing the same filesource:

- Say we open around 30 maps and they all have the same style.
- They will all request the same sprite.json, but Qt filesource will
  restrict simultaneous request to 20.
- Mapbox GL will send some sprite.json to the filesource and queue
  some internally along with other requests.
- When the first sprite.json arrives and the Qt filesource calls the
  callback, Mapbox GL will synchronously push queued requests to the
  Qt filesource when a request is handled.
- We are walking a QVector dispatching sprite.json requests, but more
  requests get added to this QVector while we are walking it using an
  iterator.
- That corrupts the iterator and we get a crash.

The fix is simple, just pop items from the QVector until it is empty
instead of using iterators.
2018-11-13 23:26:34 +02:00
..
2016-09-27 16:18:04 +03:00
2018-10-15 13:15:46 -07:00
2018-02-09 20:28:54 +02:00
2016-11-22 20:58:51 +01:00
2018-02-06 18:49:06 +01:00
2016-07-11 17:01:31 +03:00