Photos app in ios 7.1 simulator not working - xcode5.1

i clean installed os x Yosemite yesterday and installed xcode 6. but unfortunately my old project require ios 7.1 so i delete xcode 6 and installed xcode 5.1.1. everything seems to be working fine but when i click on Photos app in simulator, it stuck on white screen as screen shows first when lunching app. I tried to reset content & setting but no luck. then i uninstall xcode completely including ~/Library/Caches/com.apple.dt.Xcode, ~/Library/Developer, ~/Library/Application Support/iPhone Simulator directory and files manually and reinstalled xcode 5.1.1 but problem with Photos app not solved.
So please help me to solve this problem. do i missed something?, do i have to completely erase and reinstall mac to get working again or there is a compatibility problem in Yosemite with xcode 5.1.1.
Also i know that i can install 7.1 simulator in xcode 6 but it will require some extra changes in my code as xcode 6. ios 8 simulator in xcode 6 has no problem like this. (sorry i am new here and i can't attach screenshot because don't have 10 points)
error was :
Oct 30 11:34:38 CS02-MAC.local SpringBoard[4941] <Warning>: BBServer: data provider "com.apple.mobileslideshow" has been unresponsive for 60 seconds.
Oct 30 11:34:46 CS02-MAC.local assetsd[4998] <Notice>: PLMigrationLog <t:0xb016de0> Failed to fetch path to uuid mappings 21 unable to open database file
Oct 30 11:34:46 CS02-MAC.local assetsd[4998] <Notice>: PLMigrationLog <t:0xb016de0> No store file to move aside at "/Users/css/Library/Application Support/iPhone Simulator/7.1/Media/PhotoData/Photos.sqlite"
Oct 30 11:34:46 CS02-MAC.local assetsd[4998] <Notice>: PLMigrationLog <t:0xb016de0> Failed to open store /Users/css/Library/Application Support/iPhone Simulator/7.1/Media/PhotoData/Photos.sqlite with options {
NSPersistentStoreFileProtectionKey = NSFileProtectionNone;
NSReadOnlyPersistentStoreOption = 1;
NSSQLitePersistWALOption = 1;
NSSQLitePragmasOption = {
"journal_mode" = WAL;
};
}. Requires new rebuilt database (Error Domain=NSCocoaErrorDomain Code=260 "The operation couldn’t be completed. (Cocoa error 260.)")
Oct 30 11:34:46 CS02-MAC.local assetsd[4998] <Error>: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'This NSPersistentStoreCoordinator has no persistent stores. It cannot perform a save operation.'

Problem solved.
I open the log by Debug->Open system log and investigate the problem and came to know that the file 'Photos.sqlite' was not found. I manually copied that file from another mac to '▸ Users ▸ [username] ▸ Library ▸ Application Support ▸ iPhone Simulator ▸ 7.1 ▸ Media ▸ PhotoData'.
After that Photos app working properly.
Hope this will help someone.

