Quantcast
Channel: Active questions tagged crash - Stack Overflow
Viewing all 7195 articles
Browse latest View live

Xcode 11 crashes when opening the project

$
0
0

I downloaded new Xcode 11 today and when I am trying to open my project, Xcode will always crash. Does anyone else experience this problem ? I have provided part of crash log. It's IDE related problem, but I would be really glad, someone has a solution to this.

Crashed Thread:        25  Dispatch queue: ConcurrentQueue: -[IDEProvisioningMechanic _executeNextRepairIfNeeded]_block_invoke

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
ProductBuildVersion: 11A420a
ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-14936/IDEFoundation/Provisioning/Mechanic/IDEProvisioningRepairStepGenerator.m:252
Details:  Didn't find a single primary certificate type from {(
)}
Object:   <IDEProvisioningRepairStepGenerator_Automatic: 0x7fdc55061ef0>
Method:   -_evaluateCertificatesWithSession:context:repairable:steps:userAction:error:
Thread:   <NSThread: 0x7fdc44944ca0>{number = 20, name = (null)}
Hints:   

Backtrace:
  0   -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit)
  1   _DVTAssertionHandler (in DVTFoundation)
  2   _DVTAssertionFailureHandler (in DVTFoundation)
  3   -[IDEProvisioningRepairStepGenerator_Automatic _evaluateCertificatesWithSession:context:repairable:steps:userAction:error:] (in IDEFoundation)
  4   -[IDEProvisioningRepairStepGenerator_Automatic stepsWithSession:context:userAction:error:] (in IDEFoundation)
  5   -[IDEProvisioningRepair execute] (in IDEFoundation)
  6   __53-[IDEProvisioningMechanic _executeNextRepairIfNeeded]_block_invoke_2 (in IDEFoundation)
  7   __DVT_CALLING_CLIENT_BLOCK__ (in DVTFoundation)
  8   __DVTDispatchAsync_block_invoke (in DVTFoundation)
  9   _dispatch_call_block_and_release (in libdispatch.dylib)
 10   _dispatch_client_callout (in libdispatch.dylib)
 11   _dispatch_continuation_pop (in libdispatch.dylib)
 12   _dispatch_async_redirect_invoke (in libdispatch.dylib)
 13   _dispatch_root_queue_drain (in libdispatch.dylib)
 14   _dispatch_worker_thread2 (in libdispatch.dylib)
 15   _pthread_wqthread (in libsystem_pthread.dylib)
 16   start_wqthread (in libsystem_pthread.dylib)

I have deleted caches in library, derivated data, even disabled automatic signing, but none of these work.

UPDATE

Project can be opened, when I logout from developer account, otherwise, this crash always occurs.


Xamarin App runs on debug but crashes on release

$
0
0

My Xamarin application works perfectly on debug mode but crashes on release mod. I get this error: "Unfortunately App has stopped". I connected my phone through USB and when I run the app in release mode I get this error.

Unfortunately I can't debug the app in release mod because I get this message in the Output window: "Android application is running (debug is disabled in android project properties)", although the "Enable developer instrumentation" box is checked. I tried all linking alternative None/SDK/SDK and User but still doesn't work.

Is there a way to see what causes the crash, in a log file or something else ?

get a probeGC crash in Fabric Crashlytics

$
0
0

This crash is happening only on iOS 13.3.1 & 13.4.0

This crash is happening randomly and is a real deterrent to my customers.

I have update fabric library to lastest version (1.10.2).

Crashed: com.apple.main-thread
0  libobjc.A.dylib                0x1947be090 objc_msgSend + 16
1  Foundation                     0x194e564f0 probeGC + 120
2  Foundation                     0x194d6cd64 -[NSConcreteMapTable rehashAround:] + 204
3  Foundation                     0x194d6cc68 -[NSConcreteMapTable removeObjectForKey:] + 248
4  UIKitCore                      0x198fbd484 _UIAnalyticsGatherMultitouchAnalytics + 632
5  UIKitCore                      0x198b38a10 -[UIApplication sendEvent:] + 204
6  UIKitCore                      0x198bb0c20 __dispatchPreprocessedEventFromEventQueue + 5880
7  UIKitCore                      0x198bb317c __handleEventQueueInternal + 4924
8  UIKitCore                      0x198babff0 __handleHIDEventFetcherDrain + 108
9  CoreFoundation                 0x194a18a00 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
10 CoreFoundation                 0x194a18958 __CFRunLoopDoSource0 + 80
11 CoreFoundation                 0x194a180f0 __CFRunLoopDoSources0 + 180
12 CoreFoundation                 0x194a1323c __CFRunLoopRun + 1080
13 CoreFoundation                 0x194a12adc CFRunLoopRunSpecific + 464
14 GraphicsServices               0x19e9b3328 GSEventRunModal + 104
15 UIKitCore                      0x198b2063c UIApplicationMain + 1936
16 xxxxxxxxxxxxxxx                0x1029863dc main + 17 (main.m:17)
17 libdyld.dylib                  0x19489c360 start + 4

