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

iOS app crash with UICheckBox, drawLayer:inContext

$
0
0

I recently published an iOS app, the app has around 1000 downloads now and I just had my first crash (I use Firebase Crashlytics).

I'm not sure I understand correctly this crash report, here is a screenshot : (iPhone Xr iOS 13.1.3, the (Manquant) in the screenshot means (Missing)) enter image description here

Here is my code in UICheckBox.swift line 16 : (I use UICheckBox_swift library)

enter image description here

Any idea how I can protect my app from this crash event ? Is this a system bug that I can't do anything about ?

Thanks


PSQL just closes after asking for my account password

$
0
0

During the PSQL.exe launch I am asked for my account password. After providing the password the tool just closes with no error message or indication of what went wrong. My account has full admin privileges and regardless of if I run the tool with Admin Privileges or normally the result is always the same. I am using PostgreSQL 11.5 and PSQLODBC 12.0.

Exception - Could not find icon drawable from resource

$
0
0

BACKGROUND

Hello all. I am making an app which has a main activity with a list of custom objects. Each item shows a picture, a title and a subtitle, all taken from the item's object attributes.

On the first version of the app, when an item was clicked, the object was sent as Parcelable with an Intent to another activity, which showed all the attributes the object has, including the image. At that time, the attribute of the image was only the Resources ID of the image, so I only had to load the image with that ID.

On my current version, I added a new activity which allows the user to set the object information in order to add the new object to the main activity list. However, the user selects the image from the gallery. In order to face that, I changed the initial ID attribute to Drawable, so I could assign directly both the Resources pictures and the Gallery picked ones.
That gave me a FAILED BINDER TRANSACTION error, so I decided to save the images as byte[] in order to avoid that.

CURRENT SITUATION AND PROBLEM

My custom object constructor gets the Drawable and uses the following method to convert it to byte[]:

private byte[] drawableToBytes(Drawable img)
{
    ByteArrayOutputStream stream = new ByteArrayOutputStream();

    ((BitmapDrawable)img).getBitmap().compress(Bitmap.CompressFormat.PNG, 50, stream);

    return stream.toByteArray();
}

In order to get the object from Parcelable, I use the following method:

public CentroMando(Parcel in)
{
    String[] datos = new String[11];

    in.readStringArray(datos);

    this.setAbreviatura(datos[0]);
    this.setNombre(datos[1]);
    this.setImagenBytes(Base64.decode(datos[2], Base64.DEFAULT));   // <----- Image
    this.setLugar(new Lugar(datos[3],
                            Double.parseDouble(datos[4]),
                            Double.parseDouble(datos[5]),
                            Double.parseDouble(datos[6])));
    this.setComandante(datos[7]);
    this.setEnlaceCentroMando(datos[8]);
    this.setEnlaceLocalizacion(datos[9]);
    this.setEnlaceComandante(datos[10]);
}

To convert the object to Parcelable:

public void writeToParcel(Parcel dest, int flags)
{
    dest.writeStringArray(new String[]
    {
        this.getAbreviatura(),
        this.getNombre(),
        Base64.encodeToString(this.getImagenBytes(), Base64.DEFAULT),   // <----- Image
        this.getLugar().getNombre(),
        String.valueOf(this.getLugar().getLatitud()),
        String.valueOf(this.getLugar().getLongitud()),
        String.valueOf(this.getLugar().getDireccion()),
        this.getComandante(),
        this.getEnlaceCentroMando(),
        this.getEnlaceLocalizacion(),
        this.getEnlaceComandante()
    });
}

To get the Drawable from the byte[], I use the following:

public Drawable getImagenBytesDrawable()
{
    byte[] datosBitmap = this.getImagenBytes();

    Bitmap imagenBitmap = BitmapFactory.decodeByteArray(datosBitmap, 0, datosBitmap.length);

    return new BitmapDrawable(imagenBitmap);
}

Now, when I click on the items in the ListView, some load without any problems and showing the image and properties fine, but the rest of them close the app without any error on Logcat. I had to remove filters in Logcat to actually find the problem:

2019-11-14 01:33:18.287 2110-14522/? E/ActivityManager: Transaction too large, intent: Intent { cmp=com.example.ud4_propuesto_1/.DatosCentroMandoActivity (has extras) }, extras size: 594808, icicle size: 0
2019-11-14 01:33:18.287 2110-14522/? D/GamePkgDataHelper: notifyAppCreate(), pkgName: com.example.ud4_propuesto_1, sendRet: true
2019-11-14 01:33:18.287 2110-12153/? D/GamePkgDataHelper: getGamePkgData(). com.example.ud4_propuesto_1
2019-11-14 01:33:18.287 2110-12153/? D/GameManagerService: handleMessage(), MSG_APP_CREATE. ignore. pkgName: com.example.ud4_propuesto_1
2019-11-14 01:33:18.289 2110-14522/? E/JavaBinder: !!! FAILED BINDER TRANSACTION !!!  (parcel size = 598680)
2019-11-14 01:33:18.289 2110-14522/? E/ActivityManager: Second failure launching com.example.ud4_propuesto_1/.DatosCentroMandoActivity, giving up
    android.os.TransactionTooLargeException: data parcel size 598680 bytes
        at android.os.BinderProxy.transactNative(Native Method)
        at android.os.BinderProxy.transact(Binder.java:1145)
        at android.app.IApplicationThread$Stub$Proxy.scheduleTransaction(IApplicationThread.java:1897)
        at android.app.servertransaction.ClientTransaction.schedule(ClientTransaction.java:129)
        at com.android.server.am.ClientLifecycleManager.scheduleTransaction(ClientLifecycleManager.java:47)
        at com.android.server.am.ActivityStackSupervisor.realStartActivityLocked(ActivityStackSupervisor.java:1862)
        at com.android.server.am.ActivityStackSupervisor.attachApplicationLocked(ActivityStackSupervisor.java:1199)
        at com.android.server.am.ActivityManagerService.attachApplicationLocked(ActivityManagerService.java:10029)
        at com.android.server.am.ActivityManagerService.attachApplication(ActivityManagerService.java:10097)
        at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:170)
        at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:4162)
        at android.os.Binder.execTransact(Binder.java:739)
