How to handle custom Java exception in Flex app

we are using BlazeDS as a proxy between Flex and Java. The approach is the same as in (http://www.flexpasta.com/index.php/2008/05/16/exception-handling-with-blazeds-and-flex/) Java exception...

How to solve "NullPointerException" with "Server.processing" error while we are using Flex Builder 3 and BlazeDS?

I am using Flex builder 3, BlazeDS, and Java with Spring and Hibernate framework. I using the remote object to load a string from spring's configuration files. But in testing, I found this fault...

Why is a TimeoutException not faulting my channel?

I have a duplex WCF service and client running on the same machine. The client is configured to have 15 second timeouts: <binding name="NetTcpBinding_IServiceIPC" closeTimeout="00:00:15" ...

python: Is there a downside to using faulthandler?

Python 3.3 includes a module named faulthandler that displays helpful traceback information if a segfault occurs. (For Python versions prior to 3.3, the module can be obtained from PyPI.) The...

I am using jupyter notebook, ipython 3 on windows. Whenever i am starting my python 3, i get the "Kernel Dead" message

Dead kernel The kernel has died, and the automatic restart has failed. It is possible the kernel cannot be restarted. If you are not able to restart the kernel, you will still be able to save the...

How to debug Django segmentation faults?

I think after some update my Django app has started to segfault time after time. Below is my attempt to debug using gdb, however I cannot see the root cause: # gdb -ex=r --args...

Is it possible to trap a segmentation fault?

My application depends on ghostscript to turn some pdf files into a series of images for each page of the documents. This is a simplified version: import locale from ghostscript import...

Importing tensorflow makes python 3.6.5 error

Tensorflow used to work on my computer. But now when I try to import tensorflow python itself errors out. I am not given a traceback call to tell me what the error is. I get a window's prompt...

PySide segmentation fault on QObject instantiation

I have a class that is a base for my other non-qt classes. This class instantiates QObject class with Signal instance. Unfortunately, sometimes it raises Segmentation Fault error. Here is my...

Django segmentation fault when querying model within runserver

What could cause Django to see fault when querying a model within run server, but that same model can be queried exactly the same way within the interactive shell and not see fault? Here is my...

ModuleNotFoundError while running tests in pytest library

Structure of my files: ----foo.py ----boo.py ----tests_folder -----------------test_foo.py -----------------__init__.py In foo.py I've got import boo. My test_foo.py contains: import...

Python program fails to execute 50% of the time

I’m currently in the process of porting software from Python 2.7 to Python 3.7, and I’m seeing something that I have no idea how to address. When I type “python –m project.main” to run...

Segmentation fault in recognize_ndarray OpenALPR

I’m trying to detect plates using openalpr + python with an IP cam, but I’m getting the following error: The openalpr version is the Open Source. I've alrealdy tryied before recognize_file...

matplotlib qt5agg backend segmentation fault occurs after building distributable with pyinstaller

I'm building a GUI distributable using pyqt5, which shows a matplotlib plot in a popup window as the result. It works fine as a python code, but after building it into a binary via pyinstaller, it...

No module named 'serial'

I have a piece of Python3 code running on a Pi3B+ with Raspbian Buster that uses the serial library. I imported this library with sudo apt-get install python3-serial The Python script is placed...

Python's graph-tool Segmentation fault on import

I'm experiencing a Segmentation fault while importing the graph-tool module into Python. I have conducted some tests: import graph_tool doesn't result in any problems. >>> import graph_tool as...

Python 3.x Segmentation Fault with Threading module

Machine: Raspberry Pi 3B+ System: Raspbian GNU/Linux 10 (buster) Python version: Python 3.7.3 I have created code, that downloads chapters for novel from internet site protected by Cloudflare....

Redirect rtmp stream using python librtmp and nginx

Desired Outcome I'm trying to proxy an RTMP stream using nginx, read in that stream to a python script, and within that same script write the same data to a different RTMP stream. Problem Getting...

Trouble tracking down Python Segfault with thread and GTK

I'm having trouble tracking down why my Python code often (but not always) Segfaults. I'm a rank beginner at Python, so don't be too harsh on my code posted below. My code below is meant to run...

Msys2 with python 3.8: ImportError: cannot import name 'open_code' from 'io'

NOTE: There have been several EDITs to the question, as per comments. They are indicated below, and separated by lines. As of now, the only remaining issue seems to be that numpy cannot load,...

Handle SocketTimeoutException in Apache Camel

I have a java application with Apache ServiceMix and Apache Camel. Here is my Camel Spring XML configuration: <?xml version="1.0" encoding="UTF-8"?> <beans...

Python Flask SQL Alchemy Segmentation Fault

Just got a new laptop and cannot get a solution to run the DB migration. It works perfectly fine on another machine and also on a Ubuntu server. Running the DB migration results in: [1] 7379...

Python segmentation fault when using zipfile while GDAL package loaded

I'm encountering a weird segmentation fault error while trying to extract a ZIP file using the zipfile module while having imported the osgeo.gdal module (not exclusively, osgeo.ogr yields the...

gdb shows java on a python + pybind11 segfault?

I ran into segfault with some python + pybind11 (C++) code. I tried to debug in gdb but the stacktrace ended up with libjvm which I have no clue where it comes from. And now I am totally lost what...

Recover from segfault in Python

I have a few functions in my code that are randomly causing SegmentationFault error. I've identified them by enabling the faulthandler. I'm a bit stuck and have no idea how to reliably eliminate...

Bigquery Storage API Multiprocessing segfault

Long time reader, first time poster. I'm working with the BigQuery Storage API Python client library, and I'm running into some trouble splitting out my readers using Python multiprocessing. There...

Illegal instruction in random.py when building yocto dunfell

I'm in the process of upgrading my Yocto build from sumo to dunfell but I get an error in package python3-setuptools-native (v45.2.0-r0) which states that it has hit an Illegal instruction. My...

What alternatives are there to `time.sleep()` and `pygame.time.wait()`?

I'm very new to python. I am working on a simple game. So far, what I am trying to do is to add a few second delay between it showing the question rectangle and then showing the options. How would...

Segmentation fault (core dumped) on training the deep neural network /torch/cuda/__init__.py", line 172 in _lazy_init

python3 -q -X faulthandler test.py --model.backbone=resnet18 2021-02-07 20:14:21.198583: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library...

How to avoid out-of-memory error when creating large arrays from PySpark and Parquet for data analysis?

We have a somewhat unusual requirement that we're experimenting with. We have a parquet table with ~320 GB of frequency pixel values in arrays - the data is from a 3-dimensional spectral line...