Using vbAccelarator Win32 Hook crashes application along with VB IDE

$
0
0

I'm working on VB6 project where I need to have keyboard short-cuts for Buttons on Toolbar Control. To accomplish this, I have used Win32 Hooks library from vbAccelerator. Here's my IWindowsHook_HookProc function, that I use to retrieve Key strokes & perform action based on pressed short-cut (Ctrl + N for New, Ctrl + O for Open and Ctrl + S for Save) , but the I don't know what's wrong with the code that crashes my application along with VB6 IDE. The function is currently incomplete as I just tried to identify Ctrl + N key combination to test this feature. Please help me out.... :-|

Private Function IWindowsHook_HookProc(ByVal eType As EHTHookTypeConstants, ByVal nCode As Long, ByVal wParam As Long, ByVal lParam As Long, bConsume As Boolean) As Long
If KeyboardlParam(lParam).KeyDown Then
     Select Case True
           Case Me.ActiveControl = Me
                 If wParam = vbKeyControl + vbKeyN Then
                        frmNewReport.show
                        bConsume = True
                 End If
     End Select
End If

Android Studio - How to increase Allocated Heap Size

$
0
0

I've been using Android Studio for 3 months now and one of the apps I started on it has become fairly large. The memory usage indicated at the bottom right of the program says my allocated heap is maxed at 494M.

enter image description here

When I start to change the XML files my memory usage quickly reaches that cap and the IDE crashes with an Out Of Memory error like this.

enter image description here

I've tried to increase the heap size using this but so far there has been no effect.

I've looked at dozens of articles and other questions on how to increase the heap size but none of their answers are working. No matter what I do to the VMOPTIONS or the IDE settings the heap size never increases. I believe I am editting the correct file for the VMOPTIONS because if I purposely give it an invalid command Android Studio complains about it and doesn't start.

I'm using windows 7 - 64 bit and have 16GB RAM. Has anyone else had this problem with Android Studio? And were you able to fix it?

Xcode not symbolicating crashes anymore

$
0
0

I have this old Objective-C project built for iOS 9 that I have to update.

I am testing the project and after doing a lot of updates, it is now crashing.

The crash shows no symbol and it is like this shown on Xcode console:

2020-03-13 18:47:50.997200+0000 myApp[741:82239] (
    0   CoreFoundation                      0x00000001ae474a5c 7519E999-1053-3367-B9D5-8844F6D3BDC6 + 1227356
    1   libobjc.A.dylib                     0x00000001ae19bfa4 objc_exception_throw + 56
    2   CoreFoundation                      0x00000001ae4ca360 7519E999-1053-3367-B9D5-8844F6D3BDC6 + 1577824
    3   CoreFoundation                      0x00000001ae34ce94 7519E999-1053-3367-B9D5-8844F6D3BDC6 + 16020
    4   myApp                               0x00000001009a346c __55-[SVSegmentedControl setSelectedSegmentIndex:animated:]_block_invoke + 92
    5   UIKitCore                           0x00000001b29842dc D7630067-7A00-3CB7-99E1-E7F6C55D85C5 + 15258332
    6   UIKitCore                           0x00000001b29848bc D7630067-7A00-3CB7-99E1-E7F6C55D85C5 + 15259836
    7   myApp                               0x00000001009a32f0 -[SVSegmentedControl setSelectedSegmentIndex:animated:] + 456
    8   myApp                               0x00000001009a25ac -[SVSegmentedControl snap:] + 1060
    9   myApp                               0x00000001009a1f58 -[SVSegmentedControl endTrackingWithTouch:withEvent:] + 1268
    10  UIKitCore                           0x00000001b1f312f4 D7630067-7A00-3CB7-99E1-E7F6C55D85C5 + 4432628
    11  UIKitCore                           0x00000001b2535050 D7630067-7A00-3CB7-99E1-E7F6C55D85C5 + 10739792
    12  UIKitCore                           0x00000001b2536390 D7630067-7A00-3CB7-99E1-E7F6C55D85C5 + 10744720
    13  UIKitCore                           0x00000001b2512a9c D7630067-7A00-3CB7-99E1-E7F6C55D85C5 + 10599068
    14  UIKitCore                           0x00000001b258ac20 D7630067-7A00-3CB7-99E1-E7F6C55D85C5 + 11090976
    15  UIKitCore                           0x00000001b258d17c D7630067-7A00-3CB7-99E1-E7F6C55D85C5 + 11100540
    16  UIKitCore                           0x00000001b2585ff0 D7630067-7A00-3CB7-99E1-E7F6C55D85C5 + 11071472
    17  CoreFoundation                      0x00000001ae3f2a00 7519E999-1053-3367-B9D5-8844F6D3BDC6 + 694784
    18  CoreFoundation                      0x00000001ae3f2958 7519E999-1053-3367-B9D5-8844F6D3BDC6 + 694616
    19  CoreFoundation                      0x00000001ae3f20f0 7519E999-1053-3367-B9D5-8844F6D3BDC6 + 692464
    20  CoreFoundation                      0x00000001ae3ed23c 7519E999-1053-3367-B9D5-8844F6D3BDC6 + 672316
    21  CoreFoundation                      0x00000001ae3ecadc CFRunLoopRunSpecific + 464
    22  GraphicsServices                    0x00000001b838d328 GSEventRunModal + 104
    23  UIKitCore                           0x00000001b24fa63c UIApplicationMain + 1936
    24  Myapp.                              0x000000010090652c main + 164
    25  libdyld.dylib                       0x00000001ae276360 7B531A15-3E73-3185-90E2-B88D9476DA5E + 4960
)