2019-11-14 01:33:18.290 2110-14522/? I/ActivityManager: Process com.example.ud4_propuesto_1 (pid 25813) has died: fore TOP (214,2655)

ADITIONAL INFORMATION

I save the Drawable images as xxxhdpi.
The items' images that make the app crash weight 410 KB, 393 KB and 393 KB. The rest of the images weight less than 345 KB.
I tested that only the items with those heavier images are the ones that make the app crash.

QUESTION

Is there any way to solve this?

Xcode 11 constantly crashing after installing development provisioning profile

$
0
0

I am trying to install provisioning profile but after adding my app is getting crash constantly. please help thank you

Xcode 10 and Xcode 11 continuously crashing when trying open existing application

$
0
0

Currently I'm using Xcode 10, Last week I have updated my mac. Trying to open existing applications but getting crash.

Strange crash when asking for location permission in iOS 13

$
0
0

Device:

iPhone 8, iOS 13.1.3

Crash log from crashlytics:

#0. Crashed: com.apple.main-thread
0  XXXXXXXXXX                     0x104d1a63c _hidden#14520_ + 71 (__hidden#14570_:71)
1  XXXXXXXXXX                     0x104d195a4 _hidden#14511_ (__hidden#14570_)
2  XXXXXXXXXX                     0x104d19b80 _hidden#14512_ (__hidden#1229_)
3  XXXXXXXXXX                     0x104de4594 _hidden#21237_ + 70 (__hidden#27902_:70)
4  XXXXXXXXXX                     0x104de3e54 _hidden#27841_ + 4345593428
5  XXXXXXXXXX                     0x104d7ae20 _hidden#21212_ (__hidden#1229_)
6  XXXXXXXXXX                     0x104ca897c _hidden#5864_ + 122 (__hidden#5883_:122)
7  XXXXXXXXXX                     0x104ca8608 _hidden#5854_ (__hidden#1229_)
8  CoreLocation                   0x1a6066f1c CLClientStopVehicleHeadingUpdates + 72644
9  CoreLocation                   0x1a6066d20 CLClientStopVehicleHeadingUpdates + 72136
10 CoreLocation                   0x1a60503b8 CLClientInvalidate + 1400
11 CoreFoundation                 0x1a2eba614 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 20
12 CoreFoundation                 0x1a2eb9db4 __CFRunLoopDoBlocks + 264
13 CoreFoundation                 0x1a2eb54ec __CFRunLoopRun + 2312
14 CoreFoundation                 0x1a2eb48bc CFRunLoopRunSpecific + 464
15 GraphicsServices               0x1acd20328 GSEventRunModal + 104
16 UIKitCore                      0x1a6f4a6d4 UIApplicationMain + 1936
17 XXXXXXXXXX                     0x104c70a38 main + 20 (__hidden#1227_:20)
18 libdyld.dylib                  0x1a2d3f460 start + 4

When I ask for location permission with

locationManager.requestWhenInUseAuthorization()

my app crashes. System dialog for asking location permissions is not shown, only screen is faded and after 3 second app crashes. On 99% devices it is working without problems only on one device it is crashing.

Thanks for any help.

How to fix a iOS crash " Crashed: WebThread EXC_BREAKPOINT"

$
0
0

Recently, I get many crash report in Fabric. But I never reproduce it when debug on Xcode. I have a webview, and it doesn't dealloc because another viewcontroller retain it and automatic reload with NSTimer. I also use runtime method to fire nstimer.


0   WebCore bmalloc::IsoAllocator<bmalloc::IsoConfig<72u> >::allocateSlow(bool) + 252
1   WebCore 
bmalloc::IsoAllocator<bmalloc::IsoConfig<72u> >::allocateSlow(bool) + 72
2   WebCore WebCore::Text::create(WebCore::Document&, WTF::String const&) + 152
3   WebCore WebCore::HTMLConstructionSite::insertTextNode(WTF::String const&, WebCore::WhitespaceMode) + 912
4   WebCore WebCore::HTMLTreeBuilder::processCharacterBufferForInBody(WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer&) + 404
5   WebCore 
WebCore::HTMLTreeBuilder::processCharacterBuffer(WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer&) + 2020
6   WebCore WebCore::HTMLTreeBuilder::processToken(WebCore::AtomicHTMLToken&&) + 204
7   WebCore WebCore::HTMLTreeBuilder::constructTree(WebCore::AtomicHTMLToken&&) + 92
8   WebCore WebCore::HTMLDocumentParser::constructTreeFromHTMLToken(WebCore::HTMLTokenizer::TokenPtr&) + 156
9   WebCore WebCore::HTMLDocumentParser::pumpTokenizerLoop(WebCore::HTMLDocumentParser::SynchronousMode, bool, WebCore::PumpSession&) + 380
10  WebCore WebCore::HTMLDocumentParser::pumpTokenizer(WebCore::HTMLDocumentParser::SynchronousMode) + 116
11  WebCore WebCore::HTMLDocumentParser::append(WTF::RefPtr<WTF::StringImpl, WTF::DumbPtrTraits<WTF::StringImpl> >&&) + 920
12  WebCore WebCore::DecodedDataDocumentParser::appendBytes(WebCore::DocumentWriter&, char const*, unsigned long) + 116
13  WebCore WebCore::DocumentLoader::commitData(char const*, unsigned long) + 2660
14  WebKitLegacy    -[WebHTMLRepresentation receivedData:withDataSource:] + 112
15  WebKitLegacy    -[WebDataSource(WebInternal) _receivedData:] + 68
16  WebKitLegacy    WebFrameLoaderClient::committedLoad(WebCore::DocumentLoader*, char const*, int) + 112
17  WebCore WebCore::DocumentLoader::commitLoad(char const*, int) + 172
18  WebCore WebCore::CachedRawResource::notifyClientsDataWasReceived(char const*, unsigned int) + 344
19  WebCore WebCore::CachedRawResource::updateBuffer(WebCore::SharedBuffer&) + 212
20  WebCore WebCore::SubresourceLoader::didReceiveDataOrBuffer(char const*, int, WTF::RefPtr<WebCore::SharedBuffer, WTF::DumbPtrTraits<WebCore::SharedBuffer> >&&, long long, WebCore::DataPayloadType) + 396
21  WebCore WebCore::SubresourceLoader::didReceiveBuffer(WTF::Ref<WebCore::SharedBuffer, WTF::DumbPtrTraits<WebCore::SharedBuffer> >&&, long long, WebCore::DataPayloadType) + 100
22  WebCore WTF::Function<void ()>::CallableWrapper<-[WebCoreResourceHandleAsOperationQueueDelegate connection:didReceiveData:lengthReceived:]::$_6>::call() + 124
23  JavaScriptCore  WTF::dispatchFunctionsFromMainThread() + 288
24  Foundation  __NSThreadPerformPerform + 336
25  CoreFoundation  __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
26  CoreFoundation  __CFRunLoopDoSource0 + 88
27  CoreFoundation  __CFRunLoopDoSources0 + 176
28  CoreFoundation  __CFRunLoopRun + 1004
29  CoreFoundation  CFRunLoopRunSpecific + 436
30  WebCore RunWebThread(void*) + 600
31  libsystem_pthread.dylib _pthread_body + 128
32  libsystem_pthread.dylib _pthread_start + 44
33  libsystem_pthread.dylib thread_start + 4

Does anyone have the same problem?

Simultaneous accesses to 0x1c0a7f0f8, but modification requires exclusive access error on Xcode 9 beta 4

$
0
0

my project uses both Objective-C and Swift code. When a user logs in, it calls a set of apis for user preference, I have a DataCoordinator.swift class which schedules the API operation and I make this calls from UserDetailViewController.m class to load user preferences. This use to work fine before I migrated my code to Swift 4 using Xcode 9 beta 4. Now when I login it crashes by giving me this error in my DataCoordinator class. Below is a sample of my DataCoordinator and Viewcontroller class.

DataCoordinator.swift

import UIKit

@objcMembers

class DataCoordinator: NSObject {

    //MARK:- Private
    fileprivate var user = myDataStore.sharedInstance().user
    fileprivate var preferenceFetchOperations = [FetchOperation]()

    fileprivate func scheduleFetchOperation(_ operation:FetchOperation, inFetchOperations operations:inout [FetchOperation]) {
        guard  operations.index(of: operation) == nil else { return }
        operations.append(operation)
    }

    fileprivate func completeFetchOperation(_ fetchOperation:FetchOperation, withError error:Error?, andCompletionHandler handler:@escaping FetchCompletionHandler) {

        func removeOperation(_ operation:FetchOperation, fromOperations operations:inout [FetchOperation]) {
            if operations.count > 0 {
                operations.remove(at: operations.index(of: fetchOperation)!)                 
              handler(error)
            }
        }

        if preferenceFetchOperations.contains(fetchOperation) {
            removeOperation(fetchOperation, fromOperations: &preferenceFetchOperations)
        }

    }

    fileprivate func schedulePreferencesFetchOperation(_ serviceName:String, fetch:@escaping FetchOperationBlock){
        let operation = FetchOperation(name: serviceName, fetch: fetch);
        scheduleFetchOperation(operation, inFetchOperations: &preferenceFetchOperations)
    }


    fileprivate func runOperationsIn(_ fetchOperations:inout [FetchOperation]) {
        for  var operation in fetchOperations {
            guard operation.isActivated == false else { continue }
            operation.isActivated = true
            operation.execute()
        }
    }


    //MARK:- Non-Private
    typealias FetchCompletionHandler = (_ error:Error?)->Void

    var numberOfPreferencesFetchCalls:Int {
        get { return preferenceFetchOperations.count }
    }


    // MARK: -
    func fetchPreferences(_ completionHandler:@escaping FetchCompletionHandler) -> Void {
        defer {
            runOperationsIn(&preferenceFetchOperations)
        }

        schedulePreferencesFetchOperation("com.fetchPreferences.type1") {[unowned self] (operation:FetchOperation) in
            WebServiceManager.getType1Detail(for: user) {[unowned self] (error) in
                self.completeFetchOperation(operation,  withError: error, andCompletionHandler: completionHandler)
            }

        }

        schedulePreferencesFetchOperation("com.fetchPreferences.type2") {[unowned self] (operation:FetchOperation) in
            WebServiceManager.getType2Detail(for: user) {[unowned self] (error) in
                self.completeFetchOperation(operation,  withError: error, andCompletionHandler: completionHandler)
            }

        }

        schedulePreferencesFetchOperation("com.fetchPreferences.type3") {[unowned self] (operation:FetchOperation) in
            WebServiceManager.getType3Detail(for: user) {[unowned self] (error) in
                self.completeFetchOperation(operation,  withError: error, andCompletionHandler: completionHandler)
            }

        }

        schedulePreferencesFetchOperation("com.fetchPreferences.type4") {[unowned self] (operation:FetchOperation) in
            WebServiceManager.getType4Detail(for: user) {[unowned self] (error) in
                self.completeFetchOperation(operation,  withError: error, andCompletionHandler: completionHandler)
            }

        }
    }

}


// MARK:- Fetch Operation Struct
private typealias FetchOperationBlock = (_ operation:FetchOperation)->Void

private struct FetchOperation:Hashable {
    fileprivate var runToken = 0
    fileprivate let fetchBlock:FetchOperationBlock

    let name:String!
    var isActivated:Bool {
        get {
            return runToken == 0 ? false : true
        }

        mutating set {
            if runToken == 0 && newValue == true {
                runToken = 1
            }
        }
    }

    fileprivate var hashValue: Int {
        get {
            return name.hashValue
        }
    }

    func execute() -> Void {
        fetchBlock(self)
    }

    init (name:String, fetch:@escaping FetchOperationBlock) {
        self.name = name
        self.fetchBlock = fetch
    }
}
private func ==(lhs: FetchOperation, rhs: FetchOperation) -> Bool {
    return lhs.hashValue == rhs.hashValue
}

//This is how I call it in my viewcontrollers viewDidLoad method

__weak UserDetailViewController *weakSelf = self;
[self.dataCoordinator fetchPreferences:^(NSError * _Nullable error) {
                if (error == nil) {
                    [weakSelf didFetchPrefrences];
                }
                else {
                    // handle error
                }
            }];

//completion response
- (void)didFetchPrefrences {

    //when api calls complete load data
    if (self.dataCoordinator.numberOfPreferencesFetchCalls == 0) {

        //Load details

     }

}

I'm not sure how to proceed on this, I saw a bug report at https://bugs.swift.org/browse/SR-5119 but it seems to be fixed in Xcode 9 beta 3. Any help is appreciated


Is it possible to get error message in bash while debugging in Xcode?

$
0
0

How can I get the error message in external bash script, when device is connected and app is running from Xcode debug mode and a crash happens? For example, while running, the app gets crashed and xcode showing below logs,

Now I want to get or extract the string from the xcode log at the time the crash happened. i.e. below message,

'NSInvalidArgumentException', reason: ...

And then I want to run an script on that error code/message. Is there any way around?

My intention (off-topic),

My intention is to get results from web crawler regarding the crash and to show up to the developers as hint in a dialog.

Photo reference: codewithchris

Resources$NotFoundException when trying to play a video on Android?

$
0
0

E/AndroidRuntime( 5751): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.Android/com.example.Android.OpenByApiActivity}: android.content.res.Resources$NotFoundException: Resource ID #0x7f030001

