crash

How to fix UIImagePickerController crash after switching to video capture mode?

给你一囗甜甜゛ 提交于 2021-02-19 04:28:06
问题 I have a crash with UIImagePickerController on iPhone XR(iOS 12.4.1) real device after switching to video capture mode. Crash reproduces on the second presentation of UIImagePickerController. Crash does not reproduce on iPhone 6(iOS 12.4.1) real device. Camera and Microphone usage description keys are set in Info.plist Test app built with Xcode 10.3 Steps: Present UIImagePickerController Dismiss UIImagePickerController Present UIImagePickerController Tap VIDEO button - > Crash Crash does not

What Can Cause a C Program to Crash Operating System

核能气质少年 提交于 2021-02-19 03:47:31
问题 I recently found that a fairly large image manipulation program I'm writing in C on a Windows 8 machine has a bug when used in very particular circumstances. Unfortunately, the bug is causing my entire computer to come to a standstill so that my only option is to pull the plug on the computer (especially annoying when I'm working remotely...) Because it's an image manipulation program, I can't just flood it with print statements to isolate the problematic section - the problem occurs

function returning std::string crashes without return statement, unlike a function returning int without return statement

[亡魂溺海] 提交于 2021-02-19 03:47:09
问题 #include <iostream> #include <string> using namespace std; string crash() { } int noCrash() { } int main() { crash(); // crashes // noCrash(); // doesn't crash return 0; } The function crash(), crashes with Mingw g++ 4.6.2 and the function noCrash() executes with no issues. Why does the function returning string crash without a return statement? 回答1: Both are undefined behaviors, even noCrash can crash. 回答2: From standard 6.6.3/2 A return statement without an expression can be used only in

C++ crash when use setmode with _O_U8TEXT to deal with unicode

你离开我真会死。 提交于 2021-02-18 15:38:14
问题 What I've tried to print unicode is _setmode(_fileno(stdout), _O_U8TEXT); string str = u8"unicode 한글 hangul"; cout << str << endl; I used setmode to show and get unicode correctly, but It crashed with Debug Assertion Fail. However, _setmode(_fileno(stdout), _O_U16TEXT); wstring str = L"unicode 한글 hangul"; wcout << str << endl; _O_U16TEXT compile and print correctly. What should I do to use UTF-8? Do I have to find another trick? 回答1: _setmode mentions _O_U8TEXT and _O_U16TEXT (finally), but

iOS crash libobjc.A.dylib objc_msgSend

╄→гoц情女王★ 提交于 2021-02-18 10:44:33
问题 I am getting the crash shown below in Crashlytics. I am unable to understand where this is coming form within the app. Unfortunately I have never been able to generate this crash myself, but it is occurring in the wild. There is only one reference to the app name, and there is nothing that leads to show where in the app this is coming from. Is the fact that there is no data as to where in the app this occurs, an indication of an issue occurring during didFinishLaunchingWithOptionsand thus not

app crashes reported due to missing NSPhotoLibraryAddUsageDescription, but my app never uses any photos

十年热恋 提交于 2021-02-18 07:33:18
问题 I'm seeing a few crash reports that say Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Termination Reason: TCC, This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSPhotoLibraryAddUsageDescription key with a string value explaining to the user how the app uses this data. All very interesting, especially because my app never

ubuntu 16.04.1 LTS crashes when starting android emulator

ぐ巨炮叔叔 提交于 2021-02-18 04:58:45
问题 I have tried both the AVD on Android studio and Genymotion emulator. My ubuntu 16.04.1 crashes (freezes) when starting the android emulator. My computer has 16G memory. This happens after I installed the latest updates for my ubuntu in 19 Sept 2016. 回答1: I had same problem. Select in menu "Emulated performance" the "software", no automatical or hardvare 回答2: I had the same problem. You are probably using nouveau display driver instead of NVIDIA driver. You can check your driver with: lshw -c

MySQL container crash after /etc/mysql/my.cnf change, how to edit back?

旧城冷巷雨未停 提交于 2021-02-17 05:27:29
问题 I changed some mysql config settings and set something wrong, now Docker container keeps restarting and I cannot find the my.cnf file to edit in host filesystem. I have tried aufs/diff folders but so far unable to find it. Also tried: find / -name my.cnf -exec nano {} \; But it does not bring up the file I changed. And I tried to change config.v2.json to start /bin/bash instead of mysqld and restarted docker, but yet it started mysqld (due supervisor or something?) using official mysql

How to find out why application crashes - Win 10 LTSB

只谈情不闲聊 提交于 2021-02-17 05:26:04
问题 I have application built with VS 2017 15.7.4, it is 64-bit command-line C++ app. I have copied it with all dependency DLL's to machine with Windows 10 Enterprise 2016 LTSB 64bit (ver says Version 10.0.14393). Application works. Then I copied it to another machine with the same version of windows. There it stops right away with message stopped working . edit: found the cause, details are in comments What I tried to fix the problem: Visual Studio 2017 redistributables do not change the

TypeError: 'pygame.Surface' object is not callable and pygame window crashes

送分小仙女□ 提交于 2021-02-17 02:43:00
问题 I'm quite new to Pygame and Python and I've just made one of my first codes but somehow I keep getting this error: TypeError: 'pygame.Surface' object is not callable I don't know whether there is something wrong in the code or just because Pygame/Python isn't installed correctly. bif="bg.jpg" mif="ball.png" import pygame, sys from pygame.locals import * pygame.init() screen=pygame.display.set_mode((640,360),0,32) background=pygame.image.load(bif).convert() mouse_c=pygame.image.load(mif)