Another, easier method (especially if you don't have the file elsewhere), is that you can also just create a blank file called Photos.sqlite and place it in ▸ Users ▸ [username] ▸ Library ▸ Application Support ▸ iPhone Simulator ▸ 7.1 ▸ Media ▸ PhotoData
(eg: run this from the terminal:)
touch "/Users/[username]/Library/Application Support/iPhone Simulator/7.1/Media/PhotoData/Photos.sqlite"
That worked for me.

Related

unable to authorize org in vs code

Starting SFDX: Authorize an Org
16:31:02.833 sfdx force:auth:web:login --setalias VSCodePlayground --instanceurl https://login.salesforce.com --setdefaultusername
Node.js is only supported on Windows 8.1, Windows Server 2012 R2, or higher.
Setting the NODE_SKIP_PLATFORM_CHECK environment variable to 1 skips this
check, but Node.js might not execute correctly. Any issues encountered on
unsupported platforms will not be fixed.16:31:02.897 sfdx force:auth:web:login --setalias VSCodePlayground --instanceurl https://login.salesforce.com --setdefaultusername
ended with exit code 216

QEMU PIPE error in Android Studio Bumblebee

I'm trying to implement a function that updates the textview every 30 ms as it repeats a division multiple times. However, the emulator's screen is stuck at showing 60 (the numerator) instead of the quotient.
** the 4 lines of error codes**
E/wifi_forwarder: qemu_pipe_open_ns:62: Could not connect to the 'pipe:qemud:wififorward' service: Invalid argument
E/wifi_forwarder: RemoteConnection failed to initialize: RemoteConnection failed to open pipe
E/netmgr: qemu_pipe_open_ns:62: Could not connect to the 'pipe:qemud:network' service: Invalid argument
E/netmgr: Failed to open QEMU pipe 'qemud:network': Invalid argument
Here are some methods I've tried but didn't work and the above error codes kept repeating itself
updating the CMAKE and NDK of the SDK manager
lowering the min SDK from 19 to 17
adding android:usesCleartextTraffic="true" in the manifest in application
mainactivity.kt
mainactivity.kt-screenshot
manifest.xml
androidmanifest-screen

Flutter Web - error output points to JS file instead of dart file

I have a Flutter Web project, and when an error is thrown, I can't open the dart file where the error was thrown, because the error line points to a JS file:
Launching lib\main.dart on Chrome in debug mode...
Waiting for connection from debug service on Chrome...
This app is linked to the debug service: ws://127.0.0.1:63045/gOvW2paMrLg=/ws
Debug service listening on ws://127.0.0.1:63045/gOvW2paMrLg=/ws
Running with sound null safety
Debug service listening on ws://127.0.0.1:63045/gOvW2paMrLg=/ws
Error: Invalid argument(s): A value must be provided. Supported values: 0, 1
at Object.throw_ [as throw] (http://localhost:53846/dart_sdk.js:5061:11)
at Object._$36enumDecode [as _$enumDecode] (http://localhost:53846/packages/web_app/core/models/pessoa/pessoa.dart.lib.js:482:17)
at Object._$36PessoaFromJson [as _$PessoaFromJson] (http://localhost:53846/packages/web_app/core/models/pessoa/pessoa.dart.lib.js:473:54)
at Function.fromJson (http://localhost:53846/packages/web_app/core/models/pessoa/pessoa.dart.lib.js:375:21)
at http://localhost:53846/packages/web_app/repository/pessoa_repository.dart.lib.js:60:193
at repository.RepositoryGetter.new.getRecurso (http://localhost:53846/packages/web_app/repository/repository.dart.lib.js:33:18)
at getRecurso.next (<anonymous>)
at http://localhost:53846/dart_sdk.js:38640:33
at _RootZone.runUnary (http://localhost:53846/dart_sdk.js:38511:59)
at _FutureListener.thenAwait.handleValue (http://localhost:53846/dart_sdk.js:33713:29)
at handleValueCallback (http://localhost:53846/dart_sdk.js:34265:49)
at Function._propagateToListeners (http://localhost:53846/dart_sdk.js:34303:17)
at _Future.new.[_completeWithValue] (http://localhost:53846/dart_sdk.js:34151:23)
at async._AsyncCallbackEntry.new.callback (http://localhost:53846/dart_sdk.js:34172:35)
at Object._microtaskLoop (http://localhost:53846/dart_sdk.js:38778:13)
at _startMicrotaskLoop (http://localhost:53846/dart_sdk.js:38784:13)
at http://localhost:53846/dart_sdk.js:34519:9
How can I make it to show the dart file where the error occurred, instead of a JS file?
I'm using Flutter Channel stable 2.5.2, Android Studio version 2020.3.
I have found a workaround for this issue.
You basically have to install a third-party patch; it will translate the paths in JS and point to the right line in dart file.
Download the patch and follow the instructions here: https://github.com/obeobe/flutter-web-exception-mapper
Optionally you can see trace of dart files in the browser.
Make sure you have source maps enabled in your browser.
got the answer from this link on github

jsreport failing on looking up extensions

So I recently started working on a linux machine (ubuntu 16.04) and followed the installation instructions here http://jsreport.net/downloads/. When I run npm start --production I get
2016-09-13T16:51:57.134Z - info: Initializing jsreport in production mode using configuration file prod.config.json
2016-09-13T16:51:57.138Z - info: Setting process based strategy for rendering. Please visit http://jsreport.net/learn/configuration for information how to get more performance.
2016-09-13T16:51:57.146Z - info: Searching for available extensions in /home/ross/rifiniti/optimo_ui/
2016-09-13T16:51:57.152Z - info: Extensions location cache not found, crawling directories
2016-09-13T16:51:57.317Z - error: Error occured during reporter init Error: ENOENT, no such file or directory '/home/ross/rifiniti/optimo_ui/ember/tmp/tree_merger-tmp_dest_dir-2yGnPLMA.tmp/optimo-ui/config'
at Error (native)
at Object.fs.statSync (fs.js:801:18)
at /home/ross/rifiniti/optimo_ui/node_modules/jsreport/node_modules/jsreport-core/lib/util/util.js:51:21
at Array.forEach (native)
at Object.exports.walkSync (/home/ross/rifiniti/optimo_ui/node_modules/jsreport/node_modules/jsreport-core/lib/util/util.js:44:10)
at /home/ross/rifiniti/optimo_ui/node_modules/jsreport/node_modules/jsreport-core/lib/extensions/locationCache.js:50:20
From previous event:
at /home/ross/rifiniti/optimo_ui/node_modules/jsreport/node_modules/jsreport-core/lib/reporter.js:90:8
From previous event:
at Reporter.init (/home/ross/rifiniti/optimo_ui/node_modules/jsreport/node_modules/jsreport-core/lib/reporter.js:69:30)
at Reporter.reporter.init (/home/ross/rifiniti/optimo_ui/node_modules/jsreport/lib/extendInit.js:8:21)
at Object.<anonymous> (/home/ross/rifiniti/optimo_ui/server.js:1:85)
And I have no idea why. It was working fine on mac but now it is looking for this non-existent tmp file in ember. I'm at a loss, any help would be greatly appreciated!
SOLVED!
All I had to do was remove the tmp directory in ember and it worked.

How to release resource \AppData\Local\Temp\shelljs_60d55c70cdc922162f4b without removing antivirus or reinstalling node?

I'm running Ionic2 to build windows app. but it is giving me following error:
shell.js: internal error
Error: EBUSY: resource busy or locked, open 'C:\Users\edge\AppData\Local\Temp\shelljs_60d55c70cdc922162f4b'
at Error (native)
at Object.fs.openSync (fs.js:640:18)
at Object.fs.writeFileSync (fs.js:1333:33)
at execSync (C:\Users\edge\AppData\Roaming\npm\node_modules\ionic\node_modules\shelljs\src\exec.js:67:57)
at Object._exec (C:\Users\edge\AppData\Roaming\npm\node_modules\ionic\node_modules\shelljs\src\exec.js:179:12)
at Object.exec (C:\Users\edge\AppData\Roaming\npm\node_modules\ionic\node_modules\shelljs\src\common.js:168:23)
at Object.gatherGulpInfo (C:\Users\edge\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\lib\info.js:201:24)
at Object.t (C:\Users\edge\AppData\Roaming\npm\node_modules\ionic\lib\utils\stats.js:148:15)
at Object.run (C:\Users\edge\AppData\Roaming\npm\node_modules\ionic\lib\cli.js:135:16)
at Object.<anonymous> (C:\Users\edge\AppData\Roaming\npm\node_modules\ionic\bin\ionic:13:10)
I sow a same error:
Ionic run android - Internal Error
But I don't want to remove my antivirus and reinstall nodeJS.
But when I restart my system and immediately after I run the command It works(Possibly some process takes time to execute which one access this resource)
Snapshot of process running on my system are as follows:
I faced the same issue , and resolved it by uninstalling bytefence anti malware . it actually use the same resource mentioned above .(I checked in dell laptop)

Resources