E/AndroidRuntime( 5751): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)

E/AndroidRuntime( 5751): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)

E/AndroidRuntime( 5751): at android.app.ActivityThread.access$1500(ActivityThread.java:117)

E/AndroidRuntime( 5751): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)

E/AndroidRuntime( 5751): Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f030001

Does anybody know why this is being thrown? This is my code for the video and xml

public class OpenByApiActivity extends Activity implements Callback {


MediaPlayer mp = new MediaPlayer();
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.video);
StringBuilder log = new StringBuilder();
    String[] clearLogcat = new String[] { "logcat", "-c",};
    try {
        Runtime.getRuntime().exec(clearLogcat);
    } 
    catch (IOException e) { 
        e.printStackTrace();
    }
              File location = new File("/sdcard/MediaTestFiles/sample.mp4");
    Uri path = Uri.fromFile(location);      
    SurfaceView surfaceView;
    SurfaceHolder surfaceHolder;
    getWindow().setFormat(PixelFormat.UNKNOWN);
    surfaceView = (SurfaceView)findViewById(R.id.surfaceview);
    surfaceHolder = surfaceView.getHolder();
    surfaceHolder.addCallback(this);
    surfaceHolder.setFixedSize(176, 144);
    surfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
    mp.setAudioStreamType(AudioManager.STREAM_MUSIC);
    mp.setDisplay(surfaceHolder);
    mp= MediaPlayer.create(this, path);         
    if(mp!=null){
    mp.start();
                   }}}
                @Override