I have tried to symbolicate that manually but this is not a regular crash file and is not recognized by ´symbolicatecrash` as one.

I have checked build settings and I have

  1. debug information format : Dwarf with dSym file turned on for debug.
  2. I have strip symbols disabled.

Note: the device has no crash logs. This is iOS.

Any ideas?

Clean Laravel install with Xdebug, getting 503 errors

$
0
0

I've installed Laravel (Framework version 6.18.1) on my local setup using the Laravel installer. I use Docker with Devilbox and Xdebug enabled. The problem I run into is that everytime a page renders a PHP error, I get a 503 error in my browser (instead of an Xdebug error or Laravel error page). When I run artisan functions that cause a php error, I get memory errors in the console. As soon as I disable Xdebug, I get the usual Laravel errors. I'd like to use Laravel with Xdebug enabled, but I can't figure out why the two won't play nice together. I have searched for solutions but it seems I'm the only one. The strange this is that I've also tried it in another computer with a similar setup (Docker+Devilbox) and I run into the same problem.

Does anybody know why Xdebug and Laravel won't co-exist on my system and how I can fix it?

Flutter: App crashes silently when using StreamBuilder

$
0
0

I'm trying to figure out what the problem with my StreamBuilder/Stream is:

Stream<Page> pageStream;

@override
void initState() {
  super.initState();
  final firestoreService = Provider.of<FirestoreService>(context, listen: false);
  final book = Provider.of<Book>(context, listen: false);
  final pageNumber = Provider.of<int>(context, listen: false);
  pageStream = firestoreService.getStreamOfPage(bookId: book.bookId, pageNumber: pageNumber);
}

@override
Widget build(BuildContext context) {
  return StreamBuilder(
          stream: pageStream,
          builder: (context, snapshot) {
            if (snapshot.connectionState == ConnectionState.waiting ||
                snapshot.connectionState == ConnectionState.none) {
              return CupertinoActivityIndicator();
            }

            if (snapshot.hasError) {
              return Text('the error is = ${snapshot.error.toString()}');
            }

            Page page = snapshot.data;

            return Container(
              color: Colors.purple,
              height: 30,
              width: 30,
            );
          }

  );
}

So in the initstate method I get the stream which is stored in the state and then assigned to the StreamBuilder.

The method that gets the Stream is:

Stream<Page> getStreamOfPage(
    {@required String bookId, @required int pageNumber}) {
  try {
    Stream<Page> pageStream = _fireStore
        .document('books/$bookId/$pageNumber')
        .snapshots()
        .map((docSnapshot) => Page.fromMap(map: docSnapshot.data));
    return pageStream;
  } catch (e) {
    print(
        'Could not get stream of page with bookId = $bookId and pageNumber = $pageNumber');
    print(e);
    return null;
  }
}

The print statements I wrote inside the constructor Page.fromMap() (including one at the end of the constructor) were executed so I assume the error is not there. Print statements I added inside the map method (from .snapshots().map(...)) were not executed, which makes no sense to me because the ones in the Page constructor are executed (with the right values from the firebase document).

The call stack is as follows:

*** First throw call stack:
(
    0   CoreFoundation                      0x00007fff23c7127e __exceptionPreprocess + 350
    1   libobjc.A.dylib                     0x00007fff513fbb20 objc_exception_throw + 48
    2   CoreFoundation                      0x00007fff23c70ff8 +[NSException raise:format:arguments:] + 88
    3   Foundation                          0x00007fff256e9c1a -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 166
    4   Runner                              0x00000001018ca524 _ZN8firebase9firestore4util16ObjcThrowHandlerENS1_13ExceptionTypeEPKcS4_iRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE + 356
    5   Runner                              0x00000001018c9d63 _ZN8firebase9firestore4util5ThrowENS1_13Except<…>

IOS 13 - Fatal Exception: NSInternalInconsistencyException

$
0
0

Many crashes on Fabric because of this error:

Fatal Exception: NSInternalInconsistencyException
Modifications to the layout engine must not be performed from a background thread after it has been accessed from the main thread.

Fatal Exception: NSInternalInconsistencyException
0  CoreFoundation                 0x1c34c896c __exceptionPreprocess
1  libobjc.A.dylib                0x1c31e1028 objc_exception_throw
2  Foundation                     0x1c39b45e0 -[NSISEngine tryToOptimizeReturningMutuallyExclusiveConstraints]
3  Foundation                     0x1c37ad854 -[NSISEngine _optimizeWithoutRebuilding]
4  Foundation                     0x1c37ad768 -[NSISEngine optimize]
5  Foundation                     0x1c37ad3d8 -[NSISEngine performPendingChangeNotifications]
6  UIKitCore                      0x1c7a695b8 -[UIView(Hierarchy) layoutSubviews]
7  UIKitCore                      0x1c7a7c8b0 -[UIView(CALayerDelegate) layoutSublayersOfLayer:]
8  libobjc.A.dylib                0x1c31dca4c -[NSObject performSelector:withObject:]
9  QuartzCore                     0x1ca09255c -[CALayer layoutSublayers]
10 QuartzCore                     0x1ca0929ac CA::Layer::layout_if_needed(CA::Transaction*)
11 QuartzCore                     0x1ca0a51bc CA::Layer::layout_and_display_if_needed(CA::Transaction*)
12 QuartzCore                     0x1c9fe9b00 CA::Context::commit_transaction(CA::Transaction*, double)
13 QuartzCore                     0x1ca014910 CA::Transaction::commit()
14 QuartzCore                     0x1ca0154e4 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*)
15 CoreFoundation                 0x1c3443524 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__
16 CoreFoundation                 0x1c343e1c4 __CFRunLoopDoObservers
17 CoreFoundation                 0x1c343df60 CFRunLoopRunSpecific
18 WebCore                        0x1cb618820 RunWebThread(void*)
19 libsystem_pthread.dylib        0x1c31d1840 _pthread_start
20 libsystem_pthread.dylib        0x1c31d99f4 thread_start

My full code here: https://github.com/tongvantruong/code/blob/master/TestingController.swift

I don't really understand where is the root cause from the crash message. Please help me!

how to resolve spyder crash in ubuntu

$
0
0

I have using Spyder 3.3.6 and python Python 3.7.3 64-bit | Qt 5.9.6 | PyQt5 5.9.2 | Linux 5.0.0-37-generic with anaconda in ubunut 18.04 machine for a while with no problem , to day a have started spyder and it keep crash and i get this , so what can i do to start spyder again without reinstall all

    $ spyder
1584271806 WARNING torsocks[18523]: [syscall] Unsupported syscall number 217. Denying the call (in tsocks_syscall() at syscall.c:568)
    1584271809 WARNING torsocks[18515]: [syscall] Unsupported syscall number 118. Denying the call (in tsocks_syscall() at syscall.c:568)
    [18515:18515:0315/123009.991958:FATAL:credentials.cc(47)] Check failed: sys_getresuid(&ruid, &euid, &suid) == 0. : Function not implemented
    #0 0x7faae9a7a0be <unknown>
    #1 0x7faae9a8c6c2 <unknown>
    #2 0x7faae9a8da3c <unknown>
    #3 0x7faaea4513cf <unknown>
    #4 0x7faaea451bbb <unknown>
    #5 0x7faae97f61a5 <unknown>
    #6 0x7faae95a0994 <unknown>
    #7 0x7faae95a4727 <unknown>
    #8 0x7faae9436542 <unknown>
    #9 0x7faae9436718 <unknown>
    #10 0x7faae942d681 <unknown>
    #11 0x7faae942d732 QtWebEngineCore::WebContentsAdapter::WebContentsAdapter()
    #12 0x7faaedcda376 <unknown>
    #13 0x7faaedcd80c4 <unknown>
    #14 0x7faaedcd8252 QWebEnginePage::QWebEnginePage()
    #15 0x7faaedd09689 sipQWebEnginePage::sipQWebEnginePage()
    #16 0x7faaedd09812 init_type_QWebEnginePage
    #17 0x7faaeff5d494 <unknown>
    #18 0x55f6d6f689b8 _PyObject_FastCallKeywords
    #19 0x55f6d6fc4026 _PyEval_EvalFrameDefault
    #20 0x55f6d6f0650b _PyFunction_FastCallDict
    #21 0x55f6d6f1dc43 _PyObject_Call_Prepend
    #22 0x55f6d6f600aa slot_tp_init
    #23 0x55f6d6f689b8 _PyObject_FastCallKeywords
    #24 0x55f6d6fc4026 _PyEval_EvalFrameDefault
    #25 0x55f6d6f0650b _PyFunction_FastCallDict
    #26 0x55f6d6f1dc43 _PyObject_Call_Prepend
    #27 0x55f6d6f600aa slot_tp_init
    #28 0x55f6d6f689b8 _PyObject_FastCallKeywords
    #29 0x55f6d6fc4026 _PyEval_EvalFrameDefault
    #30 0x55f6d6f0650b _PyFunction_FastCallDict
    #31 0x55f6d6f1dc43 _PyObject_Call_Prepend
    #32 0x55f6d6f600aa slot_tp_init
    #33 0x55f6d6f689b8 _PyObject_FastCallKeywords
    #34 0x55f6d6fc4026 _PyEval_EvalFrameDefault
    #35 0x55f6d6f054f9 _PyEval_EvalCodeWithName
    #36 0x55f6d6f065d5 _PyFunction_FastCallDict
    #37 0x55f6d6f1dc43 _PyObject_Call_Prepend
    #38 0x55f6d6f600aa slot_tp_init
    #39 0x55f6d6f689b8 _PyObject_FastCallKeywords
    #40 0x55f6d6fc4026 _PyEval_EvalFrameDefault
    #41 0x55f6d6f05db9 _PyEval_EvalCodeWithName
    #42 0x55f6d6f67a27 _PyFunction_FastCallKeywords
    #43 0x55f6d6fc3ed9 _PyEval_EvalFrameDefault
    #44 0x55f6d6f6779b _PyFunction_FastCallKeywords
    #45 0x55f6d6fbf846 _PyEval_EvalFrameDefault
    #46 0x55f6d6f6779b _PyFunction_FastCallKeywords
    #47 0x55f6d6fc3ed9 _PyEval_EvalFrameDefault
    #48 0x55f6d6f6779b _PyFunction_FastCallKeywords
    #49 0x55f6d6fbf846 _PyEval_EvalFrameDefault
    #50 0x55f6d6f054f9 _PyEval_EvalCodeWithName
    #51 0x55f6d6f063c4 PyEval_EvalCodeEx
    #52 0x55f6d6f063ec PyEval_EvalCode
    #53 0x55f6d701e874 run_mod
    #54 0x55f6d7028b81 PyRun_FileExFlags
    #55 0x55f6d7028d73 PyRun_SimpleFileExFlags
    #56 0x55f6d7029e5f pymain_main
    #57 0x55f6d7029f7c _Py_UnixMain
    #58 0x7fab0508eb6b __libc_start_main
    #59 0x55f6d6fcf122 <unknown>

    Aborted (core dumped)

app stopped working error in android studio

$
0
0

i just keep getting an error "app has stopped" while running the app in android studio, the logcat does point out the problem but i am a starter at this and have no clue how to get it done. Plz advise. Thanks! enter image description here

Node.js app crashing when trying to download large file using it

$
0
0

I am trying to write a program that can convert HTTP URLs to torrents. This project is working basically working for download links contain small files. Like a file of 1-500Mb. My problem is if the file size is more than that the app is crashing or getting a timeout. So I want to know how to fix this. Below is my code and link to Github.

https://github.com/savadks95/FireBit

var http          = require('http');
var webtorrentify = require('webtorrentify-link');
var fs            = require('fs');
var url           = require("url");
var path          = require("path");
var validUrl      = require('valid-url');
var express       = require('express');
var getUrls       = require('get-urls');
var remote        = require('remote-file-size');
var app           = express();

var downloadLink;
var fileName;
var fileSize;
var server;
var parsed;
var param;
var link;
var port;
port = process.env.PORT || 80;

app.get('/favicon.ico', function(req, res){
console.log('favicon request recived');
});
app.get('*', function(req, res){
    if(req.url==='/'){

      //app.use('/public/html', express.static(path.join(__dirname)));

    fs.readFile('public/html/index.html', function (err, data) {
    res.write(data);  
  });
  }else if (req.url === '/l?thelink='){
    fs.readFile('public/html/emptyRequest.html', function (err, data) {
      res.write(data);
      res.end();
  });
}else{
//---------Reciving Url--------------------
  console.log(req.query.thelink);
  downloadLink=req.query.thelink;
  //-----------------------------------------

  //------------checking for valid url-------
  if (validUrl.isUri(downloadLink)) {
    console.log('Looks like an URL');
    //-----------------------------------------

    //----------Extracting filename-------------
    parsed = url.parse(downloadLink);
    fileName = path.basename(parsed.pathname);
    console.log(path.basename(parsed.pathname));
    //-------------------------------------------

    //----------Finding File size----------------
    remote(downloadLink, function(err, o) {
      fileSize = (o/1024)/1024;
      console.log('size of ' + fileName + ' = ' + fileSize+" MB");  
    //-------------------------------------------
    if (fileSize < 501)
    {
    ///////////////Creating Torrent////////////////////
    webtorrentify(downloadLink)
      .then(function (buffer) {
         console.log('creating the torrent');
         //res.send('what is');
         //-------------------------------------------
         res.setHeader('Content-Type', 'application/x-bittorrent');
         res.setHeader('Content-Disposition', `inline; filename="${fileName}.torrent"`);
         res.setHeader('Cache-Control', 'public, max-age=2592000'); // 30 days
         res.send(buffer);
         console.log(fileName+'.torrent created');
         res.end();
         //-------------------------------------------
      });
    ////////////////////////////////////////////////
    }
    else{
      console.log('More than 500 MB');
      res.send("<h4> More than 500 MB or invalid URL </h4>");
    }
  });
  }
  else {
    console.log('not url');
    fs.readFile('public/html/404.html', function (err, data) {
      res.write(data);
      res.end();
    });

  }
}
});

app.listen(port);

console.log('server up and running', port);

Unfortunately MyApp has stopped. How can I solve this?

$
0
0

I am developing an application, and everytime I run it, I get the message:

Unfortunately, MyApp has stopped.

What can I do to solve this?


About this question - obviously inspired by What is a stack trace, and how can I use it to debug my application errors?, there are lots of questions stating that their application has crashed, without any further detail. This question aims to instruct novice Android programmers on how to try and fix their problems themselves, or ask the right questions.

Child view controller should have parent view controller but actual parent is (UIViewControllerHierarchyInconsistency)

$
0
0

I have an app which has UITabbarController as the initial window(after logging-in i set it as rootViewController)

This tabbarController has 4 different tabs in it which are all UIViewControllers embedded in a UINavigationController.

In my tabbarController when i am making the initial configurations i set tabs like below:

  • First I create the viewControllers:

    let tableViewController1 = tableViewController1(nibName: "tableViewController1", bundle: nil)
    let tableViewController2 = tableViewController2(nibName: "tableViewController2", bundle: nil)
    let tableViewController3 = tableViewController3(nibName: "tableViewController3", bundle: nil)
    let profileViewController = ProfileViewController(nibName: "ProfileViewController", bundle: nil)
    
  • Then I embed them inside navigationControllers:

    let navController1 = UINavigationController(rootViewController: tableViewController1)
    let navController2 = UINavigationController(rootViewController: tableViewController2)
    let navController3 = UINavigationController(rootViewController: tableViewController3)
    let navController4 = UINavigationController(rootViewController: profileViewController)
    
  • Finally, add the navigationControllers as tabbarController's viewControllers

    viewControllers = [navController1,navController2,navController3,navController4]

I looked it up online and this way of using it seems correct. Ex: https://medium.com/@ITZDERR/uinavigationcontroller-and-uitabbarcontroller-programmatically-swift-3-d85a885a5fd0. However i'm receiving crash logs from my live app as below

Crash, child view controller:<UINavigationController: 0x160b3400>
should have parent view controller:<ProfileViewController: 0x16098800>
but actual parent is:<MyApp.MainTabBarController: 0x16064c00>

The problem in here is that the crash says profileViewController should be the parent of the navigationController however i embedded profileViewController inside the navigationController and added as tabbarController's viewControllers, so in my opinion the order is correct.

I searched for this crash and it seems like i'm skipping a step of either using addChildViewController or removing a parent somewhere, but couldn't figured out.

I have find related link to this but non-of them helped me to solve this issue.

Example links:

Getting crash in xcode 11.3 viewcontroller getting nill

$
0
0

Getting error :: Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: ' returned nil from -traitCollection, which is not allowed.

It is crashing in this method func carbonTabSwipeNavigation(_ carbonTabSwipeNavigation: CarbonTabSwipeNavigation, viewControllerAt index: UInt) -> UIViewController { let sb = UIStoryboard.init(name: storybordname, bundle: nil) var viewcontroller:UIViewController! viewcontroller = sb.instantiateViewController(withIdentifier: controllername) return viewcontroller } When i Checked after putting breakpoint its crashing on the first line super.viewDidLoad()


why app crash when we using streaming-media plugin in ionic 4

$
0
0

I developed a media app using ionic 4 And it have video uploading option in my app, after choosing that video from library i want to check the video it works fine 20 days after i upload to the playstore

this.streamingMedia.playVideo('https://path/to/video/stream', options);

crash the app.

Stuck on sound button

$
0
0
import UIKit
import AVFoundation


class ViewController: UIViewController {

    var audioPlayer: AVAudioPlayer!


    override func viewDidLoad() {
        super.viewDidLoad()
    }

    @IBAction func playButtonPressed(_ sender: UIButton) {
    }


             // Set the sound file name & extension
        let alertSound = URL(fileURLWithPath: Bundle.main.path(forResource: "lets communicate", ofType: "mp3")!) 

Thread 1:Fatal error:Unexpedtedly found nil while unwrapping an Optional value.



}

So this is my code. I keep getting an error and my program crashes. I am trying to make a simple app for my grandson who was diagnosed with autism. So it's just a simple button and sound app. I am having a hard time with the sound button part...

How to restore OneTab old data on Chrome?

$
0
0

I had around 2600 tabs on OneTab, and they were available till yesterday, but suddenly Chrome browser was not responding so I forcibly closed it and re-opened it, after saving my new tabs I found that OneTab was empty, and there're only those new tabs, the previous 2600 tabs were gone!

Is there any way I can get these tabs back? I thought maybe there's a temporary backup folder in any place inside the computer, knowing that the computer didn't crash but it's only chrome , and that NOW OneTab already saved 112 new tabs.

I found this answer about finding 2 files and copying them, Restore OneTab list of tabs after computer crash but it didn't help because:

  1. I found only one of these files.
  2. My case is different as I'm not restoring OneTab from Computer to another, it's on the same computer, so I don't have a backup.

How to find the old files?

Crash on using Glide library

$
0
0

Loading different size of images into ImageView using Glide Library. But not sure why glide fails to handle the memory consumption, recycle and reuse it.

Gradle:

api 'com.github.bumptech.glide:glide:4.3.0'

Usage:

@BindingAdapter({"imageUrl"})
public static void imageUrl(ImageView view, String imageUrl) {
    try {
        if (imageUrl!=null) {
            Glide.with(view.getContext()).load(imageUrl).into(view);
        }
    } catch (Exception e) {
        e.printStackTrace();
    }
}

Crash Log:

 04-23 13:19:34.390 4758-4758/xx.xx.xxxE/AndroidRuntime: FATAL EXCEPTION: main
    Process: xxx.xx.xxxx, PID: 4758
    java.lang.RuntimeException: Unable to destroy activity {xx.xx.xx/x.xx.xx.xxx.xxxxActivity}: java.lang.IllegalStateException: Cannot obtain size for recycled Bitmap: android.graphics.Bitmap@e212eb2[12x12] ARGB_8888
        at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4603)
        at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4621)
        at android.app.ActivityThread.-wrap5(Unknown Source:0)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1757)
        at android.os.Handler.dispatchMessage(Handler.java:105)
        at android.os.Looper.loop(Looper.java:164)
        at android.app.ActivityThread.main(ActivityThread.java:6938)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
     Caused by: java.lang.IllegalStateException: Cannot obtain size for recycled Bitmap: android.graphics.Bitmap@e212eb2[12x12] ARGB_8888
        at com.bumptech.glide.util.Util.getBitmapByteSize(Util.java:74)
        at com.bumptech.glide.load.engine.bitmap_recycle.SizeConfigStrategy.removeLast(SizeConfigStrategy.java:97)
        at com.bumptech.glide.load.engine.bitmap_recycle.LruBitmapPool.trimToSize(LruBitmapPool.java:221)
        at com.bumptech.glide.load.engine.bitmap_recycle.LruBitmapPool.evict(LruBitmapPool.java:116)
        at com.bumptech.glide.load.engine.bitmap_recycle.LruBitmapPool.put(LruBitmapPool.java:112)
        at com.bumptech.glide.load.resource.bitmap.LazyBitmapDrawableResource.recycle(LazyBitmapDrawableResource.java:57)
        at com.bumptech.glide.load.engine.EngineResource.recycle(EngineResource.java:63)
        at com.bumptech.glide.load.engine.ResourceRecycler.recycle(ResourceRecycler.java:28)
        at com.bumptech.glide.load.engine.Engine.onResourceRemoved(Engine.java:326)
        at com.bumptech.glide.load.engine.cache.LruResourceCache.onItemEvicted(LruResourceCache.java:31)
        at com.bumptech.glide.load.engine.cache.LruResourceCache.onItemEvicted(LruResourceCache.java:11)
        at com.bumptech.glide.util.LruCache.trimToSize(LruCache.java:175)
        at com.bumptech.glide.util.LruCache.evict(LruCache.java:180)
        at com.bumptech.glide.util.LruCache.put(LruCache.java:135)
        at com.bumptech.glide.load.engine.cache.LruResourceCache.put(LruResourceCache.java:11)
        at com.bumptech.glide.load.engine.Engine.onResourceReleased(Engine.java:334)
        at com.bumptech.glide.load.engine.EngineResource.release(EngineResource.java:101)
        at com.bumptech.glide.load.engine.Engine.release(Engine.java:292)
        at com.bumptech.glide.request.SingleRequest.releaseResource(SingleRequest.java:337)
        at com.bumptech.glide.request.SingleRequest.clear(SingleRequest.java:316)
        at com.bumptech.glide.manager.RequestTracker.clearRemoveAndRecycle(RequestTracker.java:62)
        at com.bumptech.glide.RequestManager.untrack(RequestManager.java:462)
        at com.bumptech.glide.RequestManager.untrackOrDelegate(RequestManager.java:449)
        at com.bumptech.glide.RequestManager.clear(RequestManager.java:437)
        at com.bumptech.glide.RequestManager.onDestroy(RequestManager.java:290)
        at com.bumptech.glide.manager.ActivityFragmentLifecycle.onDestroy(ActivityFragmentLifecycle.java:64)
        at com.bumptech.glide.manager.SupportRequestManagerFragment.onDestroy(SupportRequestManagerFragment.java:187)
        at android.support.v4.app.Fragment.performDestroy(Fragment.java:2516)
        at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1557)
        at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1750)
        at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1819)
        at android.support.v4.app.FragmentManagerImpl.dispatchStateChange(FragmentManager.java:3227)
        at android.support.v4.app.FragmentManagerImpl.dispatchDestroy(FragmentManager.java:3218)
        at android.support.v4.app.FragmentController.dispatchDestroy(FragmentController.java:262)
    04-23 13:19:34.391 4758-4758/xx.xxx.xxxE/AndroidRuntime:     at android.support.v4.app.FragmentActivity.onDestroy(FragmentActivity.java:362)
            at android.support.v7.app.AppCompatActivity.onDestroy(AppCompatActivity.java:209)
            at android.app.Activity.performDestroy(Activity.java:7462)
            at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1255)
            at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4590)
                ... 9 more

*used "xxx" for package name ignore it.

Eclipse keep closing suddenly

$
0
0

Recently I have lots of problems with eclipse, it keeps on crashing, closing abruptly, don't work well at all.

It happens too much, like in every 10 -15 minutes.

The CPU and RAM are 50% free when this happens.

This is the eclipse.ini file:

    -startup
    plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
    --launcher.library
    plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize

    --launcher.defaultAction
    openFile
    -vmargs
    -Xms40m
    -Xmx512m

What is the problem ? It's really bothering!

Viewing all 7195 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>