Detox test not able to run - ios
I've been trying to run a Detox test for our mobile app this whole day, but haven't been able to.
Relevant npm versions I use:
"detox": "^17.14.6",
"jest": "^26.6.3",
"jest-circus": "^26.6.3",
"jest-cli": "^26.6.3",
detoxrc.json
{
"testRunner": "jest",
"runnerConfig": "e2e/config.json",
"configurations": {
"ios.sim.debug": {
"binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/Test.app",
"build": "xcodebuild -workspace ios/Test.xcworkspace -scheme Test -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build",
"type": "ios.simulator",
"device": {
"type": "iPhone 11 Pro"
}
}
}
}
test.e2e.js
describe('Overview', () => {
beforeEach(async () => {
await device.reloadReactNative();
});
it('should open the overviewTab', async () => {
await expect(element(by.id('overviewTab'))).toBeVisible();
});
});
It errors in a timeout:
Overview
✕ should open the overviewTab (120006 ms)
● Overview › should open the overviewTab
thrown: "Exceeded timeout of 120000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."
1 | describe('Overview', () => {
> 2 | beforeEach(async () => {
| ^
3 | await device.reloadReactNative();
4 | });
5 |
at test.e2e.js:2:3
at Object.<anonymous> (test.e2e.js:1:1)
When I run detox test --loglevel trace this is the whole log:
kevin#ip-192-168-0-203 mobile-app % detox test --loglevel trace
detox[9009] INFO: [test.js] loglevel="trace" useCustomLogger=true DETOX_START_TIMESTAMP=1608416281857 reportSpecs=true jest --config e2e/config.json --testNamePattern '^((?!:android:).)*$' --maxWorkers 1 e2e
detox[9010] TRACE: [Detox.js/DETOX_CREATE] created a Detox instance with config:
{"artifactsConfig":{"rootDir":"artifacts/ios.sim.debug.2020-12-19 22-18-01Z","plugins":{"log":{"enabled":false,"keepOnlyFailedTestsArtifacts":false},"screenshot":{"enabled":true,"shouldTakeAutomaticSnapshots":false,"keepOnlyFailedTestsArtifacts":false},"video":{"enabled":false,"keepOnlyFailedTestsArtifacts":false},"instruments":{"enabled":false,"keepOnlyFailedTestsArtifacts":false},"timeline":{"enabled":false}},"pathBuilder":{"_rootDir":"artifacts/ios.sim.debug.2020-12-19 22-18-01Z"}},"behaviorConfig":{"init":{"reinstallApp":true,"exposeGlobals":true,"launchApp":true},"cleanup":{"shutdownDevice":false}},"cliConfig":{"loglevel":"trace","useCustomLogger":"true"},"deviceConfig":{"binaryPath":"ios/build/Build/Products/Debug-iphonesimulator/Test.app","build":"xcodebuild -workspace ios/Test.xcworkspace -scheme Test -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build","type":"ios.simulator","device":{"type":"iPhone 11 Pro"}},"runnerConfig":{"testRunner":"jest","runnerConfig":"e2e/config.json","specs":"e2e"},"sessionConfig":{"autoStart":true,"server":"ws://localhost:62012","sessionId":"e836caba-d171-3480-4931-9ee02f21322b","debugSynchronization":false},"errorBuilder":{"filepath":"/Users/kevin/Projects/test/mobile-app/.detoxrc.json","contents":{"testRunner":"jest","runnerConfig":"e2e/config.json","configurations":{"ios.sim.debug":{"binaryPath":"ios/build/Build/Products/Debug-iphonesimulator/Test.app","build":"xcodebuild -workspace ios/Test.xcworkspace -scheme Test -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build","type":"ios.simulator","device":{"type":"iPhone 11 Pro"}}}},"configurationName":"ios.sim.debug"}}
detox[9010] INFO: [DetoxServer.js] server listening on localhost:62012...
detox[9010] DEBUG: [AsyncWebSocket.js/WEBSOCKET_OPEN] opened web socket to: ws://localhost:62012
detox[9010] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"login","params":{"sessionId":"e836caba-d171-3480-4931-9ee02f21322b","role":"tester"},"messageId":0}
detox[9010] DEBUG: [DetoxServer.js/LOGIN] role=tester, sessionId=e836caba-d171-3480-4931-9ee02f21322b
detox[9010] DEBUG: [DetoxServer.js/LOGIN_SUCCESS] role=tester, sessionId=e836caba-d171-3480-4931-9ee02f21322b
detox[9010] TRACE: [AsyncWebSocket.js/WEBSOCKET_MESSAGE] {"type":"loginSuccess","params":{"sessionId":"e836caba-d171-3480-4931-9ee02f21322b","role":"tester"},"messageId":0}
detox[9010] DEBUG: [exec.js/EXEC_CMD, #0] applesimutils --list --byType "iPhone 11 Pro"
detox[9010] TRACE: [exec.js/EXEC_SUCCESS, #0] [
{
"os" : {
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime",
"buildversion" : "18C61",
"runtimeRoot" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot",
"identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-14-3",
"version" : "14.3",
"isAvailable" : true,
"name" : "iOS 14.3"
},
"dataPath" : "\/Users\/kevin\/Library\/Developer\/CoreSimulator\/Devices\/ED9068B9-5E52-404E-B689-ABA33E32E0A1\/data",
"logPath" : "\/Users\/kevin\/Library\/Logs\/CoreSimulator\/ED9068B9-5E52-404E-B689-ABA33E32E0A1",
"udid" : "ED9068B9-5E52-404E-B689-ABA33E32E0A1",
"isAvailable" : true,
"deviceType" : {
"minRuntimeVersion" : 851968,
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 11 Pro.simdevicetype",
"maxRuntimeVersion" : 4294967295,
"name" : "iPhone 11 Pro",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-11-Pro",
"productFamily" : "iPhone"
},
"deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-11-Pro",
"state" : "Booted",
"name" : "iPhone 11 Pro"
}
]
detox[9010] DEBUG: [exec.js/EXEC_CMD, #1] applesimutils --list --byId ED9068B9-5E52-404E-B689-ABA33E32E0A1 --maxResults 1
detox[9010] TRACE: [exec.js/EXEC_SUCCESS, #1] [
{
"os" : {
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime",
"buildversion" : "18C61",
"runtimeRoot" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime\/Contents\/Resources\/RuntimeRoot",
"identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-14-3",
"version" : "14.3",
"isAvailable" : true,
"name" : "iOS 14.3"
},
"dataPath" : "\/Users\/kevin\/Library\/Developer\/CoreSimulator\/Devices\/ED9068B9-5E52-404E-B689-ABA33E32E0A1\/data",
"logPath" : "\/Users\/kevin\/Library\/Logs\/CoreSimulator\/ED9068B9-5E52-404E-B689-ABA33E32E0A1",
"udid" : "ED9068B9-5E52-404E-B689-ABA33E32E0A1",
"isAvailable" : true,
"deviceType" : {
"minRuntimeVersion" : 851968,
"bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 11 Pro.simdevicetype",
"maxRuntimeVersion" : 4294967295,
"name" : "iPhone 11 Pro",
"identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-11-Pro",
"productFamily" : "iPhone"
},
"deviceTypeIdentifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-11-Pro",
"state" : "Booted",
"name" : "iPhone 11 Pro"
}
]
detox[9010] TRACE: [ArtifactsManager.js/LIFECYCLE] artifactsManager.onBootDevice({
coldBoot: false,
deviceId: 'ED9068B9-5E52-404E-B689-ABA33E32E0A1',
type: 'iPhone 11 Pro'
})
detox[9010] TRACE: [ArtifactsManager.js/LIFECYCLE] artifactsManager.onBeforeUninstallApp({
deviceId: 'ED9068B9-5E52-404E-B689-ABA33E32E0A1',
bundleId: 'io.test.ios-dev'
})
detox[9010] DEBUG: [exec.js/EXEC_CMD, #2] /usr/bin/xcrun simctl uninstall ED9068B9-5E52-404E-B689-ABA33E32E0A1 io.test.ios-dev
detox[9010] DEBUG: [exec.js/EXEC_TRY, #2] Uninstalling io.test.ios-dev...
detox[9010] TRACE: [exec.js/EXEC_SUCCESS, #2]
detox[9010] DEBUG: [exec.js/EXEC_SUCCESS, #2] io.test.ios-dev uninstalled
detox[9010] DEBUG: [exec.js/EXEC_CMD, #3] /usr/bin/xcrun simctl install ED9068B9-5E52-404E-B689-ABA33E32E0A1 "/Users/kevin/Projects/test/mobile-app/ios/build/Build/Products/Debug-iphonesimulator/Test.app"
detox[9010] DEBUG: [exec.js/EXEC_TRY, #3] Installing /Users/kevin/Projects/test/mobile-app/ios/build/Build/Products/Debug-iphonesimulator/Test.app...
detox[9010] TRACE: [exec.js/EXEC_SUCCESS, #3]
detox[9010] DEBUG: [exec.js/EXEC_SUCCESS, #3] /Users/kevin/Projects/test/mobile-app/ios/build/Build/Products/Debug-iphonesimulator/Test.app installed
detox[9010] TRACE: [ArtifactsManager.js/LIFECYCLE] artifactsManager.onBeforeTerminateApp({
deviceId: 'ED9068B9-5E52-404E-B689-ABA33E32E0A1',
bundleId: 'io.test.ios-dev'
})
detox[9010] DEBUG: [exec.js/EXEC_CMD, #4] /usr/bin/xcrun simctl terminate ED9068B9-5E52-404E-B689-ABA33E32E0A1 io.test.ios-dev
detox[9010] DEBUG: [exec.js/EXEC_TRY, #4] Terminating io.test.ios-dev...
detox[9010] TRACE: [exec.js/EXEC_SUCCESS, #4]
detox[9010] DEBUG: [exec.js/EXEC_SUCCESS, #4] io.test.ios-dev terminated
detox[9010] TRACE: [ArtifactsManager.js/LIFECYCLE] artifactsManager.onTerminateApp({
deviceId: 'ED9068B9-5E52-404E-B689-ABA33E32E0A1',
bundleId: 'io.test.ios-dev'
})
detox[9010] TRACE: [ArtifactsManager.js/LIFECYCLE] artifactsManager.onBeforeLaunchApp({
bundleId: 'io.test.ios-dev',
deviceId: 'ED9068B9-5E52-404E-B689-ABA33E32E0A1',
launchArgs: {
detoxServer: 'ws://localhost:62012',
detoxSessionId: 'e836caba-d171-3480-4931-9ee02f21322b'
}
})
detox[9010] DEBUG: [exec.js/EXEC_CMD, #5] SIMCTL_CHILD_DYLD_INSERT_LIBRARIES="/Users/kevin/Library/Detox/ios/1027ad4db0a05cf5e2f8569ce0a4fb6f1ac16bcb/Detox.framework/Detox" /usr/bin/xcrun simctl launch ED9068B9-5E52-404E-B689-ABA33E32E0A1 io.test.ios-dev --args -detoxServer "ws://localhost:62012" -detoxSessionId "e836caba-d171-3480-4931-9ee02f21322b" -detoxDisableHierarchyDump "YES"
detox[9010] DEBUG: [exec.js/EXEC_TRY, #5] Launching io.test.ios-dev...
detox[9010] TRACE: [exec.js/EXEC_SUCCESS, #5] io.test.ios-dev: 9047
detox[9010] DEBUG: [exec.js/EXEC_CMD, #6] /usr/bin/xcrun simctl get_app_container ED9068B9-5E52-404E-B689-ABA33E32E0A1 io.test.ios-dev
detox[9010] TRACE: [exec.js/EXEC_SUCCESS, #6] /Users/kevin/Library/Developer/CoreSimulator/Devices/ED9068B9-5E52-404E-B689-ABA33E32E0A1/data/Containers/Bundle/Application/CA9DB8EE-74C0-4BE1-9F2C-0FF3CC4D9AB0/Test.app
detox[9010] INFO: [AppleSimUtils.js] io.test.ios-dev launched. To watch simulator logs, run:
/usr/bin/xcrun simctl spawn ED9068B9-5E52-404E-B689-ABA33E32E0A1 log stream --level debug --style compact --predicate 'process == "Test"'
detox[9047] TRACE: [ArtifactsManager.js/LIFECYCLE] artifactsManager.onLaunchApp({
bundleId: 'io.test.ios-dev',
deviceId: 'ED9068B9-5E52-404E-B689-ABA33E32E0A1',
launchArgs: {
detoxServer: 'ws://localhost:62012',
detoxSessionId: 'e836caba-d171-3480-4931-9ee02f21322b',
detoxDisableHierarchyDump: 'YES'
},
pid: 9047
})
detox[9010] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"isReady","params":{},"messageId":-1000}
detox[9010] TRACE: [DetoxServer.js/MESSAGE] role=tester action=isReady (sessionId=e836caba-d171-3480-4931-9ee02f21322b)
detox[9010] DEBUG: [DetoxServer.js/CANNOT_FORWARD] role=testee not connected, cannot fw action (sessionId=e836caba-d171-3480-4931-9ee02f21322b)
detox[9010] DEBUG: [DetoxServer.js/LOGIN] role=testee, sessionId=e836caba-d171-3480-4931-9ee02f21322b
detox[9010] DEBUG: [DetoxServer.js/LOGIN_SUCCESS] role=testee, sessionId=e836caba-d171-3480-4931-9ee02f21322b
detox[9010] TRACE: [DetoxServer.js/MESSAGE] role=testee action=ready (sessionId=e836caba-d171-3480-4931-9ee02f21322b)
detox[9010] TRACE: [AsyncWebSocket.js/WEBSOCKET_MESSAGE] {"type":"ready","params":{},"messageId":-1000}
detox[9010] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"waitForActive","params":{},"messageId":1}
detox[9010] TRACE: [DetoxServer.js/MESSAGE] role=tester action=waitForActive (sessionId=e836caba-d171-3480-4931-9ee02f21322b)
detox[9010] TRACE: [DetoxServer.js/MESSAGE] role=testee action=waitForActiveDone (sessionId=e836caba-d171-3480-4931-9ee02f21322b)
detox[9010] TRACE: [DetoxServer.js/MESSAGE] role=testee action=ready (sessionId=e836caba-d171-3480-4931-9ee02f21322b)
detox[9010] TRACE: [AsyncWebSocket.js/WEBSOCKET_MESSAGE] {"type":"waitForActiveDone","params":{},"messageId":1}
detox[9010] TRACE: [AsyncWebSocket.js/WEBSOCKET_MESSAGE] {"type":"ready","messageId":-1000,"params":{}}
detox[9047] TRACE: [ArtifactsManager.js/LIFECYCLE] artifactsManager.onAppReady({
deviceId: 'ED9068B9-5E52-404E-B689-ABA33E32E0A1',
bundleId: 'io.test.ios-dev',
pid: 9047
})
detox[9010] INFO: at e2e/test.e2e.js:21:11
bafke
ROOT_DESCRIBE_BLOCK[9010] TRACE: [ArtifactsManager.js/LIFECYCLE] artifactsManager.onRunDescribeStart({ name: 'ROOT_DESCRIBE_BLOCK' })
Overview[9010] TRACE: [ArtifactsManager.js/LIFECYCLE] artifactsManager.onRunDescribeStart({ name: 'Overview' })
detox[9010] INFO: Overview is assigned to ED9068B9-5E52-404E-B689-ABA33E32E0A1 {"type":"iPhone 11 Pro"}
detox[9010] INFO: Overview: should open the overviewTab
detox[9010] TRACE: [Detox.js/DETOX_BEFORE_EACH] running test: "Overview should open the overviewTab"
detox[9010] TRACE: [ArtifactsManager.js/LIFECYCLE] artifactsManager.onTestStart({
title: 'should open the overviewTab',
fullName: 'Overview should open the overviewTab',
status: 'running',
invocations: 1
})
detox[9010] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"reactNativeReload","params":{},"messageId":-1000}
detox[9010] TRACE: [DetoxServer.js/MESSAGE] role=tester action=reactNativeReload (sessionId=e836caba-d171-3480-4931-9ee02f21322b)
detox[9010] TRACE: [ArtifactsManager.js/LIFECYCLE] artifactsManager.onHookFailure({
error: 'Exceeded timeout of 120000 ms for a hook.\n' +
'Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test.',
hook: 'beforeEach'
})
detox[9010] TRACE: [Detox.js/DETOX_AFTER_EACH] failed test: "Overview should open the overviewTab"
detox[9010] TRACE: [ArtifactsManager.js/LIFECYCLE] artifactsManager.onTestDone({
title: 'should open the overviewTab',
fullName: 'Overview should open the overviewTab',
status: 'failed',
invocations: 1,
timedOut: true
})
detox[9010] WARN: [Client.js/PENDING_REQUESTS] App has not responded to the network requests below:
(id = -1000) reactNativeReload: {}
That might be the reason why the test "Overview should open the overviewTab" has timed out.
detox[9010] INFO: Overview: should open the overviewTab [FAIL]
Overview[9010] TRACE: [ArtifactsManager.js/LIFECYCLE] artifactsManager.onRunDescribeFinish({ name: 'Overview' })
ROOT_DESCRIBE_BLOCK[9010] TRACE: [ArtifactsManager.js/LIFECYCLE] artifactsManager.onRunDescribeFinish({ name: 'ROOT_DESCRIBE_BLOCK' })
detox[9010] TRACE: [ArtifactsManager.js/LIFECYCLE] artifactsManager.onBeforeCleanup()
detox[9010] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"cleanup","params":{"stopRunner":true},"messageId":-49642}
detox[9010] TRACE: [DetoxServer.js/MESSAGE] role=tester action=cleanup (sessionId=e836caba-d171-3480-4931-9ee02f21322b)
detox[9010] TRACE: [DetoxServer.js/MESSAGE] role=testee action=cleanupDone (sessionId=e836caba-d171-3480-4931-9ee02f21322b)
detox[9010] TRACE: [AsyncWebSocket.js/WEBSOCKET_MESSAGE] {"params":{},"type":"cleanupDone","messageId":-49642}
detox[9010] DEBUG: [DetoxServer.js/DISCONNECT] role=tester, sessionId=e836caba-d171-3480-4931-9ee02f21322b
detox[9010] DEBUG: [DetoxServer.js/DISCONNECT] role=testee, sessionId=e836caba-d171-3480-4931-9ee02f21322b
detox[9010] DEBUG: [DetoxServer.js/CANNOT_FORWARD] role=tester not connected, cannot fw action (sessionId=e836caba-d171-3480-4931-9ee02f21322b)
detox[9010] DEBUG: [DetoxServer.js/WS_CLOSE] Detox server connections terminated gracefully
FAIL e2e/test.e2e.js (133.272 s)
Overview
✕ should open the overviewTab (120006 ms)
● Overview › should open the overviewTab
thrown: "Exceeded timeout of 120000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."
1 | describe('Overview', () => {
> 2 | beforeEach(async () => {
| ^
3 | await device.reloadReactNative();
4 | });
5 |
at test.e2e.js:2:3
at Object.<anonymous> (test.e2e.js:1:1)
detox[9009] ERROR: [cli.js] Error: Command failed: jest --config e2e/config.json --testNamePattern '^((?!:android:).)*$' --maxWorkers 1 e2e
Edit
I managed to get some more info by using detox test --debug-synchronization 200 from the Synchronization troubleshooting and that resulted in constant logs of
detox[12636] INFO: [actions.js] Sync WXRunLoopIdlingResource: React Native thread is busy.
detox[12636] INFO: [actions.js] Sync Dispatch Queue: com.apple.main-thread
and one log about a call to firebase logging that wasn't getting fulfilled.
When I also use --loglevel trace I get this log constantly:
detox[12636] INFO: [actions.js] Sync WXRunLoopIdlingResource: React Native thread is busy.
detox[12636] INFO: [actions.js] Sync Dispatch Queue: com.apple.main-thread
detox[12636] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"currentStatus","params":{},"messageId":15}
detox[12636] TRACE: [DetoxServer.js/MESSAGE] role=tester action=currentStatus (sessionId=d7428263-4169-e8b4-756d-cc5b3c3d0f73)
detox[12636] TRACE: [DetoxServer.js/MESSAGE] role=testee action=currentStatusResult (sessionId=d7428263-4169-e8b4-756d-cc5b3c3d0f73)
detox[12636] TRACE: [AsyncWebSocket.js/WEBSOCKET_MESSAGE] {"type":"currentStatusResult","params":{"state":"busy","resources":[{"name":"WXRunLoopIdlingResource","info":{"runLoop":"<CFRunLoop 0x600000c7c700 [0x7fff8002e8c0]>{wakeup port = 0x5a17, stopped = false, ignoreWakeUps = true, \ncurrent mode = (none),\ncommon modes = <CFBasicHash 0x600003e18f30 [0x7fff8002e8c0]>{type = mutable set, count = 1,\nentries =>\n\t2 : <CFString 0x7fff801ab7e8 [0x7fff8002e8c0]>{contents = \"kCFRunLoopDefaultMode\"}\n}\n,\ncommon mode items = <CFBasicHash 0x600003e1bcf0 [0x7fff8002e8c0]>{type = mutable set, count = 4,\nentries =>\n\t0 : <CFRunLoopSource 0x60000057ae80 [0x7fff8002e8c0]>{signalled = No, valid = Yes, order = 0, context = <CFRunLoopSource context>{version = 0, info = 0x60000322ab60, callout = __NSThreadPerformPerform (0x7fff208581ee)}}\n\t2 : <CFRunLoopSource 0x600000519ec0 [0x7fff8002e8c0]>{signalled = No, valid = Yes, order = 0, context = <CFRunLoopSource context>{version = 0, info = 0x60000320e470, callout = __NSThreadPerformPerform (0x7fff208581ee)}}\n\t3 : <CFRunLoopSource 0x600000564a80 [0x7fff8002e8c0]>{signalled = Yes, valid = Yes, order = 0, context = <CFRunLoopSource context>{version = 0, info = 0x114fc0000, callout = _ZN3WTF7RunLoop11performWorkEPv (0x7fff32220270)}}\n\t4 : <CFRunLoopTimer 0x6000005600c0 [0x7fff8002e8c0]>{valid = Yes, firing = No, interval = 0, tolerance = 0, next fire date = 630235923 (486.399006 # 357970975424457), callout = _ZZN3WTF7RunLoop9TimerBase5startENS_7SecondsEbEN3$_18__invokeEP16__CFRunLoopTimerPv (0x7fff32220bb0 / 0x7fff32220bb0) (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/JavaScriptCore.framework/JavaScriptCore), context = <CFRunLoopTimer context 0x114ff65a0>}\n}\n,\nmodes = <CFBasicHash 0x600003e1bdb0 [0x7fff8002e8c0]>{type = mutable set, count = 2,\nentries =>\n\t0 : <CFRunLoopMode 0x600000b044e0 [0x7fff8002e8c0]>{name = kCFRunLoopCommonModes, port set = 0xc307, queue = 0x600001e13a80, source = 0x600001e12c00 (not fired), timer port = 0xc503, \n\tsources0 = (null),\n\tsources1 = (null),\n\tobservers = (null),\n\ttimers = (null),\n\tcurrently 630235437 (357484576475625) / soft deadline in: 1.84463866e+10 sec (# -1) / hard deadline in: 1.84463866e+10 sec (# -1)\n},\n\n\t2 : <CFRunLoopMode 0x600000b6cdd0 [0x7fff8002e8c0]>{name = kCFRunLoopDefaultMode, port set = 0x13a0f, queue = 0x600001e3e800, source = 0x600001e3db00 (not fired), timer port = 0x13c27, \n\tsources0 = <CFBasicHash 0x600003e1a7c0 [0x7fff8002e8c0]>{type = mutable set, count = 0,\nentries =>\n}\n,\n\tsources1 = <CFBasicHash 0x600003e1bea0 [0x7fff8002e8c0]>{type = mutable set, count = 0,\nentries =>\n}\n,\n\tobservers = (\n \"<CFRunLoopObserver 0x600000112b20 [0x7fff8002e8c0]>{valid = Yes, activities = 0xe7, repeats = Yes, order = 0, callout = _runLoopObserverWithBlockContext (0x7fff2038c504), context = <CFRunLoopObserver context 0x600003ec0090>}\"\n),\n\ttimers = <CFArray 0x600001455f20 [0x7fff8002e8c0]>{type = mutable-small, count = 1, values = (\n\t0 : <CFRunLoopTimer 0x6000005600c0 [0x7fff8002e8c0]>{valid = Yes, firing = No, interval = 0, tolerance = 0, next fire date = 630235923 (486.398864 # 357970975424457), callout = _ZZN3WTF7RunLoop9TimerBase5startENS_7SecondsEbEN3$_18__invokeEP16__CFRunLoopTimerPv (0x7fff32220bb0 / 0x7fff32220bb0) (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/JavaScriptCore.framework/JavaScriptCore), context = <CFRunLoopTimer context 0x114ff65a0>}\n)},\n\tcurrently 630235437 (357484576488240) / soft deadline in: 486.398936 sec (# 357970975424457) / hard deadline in: 486.398936 sec (# 357970975424457)\n},\n\n}\n}\n","prettyPrint":"React Native thread is busy."}},{"name":"Dispatch Queue","info":{"queue":"<OS_dispatch_queue_main: com.apple.main-thread[0x7fff86d30c80] = { xref = -2147483648, ref = -2147483648, sref = 1, target = com.apple.root.default-qos.overcommit[0x7fff86d31100], width = 0x1, state = 0x001ffe9000000300, dirty, in-flight = 0, thread = 0x303 }>","prettyPrint":"com.apple.main-thread"}}],"messageId":15},"messageId":15}
So I'm going to continue to check out where this might be coming from. I tried adding logs from the very beginning of the source code, but nothing seems to be coming through though.
Related
Issue when trying to run Webdriver IO (end to end) tests in a Gitlab CI pipeline runner using a docker image
This is my first time posting in this plateform so if my request lacks informations let me know so I can provide them. I'm trying to run my end to end tests using Webdriver IO, I've been running my tests locally at first but now I need to execute them in a Gitlab CI pipeline using a docker image, and here are some information about the setup: Docker image: it's an alpinedocker image node version: 12.18.3 npm version:6.14.6 Java version: openjdk "11.0.8" Chromium: 85.0.4183.83 Mozilla: 80.0.1 Webdriver IO configuration: latest versions of webdriver IO framework, geckodriver, and wdio-geckodriver-service Here is my wdio.cong.js file const { generate } = require('multiple-cucumber-html-reporter'); const { removeSync } = require('fs-extra'); exports.config = { runner: 'local', maxInstances: 1, capabilities: [ { maxInstances: 1, browserName: 'firefox', acceptInsecureCerts: true, 'moz:firefoxOptions': { args: ['--headless', '--lang=fr-FR', '--disable-dev-shm-usage'] } } ], specs: ['./features/adminNavigation.feature'], logLevel: 'info', bail: 0, baseUrl: 'http://localhost:3000', waitforTimeout: 10000000, connectionRetryTimeout: 120000, connectionRetryCount: 3, services: ['geckodriver'], framework: 'cucumber', reporters: [ [ 'cucumberjs-json', { jsonFolder: './cucumberjs-reports/json', language: 'en' } ] ], cucumberOpts: { timeout: 40000, requireModule: [ 'tsconfig-paths/register', () => { require('ts-node').register({ files: true, project: './tsconfig.json' }); } ], require: ['./**/**/*.step.ts'] }, onPrepare: function(config, capabilities) { removeSync('./cucumberjs-reports'); }, onComplete: function(exitCode, config, capabilities, results) { generate({ jsonDir: './cucumberjs-reports/json', reportPath: './cucumberjs-reports/report' }); } }; My package.json: "geckodriver": "^1.20.0", "#wdio/cli": "^6.4.5", "#wdio/cucumber-framework": "^6.4.3", "#wdio/local-runner": "^6.4.5", "#wdio/mocha-framework": "^6.4.0", "#wdio/selenium-standalone-service": "^6.4.7", "#wdio/spec-reporter": "^6.4.0", "#wdio/sync": "^6.4.5", "chromedriver": "^85.0.1", "wdio-chromedriver-service": "^6.0.4", "wdio-cucumberjs-json-reporter": "^2.0.2", "wdio-geckodriver-service": "^1.1.0", And here's the error logs : Execution of 1 spec files started at 2020-09-11T13:15:06.515Z 2062020-09-11T13:15:06.519Z DEBUG #wdio/utils:initialiseServices: initialise service "geckodriver" as NPM package 2072020-09-11T13:15:06.522Z INFO #wdio/cli:launcher: Run onPrepare hook 2082020-09-11T13:15:06.525Z INFO #wdio/cli:launcher: Run onWorkerStart hook 2092020-09-11T13:15:06.535Z INFO #wdio/local-runner: Start worker 0-0 with arg: ./apps/front-e2e-wdio/wdio.ci.conf.js 210[0-0] 2020-09-11T13:15:07.117Z INFO #wdio/local-runner: Run worker command: run 211[0-0] 2020-09-11T13:15:07.247Z DEBUG #wdio/local-runner:utils: init remote session 212[0-0] 2020-09-11T13:15:07.252Z INFO webdriverio: Initiate new session using the ./protocol-stub protocol 213[0-0] RUNNING in firefox - /apps/front-e2e-wdio/features/adminNavigation.feature 214[0-0] 2020-09-11T13:15:07.749Z DEBUG #wdio/utils:initialiseServices: initialise service "geckodriver" as NPM package 215[0-0] 2020-09-11T13:15:07.772Z DEBUG #wdio/local-runner:utils: init remote session 216[0-0] 2020-09-11T13:15:07.774Z INFO webdriverio: Initiate new session using the webdriver protocol 217[0-0] 2020-09-11T13:15:07.778Z INFO webdriver: [POST] http://localhost:34305/session 218[0-0] 2020-09-11T13:15:07.778Z INFO webdriver: DATA { 219 capabilities: { 220 alwaysMatch: { 221 browserName: 'firefox', 222 acceptInsecureCerts: true, 223 'moz:firefoxOptions': [Object] 224 }, 225 firstMatch: [ {} ] 226 }, 227 desiredCapabilities: { 228 browserName: 'firefox', 229 acceptInsecureCerts: true, 230 'moz:firefoxOptions': { args: [Array] } 231 } 232} 233[0-0] 2020-09-11T13:15:10.623Z DEBUG webdriver: request failed due to response error: unknown error 234[0-0] 2020-09-11T13:15:10.624Z INFO webdriver: Retrying 1/3 2352020-09-11T13:15:10.624Z INFO webdriver: [POST] http://localhost:34305/session 2362020-09-11T13:15:10.624Z INFO webdriver: DATA { 237 capabilities: { 238 alwaysMatch: { 239 browserName: 'firefox', 240 acceptInsecureCerts: true, 241 'moz:firefoxOptions': [Object] 242 }, 243 firstMatch: [ {} ] 244 }, 245 desiredCapabilities: { 246 browserName: 'firefox', 247 acceptInsecureCerts: true, 248 'moz:firefoxOptions': { args: [Array] } 249 } 250} 251[0-0] 2020-09-11T13:15:10.623Z WARN webdriver: Request failed with status 500 due to invalid argument: can't kill an exited process 252[0-0] 2020-09-11T13:15:13.141Z DEBUG webdriver: request failed due to response error: unknown error 253[0-0] 2020-09-11T13:15:13.142Z WARN webdriver: Request failed with status 500 due to invalid argument: can't kill an exited process 254[0-0] 2020-09-11T13:15:13.142Z INFO webdriver: Retrying 2/3 255[0-0] 2020-09-11T13:15:13.143Z INFO webdriver: [POST] http://localhost:34305/session 256[0-0] 2020-09-11T13:15:13.143Z INFO webdriver: DATA { 257 capabilities: { 258 alwaysMatch: { 259 browserName: 'firefox', 260 acceptInsecureCerts: true, 261 'moz:firefoxOptions': [Object] 262 }, 263 firstMatch: [ {} ] 264 }, 265 desiredCapabilities: { 266 browserName: 'firefox', 267 acceptInsecureCerts: true, 268 'moz:firefoxOptions': { args: [Array] } 269 } 270} 271[0-0] 2020-09-11T13:15:15.558Z DEBUG webdriver: request failed due to response error: unknown error 272[0-0] 2020-09-11T13:15:15.567Z INFO webdriver: Retrying 3/3 273[0-0] 2020-09-11T13:15:15.567Z INFO webdriver: [POST] http://localhost:34305/session 274[0-0] 2020-09-11T13:15:15.568Z INFO webdriver: DATA { 275 capabilities: { 276 alwaysMatch: { 277 browserName: 'firefox', 278 acceptInsecureCerts: true, 279 'moz:firefoxOptions': [Object] 280 }, 281 firstMatch: [ {} ] 282 }, 283 desiredCapabilities: { 284 browserName: 'firefox', 285 acceptInsecureCerts: true, 286 'moz:firefoxOptions': { args: [Array] } 287 } 288} 289[0-0] 2020-09-11T13:15:15.566Z WARN webdriver: Request failed with status 500 due to invalid argument: can't kill an exited process 290[0-0] 2020-09-11T13:15:17.985Z DEBUG webdriver: request failed due to response error: unknown error 291[0-0] 2020-09-11T13:15:17.986Z ERROR webdriver: Request failed with status 500 due to unknown error: invalid argument: can't kill an exited process 2922020-09-11T13:15:17.986Z ERROR webdriver: unknown error: invalid argument: can't kill an exited process 293 at getErrorFromResponseBody (/builds/node_modules/webdriver/build/utils.js:121:10) 294 at WebDriverRequest._request (/builds/node_modules/webdriver/build/request.js:149:56) 295 at processTicksAndRejections (internal/process/task_queues.js:97:5) 296 at async startWebDriverSession (/builds/node_modules/webdriver/build/utils.js:41:16) 297 at async Function.newSession (/builds/node_modules/webdriver/build/index.js:44:23) 298 at async remote (/builds/node_modules/webdriverio/build/index.js:75:20) 299 at async Runner._startSession (/builds/node_modules/#wdio/runner/build/index.js:206:50) 300 at async Runner._initSession (/builds/node_modules/#wdio/runner/build/index.js:175:21) 301 at async Runner.run (/builds/node_modules/#wdio/runner/build/index.js:93:15) 3022020-09-11T13:15:17.987Z ERROR #wdio/runner: Error: Failed to create session. 303invalid argument: can't kill an exited process 304 at startWebDriverSession (/builds/node_modules/webdriver/build/utils.js:45:11) 305 at processTicksAndRejections (internal/process/task_queues.js:97:5) 306[0-0] Error: Failed to create session. 307invalid argument: can't kill an exited process 3082020-09-11T13:15:18.108Z DEBUG #wdio/local-runner: Runner 0-0 finished with exit code 1 309[0-0] FAILED in firefox - /apps/front-e2e-wdio/features/adminNavigation.feature 3102020-09-11T13:15:18.110Z INFO #wdio/cli:launcher: Run onComplete hook 3112020-09-11T13:15:18.112Z ERROR #wdio/cli:utils: Error in onCompleteHook: Error: There were issues reading JSON-files from './apps/front-e2e-wdio/cucumberjs-reports/json'. 312 at collectJSONS (/builds/node_modules/multiple-cucumber-html-reporter/lib/collect-jsons.js:16:15) 313 at generateReport (/builds/node_modules/multiple-cucumber-html-reporter/lib/generate-report.js:69:22) 314 at Object.onComplete (/builds/apps/front-e2e-wdio/wdio.ci.conf.js:44:5) 315 at /builds/node_modules/#wdio/cli/build/utils.js:109:13 316 at Array.map (<anonymous>) 317 at runOnCompleteHook (/builds/node_modules/#wdio/cli/build/utils.js:107:37) 318 at Launcher.run (/builds/node_modules/#wdio/cli/build/launcher.js:83:69) 319 at processTicksAndRejections (internal/process/task_queues.js:97:5) 320Spec Files: 0 passed, 1 failed, 1 total (100% completed) in 00:00:11 3212020-09-11T13:15:18.114Z INFO #wdio/local-runner: Shutting down spawned worker 3222020-09-11T13:15:18.365Z INFO #wdio/local-runner: Waiting for 0 to shut down gracefully 3232020-09-11T13:15:18.366Z INFO #wdio/local-runner: shutting down edit The commande that i'm using to run my tests is the following : "npx wdio wdio.conf.js". And here's the Docker config file im using: FROM alpine:latest ARG BUILD_DATE ARG VCS_REF USER root # Install node RUN apk add --update nodejs npm # Installs latest Chromium package. RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/main" > /etc/apk/repositories \ && echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \ && echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \ && echo "http://dl-cdn.alpinelinux.org/alpine/v3.11/main" >> /etc/apk/repositories \ && apk upgrade -U -a \ && apk add --no-cache \ libstdc++ \ chromium \ harfbuzz \ nss \ freetype \ ttf-freefont \ wqy-zenhei \ && rm -rf /var/cache/* \ && mkdir /var/cache/apk # Add Chrome as a user RUN mkdir -p /usr/src/app \ && adduser -D chrome \ && chown -R chrome:chrome /usr/src/app # Run Chrome as non-privileged USER chrome WORKDIR /usr/src/app ENV CHROME_BIN=/usr/bin/chromium-browser \ CHROME_PATH=/usr/lib/chromium/ USER root # Install firefox RUN apk upgrade --update-cache --available RUN apk add xvfb firefox dbus py-pip ttf-dejavu ENV FIREFOX_BIN=/usr/bin/firefox # Install bash && curl RUN apk add --no-cache bash RUN apk --no-cache add curl #ADD wait module ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait /wait RUN chmod +x /wait # Install Mongo Tools RUN echo 'http://dl-cdn.alpinelinux.org/alpine/v3.9/community' >> /etc/apk/repositories RUN apk add mongodb-tools # Install jdk11 RUN apk --no-cache add openjdk11 --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community # Install chromeDriver RUN apk add --no-cache chromium-chromedriver RUN ls RUN node -v RUN npm -v RUN java -version RUN chromium-browser --version RUN firefox --version # RUN apt-cache policy chromium | grep Installed | sed -e "s/Installed/Chrome/" CMD tail -f /dev/null
please see a repo https://gitlab.com/bar_foo/wdio-cucumber-typescript for en example of how to run tests in Chrome and Firefox in the GitLab pipeline. Note: you don't need Java in the image if you decided to use devtools automation protocol instead of webdriver protocol, see https://webdriver.io/blog/2019/09/16/devtools.html
JWT expired at 2020-05-13T07:50:39Z. Current time: 2020-05-16T21:29:41Z. I got this error after expiration of my jwt as log error says
My log error This is.. Anything more if needed then please comment below. I think this is the issue i am getting for expiration time. But i want to know how to solve this type of issue if get in future. How to basically solve this issue. can i create jwt token everytime after time expiration? . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.2.2.RELEASE) 2020-05-16 21:29:23.574 INFO 5924 --- [ main] .j.a.SpringSecurityJwtExampleApplication : Starting SpringSecurityJwtExampleApplication on S-PC with PID 5924 (D:\eclipse-workspace\spring-security-jwt-example-master\target\classes started by S in D:\eclipse-workspace\spring-security-jwt-example-master) 2020-05-16 21:29:23.592 INFO 5924 --- [ main] .j.a.SpringSecurityJwtExampleApplication : No active profile set, falling back to default profiles: default 2020-05-16 21:29:25.301 INFO 5924 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 2020-05-16 21:29:25.461 INFO 5924 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 140ms. Found 1 JPA repository interfaces. 2020-05-16 21:29:26.478 INFO 5924 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2020-05-16 21:29:27.421 INFO 5924 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 9002 (http) 2020-05-16 21:29:27.440 INFO 5924 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2020-05-16 21:29:27.441 INFO 5924 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.29] 2020-05-16 21:29:27.721 INFO 5924 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2020-05-16 21:29:27.721 INFO 5924 --- [ main] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 4002 ms 2020-05-16 21:29:28.065 INFO 5924 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting... 2020-05-16 21:29:28.071 WARN 5924 --- [ main] com.zaxxer.hikari.util.DriverDataSource : Registered driver with driverClassName=com.mysql.jdbc.Driver was not found, trying direct instantiation. Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary. 2020-05-16 21:29:29.294 INFO 5924 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed. 2020-05-16 21:29:29.438 INFO 5924 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default] 2020-05-16 21:29:29.596 INFO 5924 --- [ main] org.hibernate.Version : HHH000412: Hibernate Core {5.4.9.Final} 2020-05-16 21:29:29.953 INFO 5924 --- [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.1.0.Final} 2020-05-16 21:29:30.264 INFO 5924 --- [ main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.MySQL8Dialect 2020-05-16 21:29:31.640 INFO 5924 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] 2020-05-16 21:29:31.689 INFO 5924 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 2020-05-16 21:29:32.511 WARN 5924 --- [ main] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning 2020-05-16 21:29:32.959 INFO 5924 --- [ main] o.s.s.web.DefaultSecurityFilterChain : Creating filter chain: any request, [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter#47eaf55c, org.springframework.security.web.context.SecurityContextPersistenceFilter#994544, org.springframework.security.web.header.HeaderWriterFilter#1d944fc0, org.springframework.security.web.authentication.logout.LogoutFilter#2c16677c, com.javatechie.jwt.api.filter.JwtFilter#65859b44, org.springframework.security.web.savedrequest.RequestCacheAwareFilter#6f0c45f4, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter#3335afcf, org.springframework.security.web.authentication.AnonymousAuthenticationFilter#2c0798bd, org.springframework.security.web.session.SessionManagementFilter#7548e1fb, org.springframework.security.web.access.ExceptionTranslationFilter#30cafd13, org.springframework.security.web.access.intercept.FilterSecurityInterceptor#1f39269d] 2020-05-16 21:29:33.324 INFO 5924 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor' 2020-05-16 21:29:34.331 INFO 5924 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 9002 (http) with context path '' 2020-05-16 21:29:34.335 INFO 5924 --- [ main] .j.a.SpringSecurityJwtExampleApplication : Started SpringSecurityJwtExampleApplication in 12.188 seconds (JVM running for 13.014) 2020-05-16 21:29:40.858 INFO 5924 --- [nio-9002-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet' 2020-05-16 21:29:40.859 INFO 5924 --- [nio-9002-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet' 2020-05-16 21:29:40.880 INFO 5924 --- [nio-9002-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 21 ms 2020-05-16 21:29:41.080 ERROR 5924 --- [nio-9002-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception io.jsonwebtoken.ExpiredJwtException: JWT expired at 2020-05-13T07:50:39Z. Current time: 2020-05-16T21:29:41Z, a difference of 308342064 milliseconds. Allowed clock skew: 0 milliseconds. at io.jsonwebtoken.impl.DefaultJwtParser.parse(DefaultJwtParser.java:385) ~[jjwt-0.9.1.jar:0.9.1] at io.jsonwebtoken.impl.DefaultJwtParser.parse(DefaultJwtParser.java:481) ~[jjwt-0.9.1.jar:0.9.1] at io.jsonwebtoken.impl.DefaultJwtParser.parseClaimsJws(DefaultJwtParser.java:541) ~[jjwt-0.9.1.jar:0.9.1] at com.javatechie.jwt.api.util.JwtUtil.extractAllClaims(JwtUtil.java:32) ~[classes/:na] at com.javatechie.jwt.api.util.JwtUtil.extractClaim(JwtUtil.java:28) ~[classes/:na] at com.javatechie.jwt.api.util.JwtUtil.extractUsername(JwtUtil.java:20) ~[classes/:na] at com.javatechie.jwt.api.filter.JwtFilter.doFilterInternal(JwtFilter.java:38) ~[classes/:na] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.2.1.RELEASE.jar:5.2.1.RELEASE] at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116) ~[spring-security-web-5.2.1.RELEASE.jar:5.2.1.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.2.1.RELEASE.jar:5.2.1.RELEASE] at org.springframework.security.web.header.HeaderWriterFilter.doHeadersAfter(HeaderWriterFilter.java:92) ~[spring-security-web-5.2.1.RELEASE.jar:5.2.1.RELEASE] at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:77) ~[spring-security-web-5.2.1.RELEASE.jar:5.2.1.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.2.1.RELEASE.jar:5.2.1.RELEASE] at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105) ~[spring-security-web-5.2.1.RELEASE.jar:5.2.1.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.2.1.RELEASE.jar:5.2.1.RELEASE] at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56) ~[spring-security-web-5.2.1.RELEASE.jar:5.2.1.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.2.1.RELEASE.jar:5.2.1.RELEASE] at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215) ~[spring-security-web-5.2.1.RELEASE.jar:5.2.1.RELEASE] at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178) ~[spring-security-web-5.2.1.RELEASE.jar:5.2.1.RELEASE] at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:358) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:271) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) ~[tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:526) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:367) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:860) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1591) [tomcat-embed-core-9.0.29.jar:9.0.29] at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-9.0.29.jar:9.0.29] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_251] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_251] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-9.0.29.jar:9.0.29] at java.lang.Thread.run(Unknown Source) [na:1.8.0_251] This is my JwtUtil class. I have created a time limit of expiration of 10 hours. package com.sushovan.jwt.security.jwtutil; //import java.security.Signature; import java.util.Date; import java.util.HashMap; import java.util.Map; import java.util.function.Function; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.stereotype.Service; import io.jsonwebtoken.Claims; import io.jsonwebtoken.Jwts; import io.jsonwebtoken.SignatureAlgorithm; #Service public class MyJwtUtil { private String secret = "sushovan"; public <T> T extractClaims(String token, Function<Claims,T> claimResolver) { final Claims claims = extractAllClaims(token); return claimResolver.apply(claims); } private Claims extractAllClaims(String token) { return Jwts.parser().setSigningKey(secret).parseClaimsJws(token).getBody(); } public String extractUserName(String token) { return extractClaims(token, Claims::getSubject); } public Date extractexpiration(String token) { return extractClaims(token, Claims::getExpiration); } private Boolean isTokenExpired(String token) { return extractexpiration(token).before(new Date()); } public String generateToken(String username) { Map<String,Object> claims = new HashMap<>(); return createToken(claims, username); } private String createToken(Map<String, Object> claims, String subject) { return Jwts.builder().setClaims(claims).setSubject(subject).setIssuedAt(new Date(System.currentTimeMillis())) .setExpiration(new Date(System.currentTimeMillis() + 1000 * 60 * 60 * 10)) .signWith(SignatureAlgorithm.HS256, secret).compact(); } public Boolean validateToken(String token, UserDetails userDetails) { final String username = extractUserName(token); return (username.equals(userDetails.getUsername()) && !isTokenExpired(token)); } }
Why I get error: on_load_function_failed,re2
When I try to start the deployed app, I get this error: initial_call: {supervisor,kernel,['Argument__1']} pid: <0.1762.0> registered_name: [] error_info: {exit,{on_load_function_failed,re2},[{gen_server,init_it,6,[{file,"gen_server.erl"},{line,352}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]} ancestors: [kernel_sup,<0.1738.0>] messages: [] links: [<0.1739.0>] dictionary: [] trap_exit: true status: running heap_size: 376 stack_size: 27 reductions: 117 2017-06-19 11:51:18 supervisor_report supervisor: {local,kernel_sup} errorContext: start_error reason: {on_load_function_failed,re2} offender: [{pid,undefined},{id,kernel_safe_sup},{mfargs,{supervisor,start_link,[{local,kernel_safe_sup},kernel,safe]}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}] 2017-06-19 11:51:19 crash_report initial_call: {application_master,init,['Argument__1','Argument__2','Argument__3','Argument__4']} pid: <0.1737.0> registered_name: [] error_info: {exit,{{shutdown,{failed_to_start_child,kernel_safe_sup,{on_load_function_failed,re2}}},{kernel,start,[normal,[]]}},[{application_master,init,4,[{file,"application_master.erl"},{line,134}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]} ancestors: [<0.1736.0>] messages: [{'EXIT',<0.1738.0>,normal}] links: [<0.1736.0>,<0.1735.0>] dictionary: [] trap_exit: true status: running heap_size: 376 stack_size: 27 reductions: 152 2017-06-19 11:51:19 std_info application: kernel exited: {{shutdown,{failed_to_start_child,kernel_safe_sup,{on_load_function_failed,re2}}},{kernel,start,[normal,[]]}} type: permanent {"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{{shutdown,{failed_to_start_child,kernel_safe_sup,{on_load_function_failed,re2}}},{kernel,start,[normal,[]]}}}"} Kernel pid terminated (application_controller) ({application_start_failure,kernel,{{shutdown,{failed_to_start_child,kernel_safe_sup,{on_load_function_failed,re2}}},{kernel,start,[normal,[]]}}}) But I have no idea how to solve this error.. any idea? Phoenix app start: def start(_type, _args) do import Supervisor.Spec, warn: false children = [ # Start the endpoint when the application starts supervisor(MyApp.Endpoint, []), # Start the endpoint for schools supervisor(MyApp.Schools.Endpoint, []), # Start the Ecto repository supervisor(MyApp.Schools.Repo, []), supervisor(MyApp.Repo, []), ] opts = [strategy: :one_for_one, name: MyApp.Supervisor] Supervisor.start_link(children, opts) end
Titanium / Appcelerator: ListView TextField with iOS.Toolbar add "Done" Button
First issue I could found is that defining a KeyboardToolbar in a TextField is not working in a ListView (Ti SDK 5.2.2). Something like below does not compile: listView.xml: <Alloy> <View id="main" layout="vertical"> <ListView id="myListView" height="Ti.UI.SIZE"> <Templates> <ItemTemplate id="itemTemplate" name="template1"> <TextField class="textField" onBlur="onBlur" onChange="onChange" onFocus="onFocus" bindId="textField1"> <KeyboardToolbar> <Toolbar platform="ios" bindId="toolbar1"> <Items> <Button bindId="done1" onClick="onClick" style="Ti.UI.iPhone.SystemButtonStyle.DONE">Done</Button> </Items> </Toolbar> </KeyboardToolbar> </TextField> </ItemTemplate> </Templates> <ListSection></ListSection> </ListView> </View> </Alloy> listView.tss: ".textField": { left: 10, textAlign: Titanium.UI.TEXT_ALIGNMENT_LEFT, width: 150, editable: true, borderColor: "blue", height: 55, keyboardType: Ti.UI.KEYBOARD_TYPE_NUMBER_PAD, returnKeyType: Ti.UI.RETURNKEY_DONE, } listView.js: function onFocus(event) { Ti.API.info("onFocus"); } function onBlur() { Ti.API.info("onBlur"); } function onChange() { Ti.API.info("onChange"); } function onClick() { Ti.API.info("onClick"); } $.myListView.getSections()[0].setItems([{ "template": "template1", "textField1": { value: "Test" } }, { "template": "template1", "textField1": { value: "Test2" } }]); Does anybody have an idea how to catch the click event on "Done" button and blur() the TextField? Error stack: ----- MVC GENERATION ----- [INFO] [app.tss] global style processing... [INFO] [global style] writing to cache... [INFO] [index.xml] view processing... [INFO] style: "index.tss" [INFO] view: "index.xml" [INFO] controller: "index.js" [TRACE] - Processing "builtins" module... [TRACE] - Processing "optimizer" module... [TRACE] - Processing "compress" module... [INFO] created: "Resources/iphone/alloy/controllers/index.js" [DEBUG] map: "build/map/Resources/iphone/alloy/controllers/index.js.map" [INFO] created: "Resources/iphone/alloy/styles/index.js" [INFO] [listView.xml] view processing... [INFO] style: "listView.tss" [INFO] view: "listView.xml" [DEBUG] /Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Abstract._ItemArray.js:62 [DEBUG] return state.itemsArray + '.push(' + s.parent.symbol + ');'; [DEBUG] ^ [DEBUG] TypeError: Cannot read property 'symbol' of undefined [DEBUG] at Object.CU.generateNodeExtended.post (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Abstract._ItemArray.js:62:52) [DEBUG] at Object.exports.parse (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/base.js:14:17) [DEBUG] at Object.exports.parse (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/default.js:10:27) [DEBUG] at parse (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/Ti.UI.Button.js:30:30) [DEBUG] at Object.exports.parse (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/base.js:11:17) [DEBUG] at Object.exports.parse (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/Ti.UI.Button.js:14:27) [DEBUG] at Object.exports.generateNode (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:332:48) [DEBUG] at Object.exports.generateNodeExtended (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:269:17) [DEBUG] at /Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Abstract._ItemArray.js:59:16 [DEBUG] at Array.forEach (native) [DEBUG] at Function._.each._.forEach (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11) [DEBUG] at parse (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Abstract._ItemArray.js:41:4) [DEBUG] at Object.exports.parse (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/base.js:11:17) [DEBUG] at Object.exports.parse (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Abstract._ItemArray.js:18:27) [DEBUG] at Object.exports.parse (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Abstract.Items.js:16:48) [DEBUG] at Object.exports.generateNode (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:332:48) [DEBUG] at Object.exports.generateNodeExtended (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:269:17) [DEBUG] at /Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Abstract._ItemContainer.js:51:15 [DEBUG] at Array.forEach (native) [DEBUG] at Function._.each._.forEach (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11) [DEBUG] at parse (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Abstract._ItemContainer.js:31:4) [DEBUG] at Object.exports.parse (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/base.js:11:17) [DEBUG] at Object.exports.parse (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Abstract._ItemContainer.js:20:27) [DEBUG] at Object.exports.parse (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/Ti.UI.iOS.Toolbar.js:11:52) [DEBUG] at Object.exports.generateNode (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:332:48) [DEBUG] at Object.exports.generateNodeExtended (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:269:17) [DEBUG] at /Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/_ProxyProperty.js:43:14 [DEBUG] at Array.forEach (native) [DEBUG] at Function._.each._.forEach (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11) [DEBUG] at parse (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/_ProxyProperty.js:32:4) [DEBUG] at Object.exports.parse (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/base.js:11:17) [DEBUG] at Object.exports.parse (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/_ProxyProperty.js:16:27) [DEBUG] at Object.exports.parse (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/_ProxyProperty.KeyboardToolbar.js:12:37) [DEBUG] at Object.exports.generateNode (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:332:48) [DEBUG] at Object.exports.generateNodeExtended (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:269:17) [DEBUG] at /Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/Ti.UI.TextField.js:60:14 [DEBUG] at Array.forEach (native) [DEBUG] at Function._.each._.forEach (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11) [DEBUG] at parse (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/Ti.UI.TextField.js:30:4) [DEBUG] at Object.exports.parse (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/base.js:11:17) [DEBUG] at Object.exports.parse (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/Ti.UI.TextField.js:20:27) [DEBUG] at Object.exports.generateNode (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:332:48) [DEBUG] at Object.exports.generateNodeExtended (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:269:17) [DEBUG] at /Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Abstract.ItemTemplate.js:64:15 [DEBUG] at Array.forEach (native) [DEBUG] at Function._.each._.forEach (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11) [DEBUG] at parse (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Abstract.ItemTemplate.js:54:5) [DEBUG] at Object.exports.parse (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/base.js:11:17) [DEBUG] at Object.exports.parse (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Abstract.ItemTemplate.js:10:27) [DEBUG] at Object.exports.generateNode (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:332:48) [DEBUG] at Object.exports.generateNodeExtended (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:269:17) [DEBUG] at /Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/Ti.UI.ListView.js:132:17 [DEBUG] at Array.forEach (native) [DEBUG] at Function._.each._.forEach (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11) [DEBUG] at /Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/Ti.UI.ListView.js:123:6 [DEBUG] at Array.forEach (native) [DEBUG] at Function._.each._.forEach (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11) [DEBUG] at parse (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/Ti.UI.ListView.js:49:4) [DEBUG] at Object.exports.parse (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/base.js:11:17) [DEBUG] at Object.exports.parse [DEBUG] (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/parsers/Ti.UI.ListView.js:30:27) [DEBUG] at Object.exports.generateNode (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:332:48) [DEBUG] at /Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:416:29 [DEBUG] at Array.forEach (native) [DEBUG] at Function._.each._.forEach (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11) [DEBUG] at Object.exports.generateNode (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:407:5) [DEBUG] at /Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/index.js:777:28 [DEBUG] at Array.forEach (native) [DEBUG] at Function._.each._.forEach (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11) [DEBUG] at parseAlloyComponent (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/index.js:771:5) [DEBUG] at /Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/index.js:406:6 [DEBUG] at Array.forEach (native) [DEBUG] at Function._.each._.forEach (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11) [DEBUG] at /Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/index.js:395:6 [DEBUG] at Array.forEach (native) [DEBUG] at Function._.each._.forEach (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11) [DEBUG] at module.exports (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/commands/compile/index.js:391:4) [DEBUG] at Object.<anonymous> (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/Alloy/alloy.js:113:46) [DEBUG] at Module._compile (module.js:460:26) [DEBUG] at Object.Module._extensions..js (module.js:478:10) [DEBUG] at Module.load (module.js:355:32) [DEBUG] at Function.Module._load (module.js:310:12) [DEBUG] at Module.require (module.js:365:17) [DEBUG] at require (module.js:384:17) [DEBUG] at Object.<anonymous> (/Users/ceck/.appcelerator/install/5.2.2/package/node_modules/alloy/bin/alloy:3:1) [DEBUG] at Module._compile (module.js:460:26) [DEBUG] at Object.Module._extensions..js (module.js:478:10) [DEBUG] at Module.load (module.js:355:32) [DEBUG] at Function.Module._load (module.js:310:12) [DEBUG] at Function.Module.runMain (module.js:501:10) [DEBUG] at startup (node.js:129:16) [DEBUG] at node.js:814:3 [ERROR] Alloy compiler failed
Launching Libgdx project to IPhonesimulator
Im trying to make sure my app works on IOS. And doing so by trying to launch it to a IPhonesimulator on my mac. doing: ./gradlew ios:launchIPhoneSimulator Makes my app start on the simulator, the standard splashscreen by libgdx appears and then it shuts down and nothing more happends. But when I build it ./gradlew ios:build ios:launchIPhoneSimulator I get these errors: 2015-06-12 17:39:36.226 IOSLauncher[730:16518] [debug] IOSApplication: iOS version: 8.3 2015-06-12 17:39:36.227 IOSLauncher[730:16518] [debug] IOSApplication: Running in 64-bit mode 2015-06-12 17:39:36.229 IOSLauncher[730:16518] [debug] IOSApplication: scale: 2.0 2015-06-12 17:39:36.347 IOSLauncher[730:16518] [debug] IOSApplication: Unscaled View: Portrait 375x667 2015-06-12 17:39:36.347 IOSLauncher[730:16518] [debug] IOSApplication: View: Portrait 750x1334 2015-06-12 17:39:36.348 IOSLauncher[730:16518] [debug] IOSGraphics: 750.0x1334.0, 2.0 2015-06-12 17:39:37.104 IOSLauncher[730:16518] [debug] IOSGraphics: Display: ppi=264, density=1.65 2015-06-12 17:39:37.631 IOSLauncher[730:16658] 17:39:37.614 ERROR: 98: Error '!obj' trying to fetch default input device's sample rate 2015-06-12 17:39:37.631 IOSLauncher[730:16658] 17:39:37.631 ERROR: 100: Error getting audio input device sample rate: '!obj' 2015-06-12 17:39:37.632 IOSLauncher[730:16658] 17:39:37.632 WARNING: 230: The input device is 0x0; '(null)' 2015-06-12 17:39:37.632 IOSLauncher[730:16658] 17:39:37.632 WARNING: 234: The output device is 0x26; 'AppleHDAEngineOutput:1B,0,1,2:0' 2015-06-12 17:39:37.632 IOSLauncher[730:16658] 17:39:37.632 ERROR: 296: error '!obj' 2015-06-12 17:39:37.632 IOSLauncher[730:16618] 17:39:37.632 ERROR: 296: error -66680 2015-06-12 17:39:37.633 IOSLauncher[730:16518] 17:39:37.632 ERROR: >aurioc> 806: failed: -10851 (enable 2, outf< 2 ch, 44100 Hz, Int16, inter> inf< 2 ch, 0 Hz, Int16, inter>) 2015-06-12 17:39:37.633 IOSLauncher[730:16618] 17:39:37.633 ERROR: 113: * * * NULL AQIONode object 2015-06-12 17:39:37.633 IOSLauncher[730:16518] OAL Error: +[ALWrapper openDevice:]: Could not open device (null) 2015-06-12 17:39:37.633 IOSLauncher[730:16518] OAL Error: -[ALDevice initWithDeviceSpecifier:]: : Failed to create OpenAL device (null) 2015-06-12 17:39:37.635 IOSLauncher[730:16518] OAL Error: +[ALWrapper closeDevice:]: Invalid Value (error code 0x0000a004) 2015-06-12 17:39:37.635 IOSLauncher[730:16618] 17:39:37.635 ERROR: 703: Can't make UISound Renderer 2015-06-12 17:39:37.636 IOSLauncher[730:16518] OAL Warning: -[OALAudioSession onAudioError:]: Received audio error notification, but last reset was 0.377221 seconds ago. Doing nothing. 2015-06-12 17:39:37.636 IOSLauncher[730:16518] OAL Error: -[OALSimpleAudio initWithSources:]: : Could not create OpenAL device 2015-06-12 17:39:37.656 IOSLauncher[730:16518] [error] IOSAudio: No OALSimpleAudio instance available, audio will not be availabe 2015-06-12 17:39:37.944 IOSLauncher[730:16518] [debug] IOSApplication: created 2015-06-12 17:39:39.155 IOSLauncher[730:16658] 17:39:39.155 ERROR: 296: error -66680 2015-06-12 17:39:39.156 IOSLauncher[730:16664] 17:39:39.156 ERROR: >aurioc> 806: failed: -10851 (enable 2, outf< 2 ch, 44100 Hz, Int16, inter> inf< 2 ch, 0 Hz, Int16, inter>) 2015-06-12 17:39:39.157 IOSLauncher[730:16664] OAL Error: +[ALWrapper openDevice:]: Could not open device (null) 2015-06-12 17:39:39.157 IOSLauncher[730:16664] OAL Error: -[ALDevice initWithDeviceSpecifier:]: : Failed to create OpenAL device (null) 2015-06-12 17:39:39.157 IOSLauncher[730:16664] OAL Error: +[ALWrapper closeDevice:]: Invalid Value (error code 0x0000a004) 2015-06-12 17:39:39.157 IOSLauncher[730:16664] OAL Warning: -[OALAudioSession onAudioError:]: Received audio error notification. Resetting audio session. BUILD SUCCESSFUL And here´s my IOSLauncher if its to any help.. public class IOSLauncher extends IOSApplication.Delegate { #Override protected IOSApplication createApplication() { IOSApplicationConfiguration config = new IOSApplicationConfiguration(); return new IOSApplication(new MainClass(null,null), config); } public static void main(String[] argv) { NSAutoreleasePool pool = new NSAutoreleasePool(); UIApplication.main(argv, null, IOSLauncher.class); pool.close(); } }
You simulator's audio output is borked. The openal audio toolkit is failing init which is causing everything to crash.