public void surfaceChanged(SurfaceHolder arg0, int arg1, int arg2, int arg3) {
    // TODO Auto-generated method stub

}

@Override
public void surfaceCreated(SurfaceHolder arg0) {
    // TODO Auto-generated method stub

}

@Override
public void surfaceDestroyed(SurfaceHolder arg0) {
    // TODO Auto-generated method stub

}}
         <?xml version="1.0" encoding="utf-8"?>
     <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
    <TextView  
android:layout_width="fill_parent" 
android:layout_height="wrap_content" 
android:text="@string/hello"
/>

   <SurfaceView
  android:id="@+id/surfaceview"
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
    />  
    </LinearLayout>

iOS 13 app crash on start on start - Crash Log

$
0
0

One user of my app send me the crash log file, because the app crashes on start. I couldn't figure out what the cause of this bug is, if it depends on the code or on iOS.

In the crash log I cannot understand to which part of the code the error of the start refers. This problem does not occur to all users, this file refers to an iPhone 11 with iOS 13.2.2

Here is the file sent by the user:

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

Last Exception Backtrace:
0   CoreFoundation                  0x1a0b1bab0 __exceptionPreprocess + 224
1   libobjc.A.dylib                 0x1a0835028 objc_exception_throw + 59
2   CoreFoundation                  0x1a0b74550 _CFThrowFormattedException + 115
3   CoreFoundation                  0x1a0b7e370 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:].cold.4 + 51
4   CoreFoundation                  0x1a0a02540 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 259
5   CoreFoundation                  0x1a09f3dec +[NSDictionary dictionaryWithObjects:forKeys:count:] + 67
6   Reflex                          0x105042970 0x104f54000 + 977264
7   UIKitCore                       0x1a4bf7be8 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 343
8   UIKitCore                       0x1a4bf9a54 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 5111
9   UIKitCore                       0x1a4bff42c -[UIApplication _runWithMainScene:transitionContext:completion:] + 1311
10  UIKitCore                       0x1a439955c -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 151
11  UIKitCore                       0x1a4849db0 _UIScenePerformActionsWithLifecycleActionMask + 111
12  UIKitCore                       0x1a439a094 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 211
13  UIKitCore                       0x1a4399ac4 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 303
14  UIKitCore                       0x1a4399eb0 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 751
15  UIKitCore                       0x1a4399734 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 339
16  UIKitCore                       0x1a439dee4 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke_2 + 195
17  UIKitCore                       0x1a4863c34 ___UISceneSettingsDiffActionPerformChangesWithTransitionContext_block_invoke + 27
18  UIKitCore                       0x1a4776eec +[BSAnimationSettings+ 5996268 (UIKit) tryAnimatingWithSettings:actions:completion:] + 867
19  UIKitCore                       0x1a4863bec _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 259
20  UIKitCore                       0x1a439dbfc __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 151
21  UIKitCore                       0x1a4863ad4 _UISceneSettingsDiffActionPerformActionsWithDelayForTransitionContext + 107
22  UIKitCore                       0x1a439da58 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 391
23  UIKitCore                       0x1a4205b7c __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 639
24  UIKitCore                       0x1a4204640 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 255
25  UIKitCore                       0x1a42058ac -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 235
26  UIKitCore                       0x1a4bfd7e0 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 563
27  UIKitCore                       0x1a4798dec -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 375
28  FrontBoardServices              0x1a5ce5ec0 -[FBSSceneImpl _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 451
29  FrontBoardServices              0x1a5d0cb50 __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke.168 + 115
30  FrontBoardServices              0x1a5cf0fa4 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 239
31  FrontBoardServices              0x1a5d0c7e4 __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke + 343
32  libdispatch.dylib               0x1a07c1fd8 _dispatch_client_callout + 19
33  libdispatch.dylib               0x1a07c4d1c _dispatch_block_invoke_direct + 263
34  FrontBoardServices              0x1a5d33304 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 47
35  FrontBoardServices              0x1a5d32fb0 -[FBSSerialQueue _queue_performNextIfPossible] + 431
36  FrontBoardServices              0x1a5d3351c -[FBSSerialQueue _performNextFromRunLoopSource] + 31
37  CoreFoundation                  0x1a0a9724c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 27
38  CoreFoundation                  0x1a0a971a0 __CFRunLoopDoSource0 + 83
39  CoreFoundation                  0x1a0a9695c __CFRunLoopDoSources0 + 263
40  CoreFoundation                  0x1a0a917d8 __CFRunLoopRun + 1067
41  CoreFoundation                  0x1a0a91084 CFRunLoopRunSpecific + 479
42  GraphicsServices                0x1aacdf534 GSEventRunModal + 107
43  UIKitCore                       0x1a4c01670 UIApplicationMain + 1939
44  Reflex                          0x105088e6c 0x104f54000 + 1265260
45  libdyld.dylib                   0x1a0910e18 start + 3


Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libsystem_kernel.dylib          0x00000001a0906efc __pthread_kill + 8
1   libsystem_pthread.dylib         0x00000001a0826d10 pthread_kill + 196
2   libsystem_c.dylib               0x00000001a07b6a74 abort + 104
3   libc++abi.dylib                 0x00000001a08ce3c8 __cxa_bad_cast + 0
4   libc++abi.dylib                 0x00000001a08ce5c0 demangling_unexpected_handler+ 5568 () + 0
5   libobjc.A.dylib                 0x00000001a0835308 _objc_terminate+ 25352 () + 124
6   libc++abi.dylib                 0x00000001a08db634 std::__terminate(void (*)+ 58932 ()) + 20
7   libc++abi.dylib                 0x00000001a08db5c0 std::terminate+ 58816 () + 44
8   libdispatch.dylib               0x00000001a07c1fec _dispatch_client_callout + 40
9   libdispatch.dylib               0x00000001a07c4d1c _dispatch_block_invoke_direct + 264
10  FrontBoardServices              0x00000001a5d33304 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 48
11  FrontBoardServices              0x00000001a5d32fb0 -[FBSSerialQueue _queue_performNextIfPossible] + 432
12  FrontBoardServices              0x00000001a5d3351c -[FBSSerialQueue _performNextFromRunLoopSource] + 32
13  CoreFoundation                  0x00000001a0a9724c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
14  CoreFoundation                  0x00000001a0a971a0 __CFRunLoopDoSource0 + 84
15  CoreFoundation                  0x00000001a0a9695c __CFRunLoopDoSources0 + 264
16  CoreFoundation                  0x00000001a0a917d8 __CFRunLoopRun + 1068
17  CoreFoundation                  0x00000001a0a91084 CFRunLoopRunSpecific + 480
18  GraphicsServices                0x00000001aacdf534 GSEventRunModal + 108
19  UIKitCore                       0x00000001a4c01670 UIApplicationMain + 1940
20  Reflex                          0x0000000105088e6c 0x104f54000 + 1265260
21  libdyld.dylib                   0x00000001a0910e18 start + 4

Fatal Exception: DeviceNotSupportedException Device Not Supported

$
0
0

I keep getting crashes on Fabric for my iOS App.

Fatal Exception: DeviceNotSupportedException: Device Not Supported

At the signature of the function,

+(NSString*) IPHONE_OS_VERSION // Fabric pointed lines
{
    // code
}

What does this issue mean? how to fix it?

Navigation bar Hidden Crash on iOS 13.2.2

$
0
0

I am facing the crash issue only on iPhone devices, simulator as well as the real device only in iOS 13.2.2 latest release. The code works fine on iPad devices having the same iOS OS version.

override func viewWillAppear(_ animated: Bool) {
    super.viewWillAppear(true)
    self.navigationController?.setNavigationBarHidden(false, animated: false)
    self.navigationItem.setHidesBackButton(true, animated: false)
}

Anyone can help ?

PC crashses when I enable VT-X (Virtualization technology) intel i5-3450

$
0
0

When I boot up and go to BIOS and enable Virtulization Technology and save settings, as soon as I save & exit my PC turns of and turns on, then turns off again and then turns on and boots windows and VT-X is disabled.

So it seems as if when I turn it on it crashes and then it tries another time with VT-X enabled but crashes again and then disables it and turns on like it normally would, but that means I can't use VT-X and I would really like to because VirtualBox requires it on some Operating systems.

I hope someone has a solution or some guidelines!

System Info: HP Pavilion Desktop PC Windows 10 Home Intel i5-3450 Radeon RX550

Thanks in advance!

I removed language pack .Now windows doesnt boot

$
0
0

I removed single language pack from my win10 and i restarded my pc after that it gives crashes and wont start


Android 7 Native Crash: libc.so tgkill

$
0
0

I'm seeing this native crash with the following stack trace.

This happens in Android 7.0 & 7.1 only. Nothing new has been added to the app, which has been in production for a few years, but with more devices being updated to Nougat this crash happens frequently now and is becoming a nuisance.

Any advice would be appreciated.

native: pc 000000000007a6c4  /system/lib64/libc.so (tgkill+8)
  native: pc 0000000000077920  /system/lib64/libc.so (pthread_kill+64)
  native: pc 000000000002538c  /system/lib64/libc.so (raise+24)
  native: pc 000000000001d24c  /system/lib64/libc.so (abort+52)
  native: pc 000000000001225c  /system/lib64/libcutils.so (__android_log_assert+224)
  native: pc 00000000000610e0  /system/lib64/libhwui.so
  native: pc 000000000003908c  /system/lib64/libhwui.so
  native: pc 000000000003609c  /system/lib64/libhwui.so
  native: pc 000000000003b4fc  /system/lib64/libhwui.so
  native: pc 000000000003c520  /system/lib64/libhwui.so
  native: pc 000000000003e694  /system/lib64/libhwui.so (_ZN7android10uirenderer12renderthread12RenderThread10threadLoopEv+152)
  native: pc 00000000000127f0  /system/lib64/libutils.so (_ZN7android6Thread11_threadLoopEPv+336)
  native: pc 00000000000a50b0  /system/lib64/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv+116)
  native: pc 00000000000770f4  /system/lib64/libc.so (_ZL15__pthread_startPv+204)
  native: pc 000000000001e7d0  /system/lib64/libc.so (__start_thread+16)

