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.

check for raw in signal handlers

See original GitHub issue

The signal handlers such as pre_save_image_feature_detection should check for raw to detect loading from a fixture and do nothing in this case. Otherwise you get an error loading fixtures if the source file doesn’t exist and WAGTAILIMAGES_FEATURE_DETECTION_ENABLED=True

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:15 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
lb-commented, Oct 21, 2022

@4the4ryushin I encourage you to look through the code yourself and try to find either a. Fixtures that have images or b. Similar test code where we are testing code that has logic based in raw.

1reaction
lb-commented, Oct 19, 2022

Go for it @4the4ryushin - be sure you can reproduce and understand the problem. I’d recommend you find where to write a unit test for this and start with writing a test that fails. Then change the code to get the test passing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python and signal handlers - Stack Overflow
I intend to use USR signals on linux in order to communicate with a python program running in the background as a service....
Read more >
Using the fork function in signal handlers
POSIX specifies that fork can be called safely from signal handlers; it is required to be an async-signal-safe function.
Read more >
C/C++ signal handling - YoLinux.com
C/C++ signal handling ; SIGILL, 4, Illegal Instruction (ANSI) Generally indicates that the executable file is corrupted or use of data where a...
Read more >
mikeash.com: Friday Q&A 2011-04-01: Signal Handling
In this edition, I will discuss various ways of handling signals in Mac programs, a topic suggested by friend of the blog Landon...
Read more >
SIGACTION() [WHO CHANGED MY SIGNAL HANDLER?] - IBM
This small script will track calls to 'sigaction()' for a given signal and executable. ... Eventually a raw stack dump in hex can...
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