Getting bogged down in generics
I have several similar Adapter classes and I am trying to refactor up to a common abstract class. My class needs to hang on to an array of "model" objects. When I initialize that array I seem to be forced to accept a warning. I suppose this is fine, but I suspect the warning is trying to tell me there's a better way. I could declare the array as the NamedModel type instead of the ModelType, but that seems bad because I want to express that these will always be of the more restrictive class (hopefully this makes sense).
Here's my code:
public abstract class NamedModelAdapter<ModelType extends NamedModel> extends BaseAdapter {
private ModelType[] mModels;
private Map<Integer, ModelType> mModelsAsAMap;
public NamedModelAdapter(Context context, Cursor cursor) {
// this gives an error "Cannot create generic array of ModelType"
// mModels = new ModelType[cursor.getCount()];
// this gives a warning "Unchecked cast from NamedModel[] to ModelType[]
mModels = (ModelType[]) new NamedModel[cursor.getCount()];
// this gives an error "Cannot instantiate the type Map<Integer, ModelType>"
//mModelsAsAMap = new Map<Integer, ModelType>(cursor.getCount());
// stuff deleted
}{code}
Looking this over, I'm getting the strong feeling I'm missing something. Please go easy on me, I'm still new to Java :-).
As Walter indicated, generics and arrays do not mix well.
public abstract class NamedModelAdapter<T extends NamedModel> extends Object {
private final T[] modelsAsArray;
private final List<T> modelsAsList;
private final Map<Integer, T> modelsAsMap;
public NamedModelAdapter(final Context context, final Cursor cursor) {
modelsAsArray = createGenericArray(cursor.getCount());
modelsAsList = new ArrayList<T>();
modelsAsMap = new HashMap<Integer, T>();
* Note the following is inadvisable. Mixing generics and arrays is generally bad.
* @param length Desired length of array
* @return T[] Unsafe generic array
@SuppressWarnings("unchecked")
private T[] createGenericArray(final int length)
return (T[]) new NamedModel[length];
}- Saish
Similar Messages
-
Lightroom 5.2 running Video (MOV) sometimes gets bogged down with dynamiclinkmediaserer.exe taking up 88% of the cpu time. This was a bug in Lightroom 4. When will it be fixed?
Running the script by python2 solves it for me:
su - mythtv -c "nice -n 19 python2 /usr/bin/tv_grab_nl_py --output ~/listings.xml"
Best regards,
Cedric -
My MacBook is almost two years old and has started running really slow. It gets bogged down when it is running different programs at the same time, like Safari and Pages. It didn't react this way until recently. Any advice would be very welcome.
Launch Disk Utility and select the icon of the internal drive (the drive itself, not the volume icons below it.) Is the SMART status "Verified?" If not, replace the drive immediately. If the status is "Verified," the drive may still be failing. Back up all data, if you haven't already done so. Reinstall Mac OS X, then run Software Update. Test with all wired peripherals disconnected. If it's still slow, you have a hardware problem.
Mac OS X 10.6 Help: Reinstalling Mac OS X -
My Mac crashed today for the first time in the seven years I have owned it. I was working in Photoshop. It had been getting slower and slower in Photoshop. Now I can't start the computer at all. Using the Installer CD, I can't get through to use the Disk Utility to try to fix it. The computer gets bogged down in disk utility "gathering disk information." I can't get past this to reach the first aid tab. The little icon just keeps going round and round. Any advice would be much appreciated. Thanks.
You may have had a hard drive failure. Have you been hearing any unusual sounds? Have you been getting messages about a full hard drive?
Will it boot in Safe Mode? See What is Safe Boot, Safe Mode? (Mac OS X)
http://docs.info.apple.com/article.html?artnum=107392 Takes a while to run, but it usually "fixes" problems.
Resolve startup issues and perform disk maintenance with Disk Utility and fsck
http://docs.info.apple.com/article.html?artnum=106214
Cheers, Tom -
This is a ridiculous, Microsoft like, workaround. Please address this in an update or someone please tell me what I'm doing wrong to cause this and how to correct it without completely wiping out my phone every 2 weeks.
other files is not garbage it's podcasts and storage used by apps and the likes
you keep getting them because you keep installing stuff that take up the space -
I am Windows 8. When downloading the free trial of LR5 i get a message that my SmartScreen cannot be accessed. I click "Run Anyways". The file downloads and when I execute it, the installation/download remains hung up trying to reach servers. Can anyone help with this? Thanks.
Koombassi what specific error are you receiving?
-
I was hoping that some one could help with my Final Cut Pro 7 question.
I have the an 8 Core 6 gigs of ram. 8TB 7200rpm. Editing all in HD with XDCam footage.
I am strarting to get bogged down when I am edtting my videos. Does any body know how to clean up the system so I am running more efficient in final cut pro 7? My main video files are on one drive and the preview files are set to another drive. Main install of FCP7 is on my Main Drive.
Can you help?
SteveHI
Me again.
And all External Hard Disks - formatted as Mac OS Extended (hfs) ? - Mine are (and journaled).
Select one - and click on it's icon on DeskTop/Finder
press [cmd+I]
read - formatted as
UNIX / DOS / FAT32 / Mac Exchange - works for most other things BUT NOT FOR VIDEO !
New - NTFS ??????? (WINDOW standard today) - need special programs to be able to be read and written too
Yours Bengt W -
I was hoping that some one could help with my Final Cut Pro 7 question.
I have the an 8 Core 6 gigs of ram. 8TB 7200rpm. Editing all in HD with XDCam footage.
I am strarting to get bogged down when I am edtting my videos. Does any body know how to clean up the system so I am running more efficient in final cut pro? My main video files are on one drive and the preview files are set to another drive.
Can you help?
SteveHi
And this is FinalCut Express forum !
But I guess that Your Main / Start-Up / Boot / Mac OS Hard disk is filling up ?
You need more than 25GB free space on this ONE and may be 4-5 times more if You are working with HD-Material.
Even though You use two more external hard disks for "Main video" and "Preview files" the space need to be on Start-Up Hard Disk for Mac OS and application .temp files - as they can not be addressed elsewhere !
Yours Guessing - Bengt W (I use both FCE (4.0.x) and FCP (6.0.6)) -
NetBeans 6.9 bogging down as code gets bigger
Sorry if this is slightly off-topic, but I notice that NetBeans IDE seems to increasingly bog down the longer my code gets...that is, my typing out-paces the changes in the editor (and I'm not a fast-typist!). Is there a tweak I can do to help this?
You can tweak the jvm options in etc/netbeans.conf with Xms, PermGen, ...
It can avoid freeze.
Edited by: Galien on 25 août 2010 15:19 -
Is there a way to not have photo stream photos save to my iphone? i have many shared photo streams hoping to not bog down my iphone space. but alas the photos are are being saved on my iphone.
For example. When I share a photo stream with my dad and brother and mother all the photos they are putting in the shared photo stream are taking up space on my iphone! I'll be out of space in no time at this rate.hi, this thread already deals with the issue:
How can I prevent getting calls from number that are not in my address book? -
IMac starting to really bog down
By bog down i mean that every operation has a noticeable lag time before initiating.
I have a mid-2010 iMac
3.2 GHz Intel Core i3
512 MB ATI Radeon graphic card
12 GB 1333MHz DDR3 in 4-4-2-2 formation
I'm using about 75% of my 1 TB hardrive (more than i should I know but not enough to be slowing down machine this dramatically).
The problem was most apparent initially when running Aperture and I'd be getting a lot of spinning beach balls and painfully slow processing. I rebuilt the aperture library but that didn't seem to fix the problem. The interesting thing is the activity monitor is not showing any obvious problems. Plenty of RAM available (over 8 gb), CPU is only running at about 10% on average with no noticeable spikes when trying to open a program nor any evidence of CPU Load spikes in the histogram.
The steps I've taken:
1. verified disk
2. repaired permissions
3. rebuilt aperture library
4. closed all applications and tried to open one at a time. all are slow to open.
Here is my most recent system diagnostic report from the Console. I really can't make sense of it unfortunately but was hoping some more technically literate folks out there might see something obvious that points to an identifiable problem.
Process:
coresymbolicationd [719]
Path:
/System/Library/PrivateFrameworks/CoreSymbolication.framework/coresymbolicationd
Identifier:
coresymbolicationd
Version:
141
Code Type:
X86-64 (Native)
Parent Process: launchd [1]
Responsible:
coresymbolicationd [719]
User ID:
0
Date/Time:
2013-12-30 18:51:57.908 -0600
OS Version:
Mac OS X 10.9.1 (13B42)
Report Version: 11
Anonymous UUID: C37F79B1-DC99-0E09-DA0E-38B0F635A22C
Crashed Thread: 0 Dispatch queue: com.apple.root.default-overcommit-priority
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: 0x000000000000000a, 0x0000000109e85000
VM Regions Near 0x109e85000:
VM_ALLOCATE
0000000109a00000-0000000109a89000 [ 548K] rw-/rw- SM=PRV
--> mapped file
0000000109a89000-0000000109ec5000 [ 4336K] r--/rwx SM=S/A /System/Library/Caches/com.apple.coresymbolicationd/data
mapped file
0000000109ec5000-000000010a301000 [ 4336K] rw-/rwx SM=S/A /System/Library/Caches/com.apple.coresymbolicationd/grow.3X7N0TQ
Thread 0 Crashed:: Dispatch queue: com.apple.root.default-overcommit-priority
0 libsystem_platform.dylib
0x00000001075bf0de _platform_memmove$VARIANT$Nehalem + 254
1 coresymbolicationd
0x00000001067983bc 0x106791000 + 29628
2 coresymbolicationd
0x00000001067987e9 0x106791000 + 30697
3 coresymbolicationd
0x0000000106792a23 0x106791000 + 6691
4 libxpc.dylib
0x000000010762d510 _xpc_connection_call_event_handler + 58
5 libxpc.dylib
0x000000010762c123 _xpc_connection_mach_event + 2124
6 libdispatch.dylib
0x00000001072ebafe _dispatch_client_callout4 + 9
7 libdispatch.dylib
0x00000001072ec3b8 _dispatch_mach_msg_invoke + 143
8 libdispatch.dylib
0x00000001072ea633 _dispatch_queue_drain + 359
9 libdispatch.dylib
0x00000001072eb69e _dispatch_mach_invoke + 154
10 libdispatch.dylib
0x00000001072e9fa3 _dispatch_root_queue_drain + 75
11 libdispatch.dylib
0x00000001072eb193 _dispatch_worker_thread2 + 40
12 libsystem_pthread.dylib
0x00000001075dcef8 _pthread_wqthread + 314
13 libsystem_pthread.dylib
0x00000001075dffb9 start_wqthread + 13
Thread 1:: Dispatch queue: com.apple.root.default-overcommit-priority
0 libsystem_kernel.dylib
0x00000001074c7caa __sigsuspend_nocancel + 10
1 libdispatch.dylib
0x00000001072f27e4 _dispatch_sigsuspend + 21
2 libdispatch.dylib
0x00000001072f27cf _dispatch_sig_thread + 45
Thread 2:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib
0x00000001074c8662 kevent64 + 10
1 libdispatch.dylib
0x00000001072ea43d _dispatch_mgr_invoke + 239
2 libdispatch.dylib
0x00000001072ea152 _dispatch_mgr_thread + 52
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000109ec5000 rbx: 0x00000001091df198 rcx: 0x0000000000000010 rdx: 0x000000000003f1c9
rdi: 0x000000010a2c0fd0 rsi: 0x0000000109e84fd0 rbp: 0x00000001090c03c0 rsp: 0x00000001090c03c0
r8: 0x0000000000000005 r9: 0x000000000b6e0000 r10: 0x0000000000000001 r11: 0x000000000043c000
r12: 0x00000001091df198 r13: 0x00007f8b604175e0 r14: 0x0000000109a89000 r15: 0x0000000109ec5000
rip: 0x00000001075bf0de rfl: 0x0000000000010202 cr2: 0x0000000109e85000
Logical CPU:
2
Error Code:
0x00000004
Trap Number:
14
Binary Images:
0x106791000 -
0x10679bfff coresymbolicationd (141) <C459E6EE-7EE9-36F8-BCE9-7FC72C550772> /System/Library/PrivateFrameworks/CoreSymbolication.framework/coresymbolication d
0x1067a3000 -
0x106823fff com.apple.CoreSymbolication (3.0 - 141) <B018335C-698B-3F87-AF1C-6115C4FA8954> /System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSy mbolication
0x106843000 -
0x106895fff libc++.1.dylib (120) <4F68DFC5-2077-39A8-A449-CAC5FDEE7BDE> /usr/lib/libc++.1.dylib
0x1068f5000 -
0x1068f6ff7 libSystem.B.dylib (1197.1.1) <BFC0DC97-46C6-3BE0-9983-54A98734897A> /usr/lib/libSystem.B.dylib
0x106904000 -
0x106933fff com.apple.DebugSymbols (106 - 106) <E1BDED08-523A-36F4-B2DA-9D5C712F0AC7> /System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbol s
0x106955000 -
0x106b3aff7 com.apple.CoreFoundation (6.9 - 855.11) <E22C6A1F-8996-349C-905E-96C3BBE07C2F> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x106caf000 -
0x106d19ff7 com.apple.framework.IOKit (2.0.1 - 907.1.13) <C1E95F5C-B79B-31BE-9F2A-1B25163C1F16> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x106d4f000 -
0x106d4ffff com.apple.CoreServices (59 - 59) <7A697B5E-F179-30DF-93F2-8B503CEEEFD5> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x106d55000 -
0x106f02f27 libobjc.A.dylib (551.1) <AD7FD984-271E-30F4-A361-6B20319EC73B> /usr/lib/libobjc.A.dylib
0x106f29000 -
0x106f6bff7 libauto.dylib (185.5) <F45C36E8-B606-3886-B5B1-B6745E757CA8> /usr/lib/libauto.dylib
0x106f83000 -
0x106f84ff7 libDiagnosticMessagesClient.dylib (100) <4CDB0F7B-C0AF-3424-BC39-495696F0DB1E> /usr/lib/libDiagnosticMessagesClient.dylib
0x106f8a000 -
0x107142ff3 libicucore.A.dylib (511.27) <003B6C21-CBD1-3486-9A1D-030ADF5FA061> /usr/lib/libicucore.A.dylib
0x1071ec000 -
0x1071fdff7 libz.1.dylib (53) <42E0C8C6-CA38-3CA4-8619-D24ED5DD492E> /usr/lib/libz.1.dylib
0x107203000 -
0x10722cff7 libc++abi.dylib (48) <8C16158F-CBF8-3BD7-BEF4-022704B2A326> /usr/lib/libc++abi.dylib
0x10723d000 -
0x107241ff7 libcache.dylib (62) <BDC1E65B-72A1-3DA3-A57C-B23159CAAD0B> /usr/lib/system/libcache.dylib
0x107246000 -
0x107250fff libcommonCrypto.dylib (60049) <8C4F0CA0-389C-3EDC-B155-E62DD2187E1D> /usr/lib/system/libcommonCrypto.dylib
0x107261000 -
0x107268fff libcompiler_rt.dylib (35) <4CD916B2-1B17-362A-B403-EF24A1DAC141> /usr/lib/system/libcompiler_rt.dylib
0x107275000 -
0x10727cff3 libcopyfile.dylib (103) <5A881779-D0D6-3029-B371-E3021C2DDA5E> /usr/lib/system/libcopyfile.dylib
0x107283000 -
0x1072d1fff libcorecrypto.dylib (161.1) <F3973C28-14B6-3006-BB2B-00DD7F09ABC7> /usr/lib/system/libcorecrypto.dylib
0x1072e7000 -
0x107301fff libdispatch.dylib (339.1.9) <46878A5B-4248-3057-962C-6D4A235EEF31> /usr/lib/system/libdispatch.dylib
0x10731e000 -
0x107321ff7 libdyld.dylib (239.3) <62F4D752-4089-31A8-8B73-B95A68893B3C> /usr/lib/system/libdyld.dylib
0x10732d000 -
0x10732dff7 libkeymgr.dylib (28) <3AA8D85D-CF00-3BD3-A5A0-E28E1A32A6D8> /usr/lib/system/libkeymgr.dylib
0x107337000 -
0x10733eff7 liblaunch.dylib (842.1.4) <FCBF0A02-0B06-3F97-9248-5062A9DEB32C> /usr/lib/system/liblaunch.dylib
0x10734b000 -
0x107350fff libmacho.dylib (845) <1D2910DF-C036-3A82-A3FD-44FF73B5FF9B> /usr/lib/system/libmacho.dylib
0x107357000 -
0x107359ff7 libquarantine.dylib (71) <7A1A2BCB-C03D-3A25-BFA4-3E569B2D2C38> /usr/lib/system/libquarantine.dylib
0x107365000 -
0x107366ffb libremovefile.dylib (33) <3543F917-928E-3DB2-A2F4-7AB73B4970EF> /usr/lib/system/libremovefile.dylib
0x10736c000 -
0x10737dff7 libsystem_asl.dylib (217.1.4) <655FB343-52CF-3E2F-B14D-BEBF5AAEF94D> /usr/lib/system/libsystem_asl.dylib
0x10738e000 -
0x10738fff7 libsystem_blocks.dylib (63) <FB856CD1-2AEA-3907-8E9B-1E54B6827F82> /usr/lib/system/libsystem_blocks.dylib
0x107395000 -
0x10741eff7 libsystem_c.dylib (997.1.1) <61833FAA-7281-3FF9-937F-686B6F20427C> /usr/lib/system/libsystem_c.dylib
0x107451000 -
0x107453ff3 libsystem_configuration.dylib (596.12) <C4F633D9-94C8-35D9-BB2D-84C5122533C7> /usr/lib/system/libsystem_configuration.dylib
0x10745a000 -
0x107462fff libsystem_dnssd.dylib (522.1.11) <270DCF6C-502D-389A-AA9F-DE4624A36FF7> /usr/lib/system/libsystem_dnssd.dylib
0x10746f000 -
0x107496ffb libsystem_info.dylib (449.1.3) <7D41A156-D285-3849-A2C3-C04ADE797D98> /usr/lib/system/libsystem_info.dylib
0x1074b2000 -
0x1074ceff7 libsystem_kernel.dylib (2422.1.72) <D14913DB-47F1-3591-8DAF-D4B4EF5F8818> /usr/lib/system/libsystem_kernel.dylib
0x1074f7000 -
0x107526fd2 libsystem_m.dylib (3047.16) <B7F0E2E4-2777-33FC-A787-D6430B630D54> /usr/lib/system/libsystem_m.dylib
0x107538000 -
0x107553ff7 libsystem_malloc.dylib (23.1.10) <FFE5C472-B23A-318A-85BF-77CDE61900D1> /usr/lib/system/libsystem_malloc.dylib
0x107562000 -
0x107589ff7 libsystem_network.dylib (241.3) <8B1E1F1D-A5CC-3BAE-8B1E-ABC84337A364> /usr/lib/system/libsystem_network.dylib
0x1075a9000 -
0x1075b2ff3 libsystem_notify.dylib (121) <52571EC3-6894-37E4-946E-064B021ED44E> /usr/lib/system/libsystem_notify.dylib
0x1075bb000 -
0x1075c1ff7 libsystem_platform.dylib (24.1.4) <331BA4A5-55CE-3B95-99EB-44E0C89D7FB8> /usr/lib/system/libsystem_platform.dylib
0x1075da000 -
0x1075e1ff7 libsystem_pthread.dylib (53.1.4) <AB498556-B555-310E-9041-F67EC9E00E2C> /usr/lib/system/libsystem_pthread.dylib
0x1075f2000 -
0x1075f3ff7 libsystem_sandbox.dylib (278.10) <A47E7E11-3C76-318E-B67D-98972B86F094> /usr/lib/system/libsystem_sandbox.dylib
0x1075fb000 -
0x1075fffff libsystem_stats.dylib (93.1.26) <B9E26A9E-FBBC-3938-B8B7-6CF7CA8C99AD> /usr/lib/system/libsystem_stats.dylib
0x10760a000 -
0x10760bfff libunc.dylib (28) <62682455-1862-36FE-8A04-7A6B91256438> /usr/lib/system/libunc.dylib
0x107613000 -
0x107618ff7 libunwind.dylib (35.3) <78DCC358-2FC1-302E-B395-0155B47CB547> /usr/lib/system/libunwind.dylib
0x107622000 -
0x107646fff libxpc.dylib (300.1.17) <4554927A-9467-365C-91F1-5A116989DD7F> /usr/lib/system/libxpc.dylib
0x107664000 -
0x1077d4ff6 com.apple.CFNetwork (673.0.3 - 673.0.3) <42CFC3DB-35C8-3652-AF37-4BCC73D8BDEF> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x1078db000 -
0x107bc5fff com.apple.CoreServices.CarbonCore (1077.14 - 1077.14) <B00BEB34-A9F5-381F-99FD-11E405768A9A> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonC ore.framework/Versions/A/CarbonCore
0x107c44000 -
0x107cd3fff com.apple.Metadata (10.7.0 - 800.12.2) <A9F5D471-8732-3F95-A4A2-33864B92A181> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Metadata
0x107d3e000 -
0x107db5fff com.apple.CoreServices.OSServices (600.4 - 600.4) <36B2B009-C35E-3F21-824E-E0D00E7808C7> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServi ces.framework/Versions/A/OSServices
0x107e5d000 -
0x107ecafff com.apple.SearchKit (1.4.0 - 1.4.0) <B9B8D510-A27E-36B0-93E9-17146D9E9045> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchK it.framework/Versions/A/SearchKit
0x107f0f000 -
0x107f6affb com.apple.AE (665.5 - 665.5) <BBA230F9-144C-3CAB-A77A-0621719244CD> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.fram ework/Versions/A/AE
0x107f9e000 -
0x108067fff com.apple.LaunchServices (572.23 - 572.23) <8D955BDE-2C4C-3DD4-B4D7-2D916174FE1D> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchS ervices.framework/Versions/A/LaunchServices
0x1080df000 -
0x108108fff com.apple.DictionaryServices (1.2 - 208) <A539A058-BA57-35EE-AA08-D0B0E835127D> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Diction aryServices.framework/Versions/A/DictionaryServices
0x108131000 -
0x108141fff libbsm.0.dylib (33) <2CAC00A2-1352-302A-88FA-C567D4D69179> /usr/lib/libbsm.0.dylib
0x10814c000 -
0x1081afff7 com.apple.SystemConfiguration (1.13 - 1.13) <F05F4149-981B-380B-8F50-51CE804BBB89> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
0x1081ed000 -
0x108445ff1 com.apple.security (7.0 - 55471) <233831C5-C457-3AD5-AFE7-E3E2DE6929C9> /System/Library/Frameworks/Security.framework/Versions/A/Security
0x10858f000 -
0x108679fff libsqlite3.dylib (158) <00269BF9-43BE-39E0-9C85-24585B9923C8> /usr/lib/libsqlite3.dylib
0x108690000 -
0x108777ff7 libxml2.2.dylib (26) <A1DADD11-89E5-3DE4-8802-07186225967F> /usr/lib/libxml2.2.dylib
0x1087b0000 -
0x1087bdff7 libxar.1.dylib (202) <5572AA71-E98D-3FE1-9402-BB4A84E0E71E> /usr/lib/libxar.1.dylib
0x1087cb000 -
0x1087cffff libpam.2.dylib (20) <B93CE8F5-DAA8-30A1-B1F6-F890509513CB> /usr/lib/libpam.2.dylib
0x1087d7000 -
0x1087d7ffd libOpenScriptingUtil.dylib (157) <19F0E769-0989-3062-9AFB-8976E90E9759> /usr/lib/libOpenScriptingUtil.dylib
0x1087e2000 -
0x1087efff0 libbz2.1.0.dylib (29) <0B98AC35-B138-349C-8063-2B987A75D24C> /usr/lib/libbz2.1.0.dylib
0x1087f9000 -
0x1087fefff com.apple.DiskArbitration (2.6 - 2.6) <F8A47F61-83D1-3F92-B7A8-A169E0D187C0> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x10880e000 -
0x108815fff com.apple.NetFS (6.0 - 4.0) <8E26C099-CE9D-3819-91A2-64EA929C6137> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
0x10881f000 -
0x10882afff libkxld.dylib (2422.1.72) <C88EF3E6-B31F-3E12-BE9B-562D912BA733> /usr/lib/system/libkxld.dylib
0x108836000 -
0x108841ff7 com.apple.NetAuth (5.0 - 5.0) <C811E662-9EC3-3B74-808A-A75D624F326B> /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth
0x10884f000 -
0x108b4efff com.apple.Foundation (6.9 - 1056) <D608EDFD-9634-3573-9B7E-081C7D085F7A> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x108d8c000 -
0x108d8dfff liblangid.dylib (117) <9546E641-F730-3AB0-B3CD-E0E2FDD173D9> /usr/lib/liblangid.dylib
0x108d96000 -
0x108db1ff7 libCRFSuite.dylib (34) <FFAE75FA-C54E-398B-AA97-18164CD9789D> /usr/lib/libCRFSuite.dylib
0x108dbd000 -
0x108e21ff3 com.apple.datadetectorscore (5.0 - 354.0) <9ACF24B8-3268-3134-A5BC-D72C9371A195> /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDe tectorsCore
0x108e67000 -
0x108e6afff com.apple.TCC (1.0 - 1) <32A075D9-47FD-3E71-95BC-BFB0D583F41C> /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
0x108e71000 -
0x108e88fff com.apple.CFOpenDirectory (10.9 - 173.1.1) <3FB4D5FE-860B-3BDE-BAE2-3531D919EF10> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpen Directory.framework/Versions/A/CFOpenDirectory
0x108ea7000 -
0x108eb1ff7 com.apple.bsd.ServiceManagement (2.0 - 2.0) <2D27B498-BB9C-3D88-B05A-76908A8A26F3> /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManage ment
0x108ebc000 -
0x108ee4ffb libxslt.1.dylib (13) <C9794936-633C-3F0C-9E71-30190B9B41C1> /usr/lib/libxslt.1.dylib
0x7fff66cc6000 -
0x7fff66cf9817 dyld (239.3) <D1DFCF3F-0B0C-332A-BCC0-87A851B570FF> /usr/lib/dyld
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
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: 4500
thread_create: 0
thread_set_state: 0
VM Region Summary:
ReadOnly portion of Libraries: Total=35.3M resident=33.3M(94%) swapped_out_or_unallocated=2044K(6%)
Writable regions: Total=47.8M written=2120K(4%) resident=2688K(5%) swapped_out=0K(0%) unallocated=45.2M(95%)
REGION TYPE
VIRTUAL
===========
=======
Dispatch continuations
8192K
Kernel Alloc Once
4K
MALLOC
28.3M
MALLOC (admin)
16K
STACK GUARD
12K
Stack
65.1M
VM_ALLOCATE
572K
__DATA
3168K
__LINKEDIT
9892K
__TEXT
25.7M
__UNICODE
544K
mapped file
9808K
shared memory
4K
===========
=======
TOTAL
150.5M
From the looks of this report, it appears like on Thread 0 crashed. Unfortunately I'm not sure how to fix this.
Any help would be really appreciated. I'm kind of at my wits end here.
-RickIf you don't already have a current backup, back up all data before doing anything else. This procedure is a diagnostic test. It changes nothing, for better or worse, and therefore will not, in itself, solve your problem. The backup is necessary on general principle, not because of anything suggested in this comment. There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The procedure will help identify which such modifications you've installed, as well as some other aspects of the configuration that may be related to the problem.
Don’t be alarmed by the seeming complexity of these instructions — they’re easy to carry out. Here's a brief summary: In each of two steps, you copy a line of text from this web page into a window in another application. You wait about a minute. Then you paste some other text, which will have been copied automatically, back into a reply on this page. The sequence is copy; paste; paste again. That's all there is to it. Details follow.
You may have started the computer in "safe" mode. Preferably, these steps should be taken while booted in “normal” mode. If the system is now running in safe mode and is bootable in normal mode, reboot as usual. If it only boots in safe mode, use that.
Below are instructions to enter UNIX shell commands. They do nothing but produce human-readable output. However, you need to think carefully before running any program at the behest of a stranger on a public message board. If you question the safety of the procedure suggested here — which you should — search this site for other discussions in which it’s been followed without any report of ill effects. If you can't satisfy yourself that these instructions are safe, don't follow them.
The commands will line-wrap or scroll in your browser, but each one is really just a single long line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then copy it.
If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. Step 1 should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply.
Launch the Terminal application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign.
Step 1
Triple-click anywhere in the line of text below on this page to select it:
PB=/usr/libexec/PlistBuddy; PR () { [[ "$o" ]] && o=$(sed 's/^/ /' <<< "$o") && printf '\n%s:\n\n%s\n' "$1" "$o"; }; PC () { o=$(grep [^[:blank:]] "$2"); PR "$1"; }; PF () { o=$($PB -c Print "$2" | awk -F'= ' \/$3'/{print $2}'); PR "$1"; }; PN () { [[ $o -eq 0 ]] || printf "\n%s: %s\n" "$1" $o; }; { system_profiler SPSoftwareDataType | sed '8!d;s/^ *//'; o=$(system_profiler SPDiagnosticsDataType | sed '5,6!d'); fgrep -q P <<< "$o" && o=; PR "POST"; o=$(($(vm_stat | awk '/Pageo/{sub("\\.",""); print $2}')/256)); o=$((o>=1024?o:0)); PN "Pageouts (MiB)"; s=( $(sar -u 1 10 | sed '$!d') ); [[ ${s[4]} -lt 90 ]] && o=$( printf 'User %s%%\t\tSystem %s%%' ${s[1]} ${s[3]} ) || o=; PR "Total CPU usage"; [[ "$o" ]] && o=$(ps acrx -o comm,ruid,%cpu | sed '2!d'); PR "Max %CPU by process (name, UID, %)"; o=$(kextstat -kl | grep -v com\\.apple | cut -c53- | cut -d\< -f1); PR "Loaded extrinsic kernel extensions"; o=$(launchctl list | sed 1d | awk '!/0x|com\.apple|org\.(x|openbsd)|\.[0-9]+$/{print $3}'); PR "Loaded extrinsic user agents"; o=$(launchctl getenv DYLD_INSERT_LIBRARIES); PR "Inserted libraries"; PC "cron configuration" /e*/cron*; o=$(crontab -l | grep [^[:blank:]]); PR "User cron tasks"; PC "Global launchd configuration" /e*/lau*; PC "Per-user launchd configuration" ~/.lau*; PF "Global login items" /L*/P*/loginw* Path; PF "Per-user login items" L*/P*/*loginit* Name; PF "Safari extensions" L*/Saf*/*/E*.plist Bundle | sed 's/\..*$//;s/-[1-9]$//'; o=$(find ~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \) | wc -l); PN "Restricted user files"; cd; o=$(find -L /S*/L*/E* {,/}L*/{A*d,Compon,Ex,In,Keyb,Mail/Bu,P*P,Qu,Scripti,Servi,Spo}* -type d -name Contents -prune | while read d; do ID=$($PB -c 'Print :CFBundleIdentifier' "$d/Info.plist") || ID=; ID=${ID:-No bundle ID}; egrep -qv "^com\.apple\.[^x]|Accusys|ArcMSR|ATTO|HDPro|HighPoint|driver\.stex|hp-fax|JMicron|microsoft\.MDI|print|SoftRAID" <<< $ID && printf '%s\n\t(%s)\n' "${d%/Contents}" "$ID"; done); PR "Extrinsic loadable bundles"; o=$(find /u*/{,*/}lib -type f -exec sh -c 'file -b "$1" | grep -qw shared && ! codesign -v "$1"' {} {} \; -print); PR "Unsigned shared libraries"; o=$(system_profiler SPFontsDataType | egrep "Valid: N|Duplicate: Y" | wc -l); PN "Font problems"; for d in {,/}L*/{La,Priv,Sta}*; do o=$(ls -A "$d"); PR "$d"; done; } 2> /dev/null | pbcopy; echo $'\nStep 1 done'
Copy the selected text to the Clipboard by pressing the key combination command-C. Then click anywhere in the Terminal window and paste (command-V). I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
The command may take up to a few minutes to run, depending on how many files you have and the speed of the computer. Wait for the line "Step 1 done" to appear below what you entered. The output of the command will beautomatically copied to the Clipboard. All you have to do is paste into a reply to this message by pressing command-Vagain. Please don't copy anything from the Terminal window. No typing is involved in this step.
Step 2
Remember that you must be logged in as an administrator for this step. Do as in Step 1 with this line:
PR () { [[ "$o" ]] && o=$(sed 's/^/ /' <<< "$o") && printf '\n%s:\n\n%s\n' "$1" "$o"; }; { o=$(sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix\.cron)|org\.(amav|apac|calendarse|cups|dove|isc|ntp|post[fg]|x)/{print $3}'); PR "Loaded extrinsic daemons"; o=$(sudo defaults read com.apple.loginwindow LoginHook); PR "Login hook"; o=$(sudo crontab -l | grep [^[:blank:]]); PR "Root cron tasks"; o=$(syslog -k Sender kernel -k Message CReq 'GPU |hfs: Ru|I/O e|find tok|n Cause: -|NVDA\(|pagin|timed? ?o' | tail -n25 | awk '/:/{$4=""; print}'); PR "Log check"; } 2>&- | pbcopy; echo $'\nStep 2 done'
This time you'll be prompted for your login password, which you do have to type. Nothing will be displayed when you type it. Type it carefully and then press return. You may get a one-time warning to be careful. Heed that warning, but don't post it. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
You can then quit Terminal. Please note:
☞ Steps 1 and 2 are all copy-and-paste — type only your login password when prompted.
☞ When you type your password, you won't see what you're typing.
☞ If you don’t have a password, set one before taking Step 2. If that’s not possible, skip the step.
☞ Step 2 might not produce any output, in which case the Clipboard will be empty. Step 1 will always produce something.
☞ The commands don't change anything, and merely running them will do neither good nor harm.
☞ Remember to post the output of both steps (unless you had to skip Step 2.) It's already in the Clipboard after you complete each step. You don't have to copy it. Just paste into a reply
☞ If any personal information, such as your name or email address, appears in the output of either command, anonymize it before posting. Usually that won't be necessary.
☞ Don't post what you see in the Terminal window. The output is copied automatically to the Clipboard.
☞ Don't paste the output of Step 1 into the Terminal window. Paste it into a reply. -
Premiere Pro CC 2014 Crashing and Bogging Down on Documentary Film Project
We have been working in Premiere on this documentary film for months.
As we reach completion it is beginning to really bog down and crash a lot.
Equipment is
iMac 27 inch 3.5 GHz Intel Core i7 Late 2013 Model
Apple Cinema HD Display
32 GB 1600 Mhz DDR3 RAM
NVIDIA GeForce GTX 780M 4096 MB Graphics Card
1TB internal SSD Drive
We are running Premiere Pro CC 2014.0.1 and have remained there because we don't want to upgrade the software in the middle of the project.
The media is all on the external drive. It's a USB 3.0 connection. There is quite a lot of footage that we are working with.
We do have some After Effects comps that are linked in the project and we have exported the ones that are complete as QuickTimes to try to stop that from bogging us down.
Any advice on how we can manage this crashing and freezing problem would be much appreciated.
We don't have the cash to upgrade the computer and it has been working pretty well for us so far.
Here are things we have done:
Made a smaller timeline because we were working on one that was the entire movie.
Turned off the secondary monitor and unplugged it.
We are looking at moving the render cache off the external drive to a thunderbolt drive, but I'm concerned that this may take a long time.
Any recommendations would be greatly appreciated.Splitting up the read/write items is rather a key to getting smoother operation out of PrPro. Either that or putting things on a large RAID-0/5, this sort of thing is covered over on the
Tweaker's Page ...
http://ppbm7.com/index.php/tweakers-page
And I highly recommend you take a look. Their info isn't just "we think ... " ... but the results of many many carefully crafted test sequences run on many machines with all sorts of hardware bits & pieces. You can also register, download the PBM test and run it on your own machine. It takes only a little while to do so, and with the logger app that's included and posting the results back to them, you can get a very good breakdown on where your machine is doing ok ... and where any choke points are occurring.
I think this would be good for you right now ... you need to get stuff done, not guess & try things.
Neil -
What is the best way to save or collapse the work I have done on an image so I can get back to working at a good speed? I am guessing if I saved the image as a JPEG and reimported it that would add noise. There is probably a simple way to solve this. Any answers?
ThanksRobert,
There is still a known bug where LR (including 3.3RC) bogs down when large number of spots are utilized. Every system is different and most systems appear to not have this problem. Personally, on my system, cleaning up a BW scan will bog down when I add around 50 spots and become unbearable by 100 - sometimes even hanging for 30 seconds or more.
Some improvement was provided with the 3.3RC in that the hanging is less likely; however, the slowdown is still experienced and adding more spots once it gets to this phase is not an option.
If 3.3RC doesn't solve your problem, and space is not an issue, you might consider exporting (and automatically re-importing) in TIFF format. You will probably lose the least amount of detail and introduce the least amount of noise that way as opposed to a JPEG file. You can then continue working on the re-imported TIFF file as your original and you should be fine for a few more spots. I would probably delete the file you exported from so you don't get confused about which file is your image file (just my personal preference not to have two files of the same image unless they are VCs).
Also, I find that exiting and re-starting LR every 5 or so images while in Develop module can help but that is huge pain.
Best of luck. I am patiently awaiting updates to fix this issues once and for all.
Jeff -
Too many docked ScriptUI panels bog down interface?
Has anyone else run into this problem? I have about 10 ScriptUI panels docked around my AE interface. It seems like when I select a layer, it can take 3-5 seconds for the Effect control palette to appear.
Do Script UI panels slow down the entire AE CS4 interface?Navarro:
Having 10-12 ScriptUI panels docked is not known to cause a bog down of the application per se.
But it could be good performing a couple of tests.
For example, if you switch to a different workspace (also with the panels docked), do you still get this?
Does this happen with an empty (or nearly empty) project as well? Or it only happens when you have a lot of comps/viewers open?
If you switch to the "All panels" workspace (forget ScriptUI for a second), is it still slow? -
My MBP Retina, 15-inch, Late 2013 Bogging down
Hey Folks,
This is my first time posting here so please bare with me.
I use my computer strictly for Final Cut X and have gone 9 months with no an issue. This Season I've been using it and I've noticed within the first 15 mins of editing, I see my ram go from 10gb avail to 5gb. (I'm not running any more apps than before or doing heavy VFX.) After another 5 mins it gets down to 820mb available and I have to run CleanMemory to reset it back up to five.
Now, this is the 16gb with 500gb flash and shouldn't be bogging down hard enough to reset (like windows xp)..
Please Help?Pre-Mavericks
Open Activity Monitor in the Utilities folder. Select All Processes from the Processes dropdown menu. Click twice on the CPU% column header to display in descending order. If you find a process using a large amount of CPU time (>=70,) then select the process and click on the Quit icon in the toolbar. Click on the Force Quit button to kill the process. See if that helps. Be sure to note the name of the runaway process so you can track down the cause of the problem.
Mavericks and later
Open Activity Monitor in the Utilities folder. Select All Processes from the View menu. Click on the CPU tab in the toolbar. Click twice on the CPU% column header to display in descending order. If you find a process using a large amount of CPU time (>=70,) then select the process and click on the Quit icon in the toolbar. Click on the Force Quit button to kill the process. See if that helps. Be sure to note the name of the runaway process so you can track down the cause of the problem.
I would also check what is consuming memory steadily. It definitely sounds like you have an issue that needs taking care of. Open the Console in the Utilities folder, select All Diagnostic Messages, and see if there is a steady stream of error messages being posted into the log.
Maybe you are looking for
-
Hindi characters' display in swing components on macintosh
I have created a swing application that handles devanagari script.(script for Hindi language).The application works perfectly in windows but in apple macintosh there is a problem with the reordering of characters in text componets. Reordering means s
-
HT1600 i have a mid 2010 7.1 mac book pro will apple tv mirroring work with it?
I have a 13in mid 2010 7.1 mac book pro. Will apple tv and mirroring work with it?
-
Why won't iCloud message go away?
My ipad has a message on the main screen that says: This ipad has not been backed up in 4 weeks. The message will not go away when I push OK & it will not let me shut the ipad down. It is esentially frozen. I have gone in to manage my icloud to a
-
My Macbook Pro -upgraded to 1TB-after HD crashed- (mid 2009) with Time Capsule 1TB backup. My Mac is just not running well with Yosemite, it seems to have really slowed it down. I don't know if it's worth buying OS X Server, in fact I just became awa
-
What happened to my screen? PLEASE HELP!!!*****
So i dropped my iphone 5 and cracked the screen. Ive been looking for a replacement and there are concerns i have. The screen is cracked but the touch portion and images are just fine. There is no alter to the LCD display or anything out of the ordin