Here's a list of devices that are affected: enter image description here

UPDATE 7/18:

Still unable to get to the root of this, so I decided to purchase a device which had most occurrences and was reasonably priced, which turned out to be Samsung Galaxy J3 2017 version with Android 7.0. Unfortunately I am still unable to reproduce the crash.

I've also made some memory usage improvements to the app in production, but the crash is still happening.

From all the comments and my own research it seems to be related to dynamically linked NDKs, but I'm not using any and its hard to find out if any of the dependencies do.

I would like to share my dependencies, it would be great if other folks facing the same issue could call out if they are using one of the same dependencies - perhaps we can spot the culprit this way.

// App Compat
    compile 'com.android.support:support-v4:23.0.1'
    compile 'com.android.support:appcompat-v7:23.0.1'
    compile 'com.android.support:cardview-v7:23.0.1'
    compile 'com.android.support:recyclerview-v7:23.0.1'

    // Play Services
    compile 'com.google.android.gms:play-services-location:8.3.0'
    compile 'com.google.android.gms:play-services-maps:8.3.0'
    compile 'com.google.android.gms:play-services-analytics:8.3.0'
    compile 'com.google.android.gms:play-services-appindexing:8.3.0'
    compile 'com.google.android.gms:play-services-ads:8.3.0'

    // Misc Libraries
    compile 'fr.avianey.com.viewpagerindicator:library:2.4.1@aar'
    compile files('app/libs/htmlcleaner-2.7.jar')
    compile files('app/libs/protobuf-java-2.6.0.jar')
    compile files('app/libs/nineoldandroids-2.4.0.jar')

    // Fabric
    compile('com.twitter.sdk.android:twitter:1.13.0@aar') { transitive = true; }
    compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') { transitive = true; }

