question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Optimiser bug in libgsf

See original GitHub issue

Hello, I have noticed that sometimes, calls to Dzsave produce the following exception :

Exception= System.AccessViolationException: Tentative de lecture ou d'écriture de mémoire protégée. Cela indique souvent qu'une autre mémoire est endommagée (i.e : Attempt to read or write protected memory. This often indicates that another memory is damaged.) à NetVips.Internal.VipsOperation.VipsCacheOperationBuild(Operation operation) à NetVips.Operation.Call(String operationName, VOption kwargs, Object[] args) à NetVips.ExtensionMethods.Call(Image image, String operationName, VOption kwargs, Object arg) à NetVips.Image.Dzsave(String filename, String basename, String layout, Nullable'1 pageHeight, String suffix, Nullable'1 overlap, Nullable'1 tileSize, Nullable'1 centre, String depth, String angle, String container, Nullable'1 properties, Nullable'1 compression, Nullable'1 strip, Double[] background)

It’s quite hard to figure out when and why it happens. These exceptions generally lead the whole process to a crash (even with . From what I’ve observed, once the process has successfully produced one pyramid, the following ones will be OK. It happened on several hosts, which exclude an hardware memory issue or something host related.

This happens with 32bits release of LibVips but could be reproduced with the 64bits release as well (with code that allocates memory before calling NetVips to get closer to real life conditions). Maybe this could be related to the amount of available memory for the thread. Anyway, pushing the limits with memory usually lead to a more classic (and sympathetic) exception (like “not enough memory for…” which is perfect)… But sometimes, I get this deadly low level AccessViolationException which make the whole process unstable and finally crash it down).

I’ll try to upgrade NetVips and LibVips to the latest releases (who knows…). But if it’s something that you already experienced, I’d be interested in a hint 😃

Thanks for your attention

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kleisaukecommented, Sep 25, 2018

I’ve just released NetVips 1.0.5 which bundle and depend upon libvips 8.7.

0reactions
gjactatcommented, Sep 5, 2018

Yes !.. The bug seems clearly gone. I’ve tested tens of launches and did not observed any crash at startup. I was having this problem in nearly half of my previous tests.

Thanks !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Possible libgsf race condition with concurrent tile-based ...
Making that last change appears to correctly build all types at the beginning now. So, if it's a compiler optimization bug where do...
Read more >
Bug 39015 - GCC, the GNU Compiler Collection
How am I trying to do it / steps to reproduce: * Set up a sid environment in which to build libgsf from...
Read more >
bug libsigsegv - Bugs: Browse Items
bug libsigsegv - Bugs: Browse Items. Group. Main · Main · View members · Search · Homepage · Download · Mailing lists ·...
Read more >
Optimizer bug or programming error? - c++
First of all: I know that most optimization bugs are due to programming errors or relying on facts which may change depending on ......
Read more >
ChangeLog · master - libgsf - GitLab - GNOME
gsf/*.c: various introspection fixes, mostly from bug 794777 by ... optimize seek; the lower levels will do that just fine. 678. (ole_make_bat): Simplify....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found