For folks facing the same crash, please respond in comments if you are using any of these dependencies / versions. Maybe we can single out the problem dependency.

swift_initClassMetadataImpl EXC_BAD_ACCESS with Xcode 11.2.1

$
0
0

I recently updated to the Xcode 11 beta, and my code seems to crash at a Swift runtime function swift_initClassMetadataImpl with an EXC_BAD_ACCESS error.

Is there a temporary workaround for this?

Edit: This issue is still present on Xcode 11.2.1 GM.

How to use crashpad to detect app termination?

$
0
0

I found in crashpad there are

InstallTerminateHandlers HandleTerminateSignal

but I did not find a way how to use them. My program is that I use crashpad to send minidumps when a crash occurs but I have a suspicion that a minidump which is corrupted is also sent in a case when my app is terminated and I would like to filter them to know that this is not a bug in my app.

Mac Os 10.13 logs me out randomly | Help reading logs

$
0
0

Apparently out of the blue, I have started to experience random crashes on my Mac Pro 4.1, flashed to 5.1. It's running High Sierra 10.13.6 (17G9016), with 48Gb of Ram and two cards (one GT120 and a flashed MacVidCard Titan X Pascal). It is a soft crash in the sense that it just logs me out of my session and then I need to log in again, so it doesn't completely reboot.

However it's very annoying since I can't finish any task properly and need to reopen all the files I might be working with, which generally deal with heavy graphics (CAD applications or video editing).

I am not fluent in reading crash logs, so any help reading this one is much appreciated. Here's the last crash log:

Process:               WindowServer [144]
Path:                  /System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/Resources/WindowServer
Identifier:            WindowServer
Version:               600.00 (312.103.11)
Code Type:             X86-64 (Native)
Parent Process:        launchd [1]
Responsible:           WindowServer [144]
User ID:               88

Date/Time:             2019-11-17 18:15:12.313 +0000
OS Version:            Mac OS X 10.13.6 (17G9016)
Report Version:        12
Anonymous UUID:        B4B1B7C1-08E2-6A09-6684-E949A6C2D95F


Time Awake Since Boot: 230 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000016
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Segmentation fault: 11
Termination Reason:    Namespace SIGNAL, Code 0xb
Terminating Process:   exc handler [0]

VM Regions Near 0x16:
--> 
    __TEXT                 0000000108ebe000-0000000108ebf000 [    4K] r-x/rwx SM=COW   [/System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/Resources/WindowServer]

Application Specific Information:
StartTime:2019-11-17 18:11:36
GPU:NV
MetalDevice for accelerator(0x4507): 0x7fb86ae03ef8 (MTLDevice: 0x7fb86c004800)
MetalDevice for accelerator(0x4e07): 0x7fb86d00d858 (MTLDevice: 0x7fb86c004800)
IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/IOU0@3/IOPP/PXS1@0/NVDA,Display-B@1/NVDA
IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/IOU1@7/IOPP/PXS2@0/NVDA,Display-A@0/NVDATesla

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libGPUSupport.dylib             0x00007fff6606b10c gpumRestoreTextureData + 60
1   libGFXShared.dylib              0x00007fff56f366d9 gfxUploadPluginTextureLevel + 111
2   GLEngine                        0x00007fff57bf55e7 gleSynchronizePluginTextureLevels + 279
3   GLEngine                        0x00007fff57bbfaaf gleBindFramebuffer + 321
4   GLEngine                        0x00007fff57b0855c glBindFramebuffer_Exec + 142
5   com.apple.SkyLight              0x00007fff6f32ec24 CaptureSurfaceGL::CreateAndAttachTextureToFBO() + 162
6   com.apple.SkyLight              0x00007fff6f32e3d8 CaptureSurfaceGL::PrepareForPopulation(CGRect, WSPixelFormat, float, bool, CGColorSpace*, CGXDisplayDevice*, unsigned int) + 74
7   com.apple.SkyLight              0x00007fff6f444601 WSCALayerBackingUpdateFlatteningIfNeeded + 1284
8   com.apple.SkyLight              0x00007fff6f3cd2b3 CGXNextSurface + 3246
9   com.apple.SkyLight              0x00007fff6f472211 generate_layers_for_window_surfaces(CGXRedrawState*, CGXWindow*, CGSOrderOp, unsigned int, int*, WSCompositeSourceLayer**, CGSRegionObject*) + 5581
10  com.apple.SkyLight              0x00007fff6f46cca6 generate_layers_for_window(CGXRedrawState*, CGXWindow*) + 3193
11  com.apple.SkyLight              0x00007fff6f46afc1 CGXUpdateDisplay + 13505
12  com.apple.SkyLight              0x00007fff6f467882 update_display_callback(void*, double) + 257
13  com.apple.SkyLight              0x00007fff6f4ae552 run_timer_pass + 495
14  com.apple.SkyLight              0x00007fff6f4dc1c9 CGXRunOneServicesPass + 247
15  com.apple.SkyLight              0x00007fff6f4dcd84 SLXServer + 832
16  WindowServer                    0x0000000108ebedde 0x108ebe000 + 3550
17  libdyld.dylib                   0x00007fff75559015 start + 1


Thread 1:
0   libsystem_kernel.dylib          0x00007fff756aa28a __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff75871009 _pthread_wqthread + 1035
2   libsystem_pthread.dylib         0x00007fff75870be9 start_wqthread + 13

Thread 2:
0   libsystem_kernel.dylib          0x00007fff756a020a mach_msg_trap + 10
1   libsystem_kernel.dylib          0x00007fff7569f724 mach_msg + 60
2   com.apple.CoreDisplay           0x00007fff4d4cb685 0x7fff4d41c000 + 718469
3   com.apple.CoreDisplay           0x00007fff4d4cb813 0x7fff4d41c000 + 718867
4   libsystem_pthread.dylib         0x00007fff75871661 _pthread_body + 340
5   libsystem_pthread.dylib         0x00007fff7587150d _pthread_start + 377
6   libsystem_pthread.dylib         0x00007fff75870bf9 thread_start + 13

Thread 3:: com.apple.coreanimation.render-server
0   libsystem_kernel.dylib          0x00007fff756a020a mach_msg_trap + 10
1   libsystem_kernel.dylib          0x00007fff7569f724 mach_msg + 60
2   com.apple.QuartzCore            0x00007fff5890ae62 CA::Render::Server::server_thread(void*) + 870
3   com.apple.QuartzCore            0x00007fff5890aae6 thread_fun + 25
4   libsystem_pthread.dylib         0x00007fff75871661 _pthread_body + 340
5   libsystem_pthread.dylib         0x00007fff7587150d _pthread_start + 377
6   libsystem_pthread.dylib         0x00007fff75870bf9 thread_start + 13

Thread 4:
0   libsystem_kernel.dylib          0x00007fff756aa28a __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff75871009 _pthread_wqthread + 1035
2   libsystem_pthread.dylib         0x00007fff75870be9 start_wqthread + 13

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x00007fb871800000  rbx: 0x00007fb86c0e8800  rcx: 0x0000000000000000  rdx: 0x0000000000000000
  rdi: 0x00007fb86f832a00  rsi: 0x00007fb86c0e8800  rbp: 0x00007ffee6d40380  rsp: 0x00007ffee6d40320
   r8: 0x0000000000000000   r9: 0x000000016f236ee7  r10: 0x0000000000000003  r11: 0x0000000000000206
  r12: 0x0000000000000000  r13: 0x0000000000000000  r14: 0x0000000000000000  r15: 0x00007fb86f832a00
  rip: 0x00007fff6606b10c  rfl: 0x0000000000010246  cr2: 0x0000000000000016

Logical CPU:     4
Error Code:      0x00000004
Trap Number:     14


Binary Images:
      […]

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 3
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 318
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=380.3M resident=0K(0%) swapped_out_or_unallocated=380.3M(100%)
Writable regions: Total=1.6G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.6G(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Activity Tracing                   256K        2 
CG backing stores                173.6M      139 
CG framebuffers                    1.0G        9 
CG framebuffers (reserved)        56.1M        9         reserved VM address space (unallocated)
CG image                           668K        9 
CoreAnimation                     64.1M       53 
CoreGraphics                         4K        2 
Dispatch continuations            32.0M        2 
Kernel Alloc Once                    8K        2 
MALLOC                           321.3M      146 
MALLOC guard page                   48K       13 
MALLOC_LARGE (reserved)            160K        2         reserved VM address space (unallocated)
OpenGL GLSL                        256K        4 
STACK GUARD                       56.0M        6 
Stack                             10.0M        6 
VM_ALLOCATE                       1352K       50 
__CGSERVER                           4K        2 
__DATA                            51.1M      249 
__FONT_DATA                          4K        2 
__GLSLBUILTINS                    2588K        2 
__LINKEDIT                       194.5M       10 
__SLSERVER                           4K        2 
__TEXT                           185.8M      250 
__UNICODE                          560K        2 
mapped file                       25.8M        3 
shared memory                      180K       15 
===========                     =======  ======= 
TOTAL                              2.1G      965 
TOTAL, minus reserved VM space     2.1G      965 

iOS 13 crash on launch

$
0
0

With iOS 13.0 update, app is crashing on launch. Users are reporting that app is crashing on fresh start.

I receive this from Crashlytics:

Just after, [AppDelegate application:didFinishLaunchingWithOptions:] is calling viewDidLoad: on a ViewController that it is used just very later on app flow, or maybe never.

What is very strange with it: - I can not reproduce, for every iPhone that I have under test, app is working just fine. It is not working for 10% of our users.

  1. Could Crashlytics be wrong? - and it is reporting wrong, because Crashlytics is not initialized yet

  2. The ViewController-s name where the error appears, it is "ViewController" - could this be a conflict? It seems that this one, it not initilized properly. Into the viewDidLoad: I have this:

    self.tabButtons = @[_btnOne, _btnSecond, _btnThird, _btnFourth]; - this line it is reported in Crashlytics with

    "Fatal Exception: NSInvalidArgumentException*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]"

  3. How could I reproduce?

Here is the code in AppDelegate.m:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
...............................
    [self showFirstScreen];
    self.window.rootViewController = nav;
    [self.window makeKeyAndVisible];
    return YES;
}


-(void) showFirstScreen {
    NSInteger companyAddedGet = [[NSUserDefaults standardUserDefaults] integerForKey:@"companyAdded"];
    (companyAddedGet == -1) ? [self showAddNewCompanyViewController] : [self login];
}

-(void) login {
    ([[NSUserDefaults standardUserDefaults] objectForKey:@"LOGIN_DETAIL"]!=nil) ? [self automaticLogin] : [self showLogin];
}

-(void) automaticLogin {
    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Launch Screen" bundle:nil];
    UIViewController *launchScreen = [storyboard instantiateViewControllerWithIdentifier:@"LaunchScreenVC"];
    nav = [[UINavigationController alloc] initWithRootViewController:launchScreen];
    nav.navigationBarHidden = YES;
    [FIRAnalytics logEventWithName:@"login_automat" parameters: nil];
    [self fetchCompanyData];
}

-(void) showLogin {
    viewController = [[loginViewController alloc] initWithNibName:@"loginViewController" bundle:nil];
    nav = [[UINavigationController alloc] initWithRootViewController:viewController];
    nav.navigationBarHidden = YES;
}

-(void) showAddNewCompanyViewController {
    .....
    AddNewCompanyVC *addNewVC = [[AddNewCompanyVC alloc] initWithNibName:@"AddNewCompanyVC" bundle:nil];
    [(AppObj).nav pushViewController:addNewVC animated:YES];
}

enter image description here

Viewing all 7144 articles
Browse latest View live


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