I had tried all the things, after all that I found out in error.svclog file that client able to hit the service but service throwing EndPointNotFoundException.
I had also seen the server log to check the status and it is display below.
#Software: Microsoft Internet Information Services 7.5
#Version: 1.0
#Date: 2014-02-22 09:22:35
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status time-taken
2014-02-22 09:22:35 192.168.10.9 GET /HostWCF/Service.svc - 80 - 192.168.10.10 Mozilla/5.0+(Windows+NT+6.2;+WOW64;+rv:27.0)+Gecko/20100101+Firefox/27.0 200 0 0 60360
2014-02-22 09:22:54 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 52
2014-02-22 09:23:04 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 52
2014-02-22 09:30:24 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 1994
2014-02-22 09:30:34 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 73
2014-02-22 09:30:44 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 52
2014-02-22 09:30:54 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 54
2014-02-22 09:31:04 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 69
2014-02-22 09:31:14 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 67
2014-02-22 09:31:24 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 62
2014-02-22 09:31:34 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 67
2014-02-22 09:31:44 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 50
2014-02-22 09:31:54 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 59
2014-02-22 09:32:04 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 50
2014-02-22 09:32:14 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 54
2014-02-22 09:32:24 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 51
2014-02-22 09:32:34 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 53
2014-02-22 09:32:44 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 82
2014-02-22 09:32:54 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 79
2014-02-22 09:33:04 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 60
2014-02-22 09:33:14 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 52
2014-02-22 09:33:24 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 76
2014-02-22 09:33:34 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 49
2014-02-22 09:33:44 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 52
2014-02-22 09:33:54 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 57
2014-02-22 09:34:04 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 72
2014-02-22 09:34:14 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 51
2014-02-22 09:34:24 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 60
2014-02-22 09:34:34 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 62
2014-02-22 09:34:44 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 55
2014-02-22 09:34:54 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 95
2014-02-22 09:35:04 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 55
2014-02-22 09:35:14 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 54
2014-02-22 09:35:24 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 58
2014-02-22 09:35:34 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 57
2014-02-22 09:35:44 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 53
2014-02-22 09:35:54 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 67
2014-02-22 09:36:04 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 54
2014-02-22 09:36:14 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 60
2014-02-22 09:36:24 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 65
2014-02-22 09:36:34 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 59
2014-02-22 09:36:44 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 58
2014-02-22 09:36:54 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 56
2014-02-22 09:37:04 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 51
2014-02-22 09:37:14 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 70
2014-02-22 09:37:24 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 61
2014-02-22 09:37:34 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 61
2014-02-22 09:37:44 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 65
2014-02-22 09:37:54 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 56
2014-02-22 09:38:04 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 69
2014-02-22 09:38:14 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 55
2014-02-22 09:38:24 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 51
2014-02-22 09:38:34 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 54
2014-02-22 09:38:44 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 51
2014-02-22 09:38:54 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 57
2014-02-22 09:39:04 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 62
2014-02-22 09:39:14 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 55
2014-02-22 09:39:24 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 56
2014-02-22 09:39:34 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 55
2014-02-22 09:39:44 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 56
2014-02-22 09:39:54 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 56
2014-02-22 09:40:04 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 56
2014-02-22 09:40:14 192.168.10.9 POST /hostwcf/service.svc - 80 - 192.168.10.10 - 202 0 0 67
my service web.config file
<?xml version="1.0"?>
<configuration>
<configSections>
</configSections>
<system.diagnostics>
<sources>
<source name="System.ServiceModel"
switchValue="Information, ActivityTracing"
propagateActivity="true" >
<listeners>
<add name="xml"/>
</listeners>
</source>
<source name="System.ServiceModel.MessageLogging">
<listeners>
<add name="xml"/>
</listeners>
</source>
<source name="myUserTraceSource"
switchValue="Information, ActivityTracing">
<listeners>
<add name="xml"/>
</listeners>
</source>
</sources>
<sharedListeners>
<add name="xml"
type="System.Diagnostics.XmlWriterTraceListener"
initializeData="Error.svclog" />
</sharedListeners>
</system.diagnostics>
<connectionStrings>
<add name="Connection" connectionString="Server=.\SQLSERVER; Database=databaseDB;Trusted_Connection=True;"/>
</connectionStrings>
<system.web>
<!--<webServices>
<protocols>
<add name ="HttpGet"/>
<add name="HttpPost"/>
<add name="HttpPostLocalhost"/>
<add name="HttpSoap"/>
</protocols>
</webServices>-->
<compilation debug="true" targetFramework="4.0" />
</system.web>
<system.webServer>
<!--<defaultDocument>
<files>
<add value="Service.svc"/>
</files>
</defaultDocument>-->
</system.webServer>
<system.serviceModel>
<bindings>
<wsDualHttpBinding>
<binding name="DualNewBinding">
<!--receiveTimeout="01:10:00" sendTimeout="01:10:00" closeTimeout="02:00:00" openTimeout ="01:40:00" useDefaultWebProxy ="True" >-->
<security mode="None">
<message clientCredentialType ="None"/>
</security>
</binding>
</wsDualHttpBinding>
</bindings>
<services>
<service
behaviorConfiguration="HostWCF.ServiceBehavior" name="HostWCF.Service" >
<endpoint address="" binding="wsDualHttpBinding" bindingConfiguration="DualNewBinding" contract="HostWCF.IService">
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
<host>
<baseAddresses>
<add baseAddress="http://localhost/HostWCF"/>
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="HostWCF.ServiceBehavior">
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="true" />
<serviceCredentials >
<windowsAuthentication allowAnonymousLogons ="true"/>
</serviceCredentials>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
</system.serviceModel>
</configuration>
my client app.congif file
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<connectionStrings>
<add name="connection" connectionString="Server=.\SQLEXPRESS;Database=TISDB;Trusted_Connection=True;"/>
</connectionStrings>
<system.serviceModel>
<bindings>
<wsDualHttpBinding>
<binding name="WSDualHttpBinding_IService" openTimeout="00:10:00" closeTimeout ="00:20:00" bypassProxyOnLocal ="false" receiveTimeout ="00:08:00" sendTimeout ="00:10:00" useDefaultWebProxy ="true">
<security mode="None">
<message clientCredentialType ="None"/>
</security>
</binding>
</wsDualHttpBinding>
</bindings>
<client>
<endpoint address="http://192.168.10.9/hostwcf/service.svc" binding="wsDualHttpBinding"
bindingConfiguration="WSDualHttpBinding_IService" contract="ServiceReference.IService"
name="WSDualHttpBinding_IService">
<identity>
<dns value="192.168.10.9" />
</identity>
</endpoint>
</client>
</system.serviceModel>
</configuration>
WCF was designed to be secure by default. And that security implies that not only the server needs to know who is calling it, but also that the client needs to be sure that the server it is talking to is indeed the server it is excpecting to be.
The thing that is used for this check is the service identity. For a client to trust the server, the identity of that server needs to match the identity definition of the client.
In your configs the service defines the identity as follows:
<identity>
<dns value="localhost"/>
</identity>
and the client as follows:
<identity>
<dns value="192.168.10.9" />
</identity>
Those identities don't match and thus the client is not talking to the correct endpoint ==> endpoint not found exception.
Solution:
Make the identities match, or remove the identities altogether if that security check is not required.
Related
I have an ILP which is ok with small problems. Gurobi easily converged and returned correct answers for these small problems. But when it comes to a little larger problems, it does not converge after even 2 days. I have changed many parameters like "MIPFocus", "ImproveStartGap", "Cuts", "ImproveStartTime" and even "Heuristics"., but nothing happens.
Could you please help me with this issue? Is there any way to reach convergence sooner at the cost of loosing optimally? what's the problem?
Best, Amir
FYI, this ILP has10135 integer variables (most of them, 10044, are binary ). the below is log when I stop the program:
Academic license - for non-commercial use only
Optimize a model with 131848 rows, 20748 columns and 577874 nonzeros
Variable types: 0 continuous, 20748 integer (20657 binary)
Coefficient statistics:
Matrix range [1e+00, 1e+05]
Objective range [4e+01, 8e+01]
Bounds range [1e+00, 1e+00]
RHS range [1e+00, 3e+05]
Presolve removed 23245 rows and 10613 columns
Presolve time: 1.67s
Presolved: 108603 rows, 10135 columns, 526215 nonzeros
Variable types: 0 continuous, 10135 integer (10044 binary)
Presolved: 10135 rows, 118738 columns, 536350 nonzeros
Root relaxation: objective 9.360000e+03, 10205 iterations, 0.79 seconds
Total elapsed time = 5.06s
Nodes | Current Node | Objective Bounds | Work
Expl Unexpl | Obj Depth IntInf | Incumbent BestBd Gap | It/Node Time
0 0 9360.00000 0 299 - 9360.00000 - - 5s
0 0 9360.00000 0 223 - 9360.00000 - - 8s
0 2 9360.00000 0 150 - 9360.00000 - - 23s
30 31 9360.00000 9 188 - 9360.00000 - 64.8 25s
207 208 9360.00000 64 263 - 9360.00000 - 14.4 31s
400 399 9360.00000 109 298 - 9360.00000 - 10.3 36s
587 584 9360.00000 156 319 - 9360.00000 - 9.5 41s
804 794 9360.00000 209 363 - 9360.00000 - 8.8 47s
918 905 9360.00000 238 303 - 9360.00000 - 8.6 50s
1159 1133 9360.00000 294 288 - 9360.00000 - 8.3 56s
1281 1247 9360.00000 319 371 - 9360.00000 - 8.2 60s
1534 1471 9360.00000 23 208 - 9360.00000 - 8.1 66s
1809 1736 9360.00000 237 223 - 9360.00000 - 8.0 71s
1811 1737 9360.00000 89 670 - 9360.00000 - 8.0 87s
1812 1738 9360.00000 192 572 - 9360.00000 - 8.0 96s
1813 1739 9360.00000 93 572 - 9360.00000 - 8.0 109s
1814 1742 9360.00000 11 371 - 9360.00000 - 9.3 117s
1865 1775 9360.00000 19 399 - 9360.00000 - 9.5 120s
1967 1840 9360.00000 31 395 - 9360.00000 - 9.1 125s
2180 1984 9360.00000 56 435 - 9360.00000 - 9.1 130s
2383 2121 9360.00000 84 408 - 9360.00000 - 9.4 136s
2495 2197 9360.00000 97 403 - 9360.00000 - 9.5 140s
2712 2337 9360.00000 124 425 - 9360.00000 - 9.6 147s
2829 2416 9360.00000 137 448 - 9360.00000 - 9.6 151s
2957 2505 9360.00000 153 421 - 9360.00000 - 9.6 155s
3196 2660 9360.00000 183 389 - 9360.00000 - 9.6 164s
3291 2721 9360.00000 195 412 - 9360.00000 - 9.6 168s
3383 2789 9360.00000 208 424 - 9360.00000 - 9.8 173s
3475 2850 9360.00000 221 427 - 9360.00000 - 10.0 177s
3590 2909 9360.00000 235 433 - 9360.00000 - 10.0 182s
3716 2990 9360.00000 250 424 - 9360.00000 - 10.1 187s
3830 3054 9360.00000 266 398 - 9360.00000 - 10.2 192s
3987 3151 9360.00000 285 400 - 9360.00000 - 10.2 197s
4079 3212 9360.00000 299 409 - 9360.00000 - 10.2 203s
4294 3385 infeasible 327 - 9360.00000 - 10.2 208s
4489 3316 9360.00000 61 404 - 9360.00000 - 10.3 213s
4688 3528 9360.00000 104 410 - 9360.00000 - 10.4 219s
4953 3715 9360.00000 144 409 - 9360.00000 - 10.2 225s
5175 3864 9360.00000 187 413 - 9360.00000 - 10.2 232s
5455 4022 9360.00000 221 427 - 9360.00000 - 10.0 239s
5683 4172 9360.00000 264 397 - 9360.00000 - 10.0 246s
5891 4318 9360.00000 300 395 - 9360.00000 - 10.0 254s
6211 4448 9360.00000 58 421 - 9360.00000 - 9.9 261s
6508 4642 9360.00000 110 472 - 9360.00000 - 9.9 268s
6856 4855 9360.00000 183 452 - 9360.00000 - 9.8 276s
7127 5068 9360.00000 231 397 - 9360.00000 - 9.9 285s
7508 5455 9360.00000 299 450 - 9360.00000 - 9.8 294s
7906 5732 9360.00000 350 400 - 9360.00000 - 9.7 303s
8105 5876 9360.00000 353 405 - 9360.00000 - 9.9 313s
8347 6093 9360.00000 362 366 - 9360.00000 - 10.1 323s
8657 6374 9360.00000 75 424 - 9360.00000 - 10.2 334s
8962 6663 9360.00000 135 506 - 9360.00000 - 10.3 345s
9380 7037 9360.00000 209 463 - 9360.00000 - 10.3 356s
9722 7363 9360.00000 302 445 - 9360.00000 - 10.4 368s
10215 7802 9360.00000 48 392 - 9360.00000 - 10.3 381s
10594 8171 9360.00000 128 488 - 9360.00000 - 10.3 394s
11142 8706 9360.00000 231 488 - 9360.00000 - 10.2 408s
11727 9203 infeasible 348 - 9360.00000 - 10.1 421s
12126 9573 9360.00000 112 489 - 9360.00000 - 10.2 435s
12631 10058 9360.00000 235 471 - 9360.00000 - 10.2 448s
13057 10467 9360.00000 313 509 - 9360.00000 - 10.3 461s
13442 10831 9360.00000 361 428 - 9360.00000 - 10.4 475s
14060 11357 9360.00000 62 399 - 9360.00000 - 10.3 489s
14714 11805 9360.00000 149 428 - 9360.00000 - 10.2 502s
15229 12295 9360.00000 258 458 - 9360.00000 - 10.1 516s
15794 12838 9360.00000 355 420 - 9360.00000 - 10.1 530s
16395 13384 infeasible 434 - 9360.00000 - 10.0 542s
16849 13726 9360.00000 124 497 - 9360.00000 - 10.1 555s
17364 14277 9360.00000 233 457 - 9360.00000 - 10.0 568s
17855 14758 9360.00000 327 432 - 9360.00000 - 10.0 582s
18446 15223 9360.00000 62 403 - 9360.00000 - 9.9 595s
19030 15662 9360.00000 152 434 - 9360.00000 - 9.9 608s
19502 16142 9360.00000 239 453 - 9360.00000 - 9.8 620s
20069 16702 9360.00000 355 432 - 9360.00000 - 9.8 633s
20643 17143 9360.06655 434 415 - 9360.00000 - 9.7 646s
21219 17545 9360.00000 89 493 - 9360.00000 - 9.7 658s
21694 17994 9360.00000 183 526 - 9360.00000 - 9.7 671s
22237 18517 9360.00000 302 462 - 9360.00000 - 9.6 683s
22822 18976 infeasible 383 - 9360.00000 - 9.5 695s
23246 19366 9360.00000 117 503 - 9360.00000 - 9.6 707s
23765 19879 9360.00000 212 484 - 9360.00000 - 9.5 720s
24139 20275 9360.00000 283 415 - 9360.00000 - 9.6 732s
24747 20695 infeasible 330 - 9360.00000 - 9.5 743s
25278 21165 9360.00000 90 434 - 9360.00000 - 9.5 755s
25714 21591 9360.00000 173 462 - 9360.00000 - 9.5 767s
26243 22075 9360.00000 296 396 - 9360.00000 - 9.4 779s
26830 22569 9360.00000 96 413 - 9360.00000 - 9.4 791s
27303 22968 9360.00000 188 438 - 9360.00000 - 9.4 802s
27692 23352 9360.00000 287 440 - 9360.00000 - 9.4 815s
28208 23839 9360.00000 50 370 - 9360.00000 - 9.4 826s
28753 24256 9360.00000 131 464 - 9360.00000 - 9.4 838s
29199 24630 9360.00000 71 408 - 9360.00000 - 9.4 850s
29586 25000 9360.00000 157 475 - 9360.00000 - 9.4 862s
30104 25497 9360.00000 247 428 - 9360.00000 - 9.3 874s
30660 25890 9600.00000 302 375 - 9360.00000 - 9.3 886s
30986 26191 9600.00000 309 399 - 9360.00000 - 9.5 899s
31374 26569 9600.00000 324 314 - 9360.00000 - 9.5 911s
31748 26902 9600.00000 324 346 - 9360.00000 - 9.5 923s
32341 27292 9360.00000 80 495 - 9360.00000 - 9.4 934s
32762 27690 9360.00000 159 528 - 9360.00000 - 9.5 947s
33288 28176 9360.00000 283 472 - 9360.00000 - 9.4 959s
33816 28698 infeasible 375 - 9360.00000 - 9.4 971s
34019 28872 9360.00000 382 355 - 9360.00000 - 9.5 982s
34249 29030 9360.00000 384 340 - 9360.00000 - 9.6 994s
34477 29168 9420.00000 407 370 - 9360.00000 - 9.7 1006s
34799 29473 infeasible 419 - 9360.00000 - 9.7 1018s
35163 29804 9360.00000 89 435 - 9360.00000 - 9.7 1031s
35749 30322 9360.00000 198 452 - 9360.00000 - 9.7 1044s
36357 30790 infeasible 295 - 9360.00000 - 9.6 1057s
36844 31266 9360.00000 147 473 - 9360.00000 - 9.6 1070s
37359 31755 9360.00000 226 463 - 9360.00000 - 9.6 1082s
37761 32178 9360.00000 328 494 - 9360.00000 - 9.6 1096s
38309 32576 9362.39601 376 479 - 9360.00000 - 9.6 1108s
38922 33011 infeasible 402 - 9360.00000 - 9.6 1120s
39313 33349 9360.00000 123 434 - 9360.00000 - 9.6 1132s
39891 33867 9360.00000 245 461 - 9360.00000 - 9.6 1145s
40260 34232 9360.00000 321 487 - 9360.00000 - 9.6 1157s
40817 34704 9360.00000 87 444 - 9360.00000 - 9.6 1169s
41151 35031 9360.00000 121 521 - 9360.00000 - 9.6 1182s
41732 35534 9360.00000 231 492 - 9360.00000 - 9.6 1196s
42304 35973 infeasible 321 - 9360.00000 - 9.6 1200s
Explored 42427 nodes (435518 simplex iterations) in 1200.24 seconds
Thread count was 8 (of 8 available processors)
Solution count 0
update:
even with a very small problem and continuous variables instead of integer variables,(469 binary and 15 continuous variables ), gurobi stuck in searching for feasible solutions. I think there must be something to do inorder to prevent this problem and make gurobi converge! the log for small problem:
Academic license - for non-commercial use only
Optimize a model with 2342 rows, 1206 columns and 8898 nonzeros
Variable types: 15 continuous, 1191 integer (1191 binary)
Coefficient statistics:
Matrix range [1e+00, 1e+05]
Objective range [1e+00, 8e+02]
Bounds range [1e+00, 2e+01]
RHS range [1e+00, 3e+05]
Presolve removed 849 rows and 722 columns
Presolve time: 0.01s
Presolved: 1493 rows, 484 columns, 6414 nonzeros
Variable types: 15 continuous, 469 integer (469 binary)
Root relaxation: objective 2.160000e+03, 168 iterations, 0.00 seconds
Nodes | Current Node | Objective Bounds | Work
Expl Unexpl | Obj Depth IntInf | Incumbent BestBd Gap | It/Node Time
0 0 2160.00000 0 19 - 2160.00000 - - 0s
0 0 2160.00000 0 44 - 2160.00000 - - 0s
0 0 2160.00000 0 57 - 2160.00000 - - 0s
0 0 2160.00000 0 46 - 2160.00000 - - 0s
0 0 2160.00000 0 31 - 2160.00000 - - 0s
0 0 2160.00000 0 28 - 2160.00000 - - 0s
0 0 2160.00000 0 49 - 2160.00000 - - 0s
0 0 2160.00000 0 42 - 2160.00000 - - 0s
0 0 2160.00000 0 59 - 2160.00000 - - 0s
0 0 2160.00000 0 41 - 2160.00000 - - 0s
0 2 2160.00000 0 41 - 2160.00000 - - 0s
10135 1630 2160.00000 36 12 - 2160.00000 - 8.7 5s
22631 2543 infeasible 40 - 2160.00000 - 12.8 10s
34157 2675 2160.00000 40 43 - 2160.00000 - 14.5 15s
47547 2906 infeasible 43 - 2160.00000 - 15.1 20s
61008 3057 2160.00000 36 30 - 2160.00000 - 15.3 25s
70483 3488 2160.00000 42 20 - 2160.00000 - 15.7 30s
81159 4625 2160.00000 34 23 - 2160.00000 - 15.8 35s
94894 6051 infeasible 43 - 2160.00000 - 16.0 40s
106278 6567 2160.00000 47 32 - 2160.00000 - 16.1 45s
118415 7154 2160.00000 40 9 - 2160.00000 - 16.4 50s
130278 7148 2160.00000 40 14 - 2160.00000 - 16.7 55s
141753 8045 2160.00000 38 21 - 2160.00000 - 16.8 60s
153321 8861 2160.00000 37 17 - 2160.00000 - 17.0 65s
163315 9327 infeasible 37 - 2160.00000 - 17.2 70s
174712 9284 2160.00000 43 22 - 2160.00000 - 17.4 75s
186989 9750 2160.00000 40 14 - 2160.00000 - 17.3 80s
199567 9980 2160.00000 47 17 - 2160.00000 - 17.3 85s
213163 10894 2160.00000 41 11 - 2160.00000 - 17.0 90s
225271 11352 infeasible 34 - 2160.00000 - 16.9 95s
237961 11732 2160.00000 45 7 - 2160.00000 - 16.8 100s
250844 11855 infeasible 46 - 2160.00000 - 16.7 105s
265028 13816 infeasible 51 - 2160.00000 - 16.8 110s
278712 14912 2160.00000 41 14 - 2160.00000 - 16.8 115s
290532 15964 2160.00000 43 27 - 2160.00000 - 16.8 120s
302974 17402 infeasible 44 - 2160.00000 - 16.8 125s
315002 18302 infeasible 42 - 2160.00000 - 16.8 130s
327409 19249 2160.00000 37 23 - 2160.00000 - 16.8 135s
339414 20128 2160.00000 50 16 - 2160.00000 - 16.8 140s
352135 20727 infeasible 45 - 2160.00000 - 16.8 145s
367381 21309 2160.00000 38 13 - 2160.00000 - 16.8 150s
7660856 348402 infeasible 49 - 2160.00000 - 15.9 3205s
7672378 348678 2160.00000 33 21 - 2160.00000 - 15.9 3210s
7685454 348828 2160.00000 37 18 - 2160.00000 - 15.9 3215s
7697794 348947 2160.00000 49 2 - 2160.00000 - 15.9 3220s
7707262 349326 2160.92308 40 31 - 2160.00000 - 15.9 3225s
7718583 349877 infeasible 40 - 2160.00000 - 15.9 3230s
7729574 350121 infeasible 40 - 2160.00000 - 15.9 3235s
7741901 350412 infeasible 44 - 2160.00000 - 15.9 3240s
7751253 350381 2160.00000 49 32 - 2160.00000 - 15.9 3245s
7763103 350489 2160.00000 37 26 - 2160.00000 - 15.9 3250s
7773839 350681 2160.00000 38 27 - 2160.00000 - 15.9 3255s
7786222 351217 infeasible 45 - 2160.00000 - 15.9 3260s
7797384 351803 infeasible 46 - 2160.00000 - 15.9 3265s
7808953 352474 2160.00000 51 12 - 2160.00000 - 15.9 3270s
7820291 353040 2160.00000 49 8 - 2160.00000 - 15.8 3275s
7831847 353412 2160.00000 54 2 - 2160.00000 - 15.8 3280s
7842631 354132 infeasible 50 - 2160.00000 - 15.8 3285s
7852436 354657 infeasible 47 - 2160.00000 - 15.8 3290s
7861503 354637 2160.00000 39 24 - 2160.00000 - 15.8 3295s
7874356 354907 2160.00000 41 9 - 2160.00000 - 15.8 3300s
Interrupt request received
Cutting planes:
Learned: 7
Gomory: 11
Cover: 18
Implied bound: 2
Clique: 10
MIR: 99
StrongCG: 6
Flow cover: 243
Inf proof: 6
Explored 7885073 nodes (124881023 simplex iterations) in 3303.69 seconds
Thread count was 8 (of 8 available processors)
Solution count 0
Solve interrupted
Best objective -, best bound 2.159999999845e+03, gap -
Have you tried to to turn off the presolve?
set presolve to 2 and try. Sometimes the presolve step prunes some feasible region in order to thighten the formulation and as consequence only a few feasible solutions remain in the model.
In many instances turning off the presolver helps.
Bests
I'm trying to fill the path of this Path in an SVG which is a hexagon.
<Path d="M205 3521 l-200 -117 -2 -240 -3 -239 204 -117 204 -116 204 118 203 118 0 243 0 243 -195 113 c-107 62 -199 112 -205 112 -5 0 -100 -53 -210 -118z m395 -38 l170 -98 -3 -214 -2 -214 -178 -104 -179 -104 -179 103 -179 102 0 211 1 210 177 102 c97 56 183 103 189 103 7 0 89 -44 183 -97z" fill="red" />
I'm using React Native but the syntax is the same. Filling the path red applies to the outside border.
You already have a path with a fill. However it's a path with a hole.
One solution to your problem would be deleting everything in your path's d attribute from m395 -38 to the end. (This is the hole part)
svg{border:1px solid;width:85vh;}
<svg viewBox ="0 2690 820 950">
<path id = "kk"
d="M205 3521
l-200 -117
-2 -240
-3 -239
204 -117
204 -116
204 118
203 118
0 243
0 243
-195 113
c-107 62 -199 112 -205 112
-5 0 -100 -53 -210 -118z
" fill="red" />
</svg>
However if you need to keep the actual shape and fill it with a different color, in this case you may copy everything in your path's d from the beginning to the first z and create an other path using the copied part as the d attribute. Put this new path before the old one.
svg{border:1px solid;width:85vh}
<svg viewBox ="0 2690 820 950">
<path d="M205 3521
l-200 -117
-2 -240
-3 -239
204 -117
204 -116
204 118
203 118
0 243
0 243
-195 113
c-107 62 -199 112 -205 112
-5 0 -100 -53 -210 -118z" fill="skyBlue"/>
<path
d="M205 3521
l-200 -117
-2 -240
-3 -239
204 -117
204 -116
204 118
203 118
0 243
0 243
-195 113
c-107 62 -199 112 -205 112
-5 0 -100 -53 -210 -118z
m395 -38
l170 -98
-3 -214
-2 -214
-178 -104
-179 -104
-179 103
-179 102
0 211
1 210
177 102
c97 56 183 103 189 103
7 0 89 -44 183 -97z" fill="red" />
</svg>
I'm working on a php project where I need to perform some pdf manipulation.
I need to "convert" all colors of a vector file(pdf) into one very specific color (a spot color in my case.)
Here is an illustrated example
The input file can vary, and it can contain any color (so I can't just convert all "red" or "green" to my target color).
I have a fair idea on how to do it on a raster image using imagemagick's composite, but I'm unsure if it's even possible with a vector image.
My first approach was to create a template pdf, with a filled rectangle in the desired color. My hope was then to use ghostscript to somehow apply the input file as a mask on said template. But I assume this wouldn't be possible as vector files are different from raster images.
My second approach was to use ghostscript to convert all colors (regardless of colorspace) into the desired color. But after extensive googling, I've only found solutions that convert from one colorspace to another (i.e. sRGB to CMYK, CMYK to gray-scale, etc.)
I'm not much of a designer, so perhaps I am simply lacking the proper "terms" for these "actions".
TL;DR
I am looking for a library/tool that can help me "convert" all colors of a vector file(pdf) into one very specific color.
The input file may vary (various shapes and colors), but will always be a pdf file without any fonts.
Output must remain as a vector file (read, no rasterisation.)
I have root access on a VPS running linux (centos7, I assume that is irrelevant.)
You could try rasterising at a high resolution and converting the colours with ImageMagick, then re-vectorising with potrace
So, if you had a PDF, you would do:
convert -density 288 document.pdf ...
As you have provided a PNG, I will do:
convert image.png -fill black -fuzz 10% +opaque white pgm:- | potrace -b svg -o result.svg -
which gives this SVG:
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
width="800.000000pt" height="450.000000pt" viewBox="0 0 800.000000 450.000000"
preserveAspectRatio="xMidYMid meet">
<metadata>
Created by potrace 1.13, written by Peter Selinger 2001-2015
</metadata>
<g transform="translate(0.000000,450.000000) scale(0.100000,-0.100000)"
fill="#000000" stroke="none">
<path d="M4800 4324 c0 -50 -2 -55 -17 -49 -84 35 -140 -17 -130 -119 7 -77
70 -120 122 -82 16 11 21 11 33 0 7 -8 18 -12 23 -9 5 4 9 76 9 161 0 147 -1
154 -20 154 -18 0 -20 -7 -20 -56z m-22 -90 c46 -32 18 -134 -38 -134 -25 0
-40 29 -40 79 0 39 19 71 43 71 7 0 23 -7 35 -16z"/>
<path d="M4926 4358 c-9 -12 -16 -35 -16 -50 0 -18 -5 -28 -15 -28 -8 0 -15
-7 -15 -15 0 -8 7 -15 15 -15 12 0 15 -17 15 -89 0 -89 6 -105 38 -94 8 3 12
31 12 94 0 88 0 89 25 89 16 0 25 6 25 15 0 9 -9 15 -25 15 -21 0 -25 5 -25
30 0 30 7 34 43 30 13 -1 18 4 15 17 -5 29 -72 30 -92 1z"/>
<path d="M3347 4364 c-4 -4 -7 -16 -7 -26 0 -14 6 -19 23 -16 14 2 22 10 22
23 0 20 -25 32 -38 19z"/>
<path d="M4170 4310 c0 -23 -4 -30 -20 -30 -11 0 -20 -7 -20 -15 0 -8 9 -15
20 -15 18 0 20 -7 20 -80 0 -74 2 -81 25 -96 32 -21 75 -12 75 17 0 16 -4 19
-21 14 -30 -10 -39 9 -39 83 l0 62 30 0 c20 0 30 5 30 15 0 10 -10 15 -30 15
-27 0 -30 3 -30 30 0 23 -4 30 -20 30 -16 0 -20 -7 -20 -30z"/>
<path d="M3345 4278 c-3 -8 -4 -59 -3 -114 2 -80 6 -99 18 -99 12 0 15 19 15
109 0 79 -4 111 -12 113 -7 3 -15 -2 -18 -9z"/>
<path d="M3453 4283 c-9 -3 -13 -34 -13 -108 0 -74 4 -105 13 -108 29 -10 37
6 37 78 0 57 4 75 18 88 46 42 72 10 72 -91 0 -54 4 -71 15 -76 22 -8 26 10
23 104 -3 77 -5 84 -31 104 -24 17 -32 19 -59 8 -18 -6 -38 -8 -47 -3 -9 5
-22 6 -28 4z"/>
<path d="M3687 4283 c-4 -3 -7 -71 -7 -150 l0 -143 25 0 c23 0 25 4 25 45 0
42 2 45 19 35 33 -17 61 -11 92 19 24 25 29 37 29 81 0 95 -51 141 -119 107
-25 -13 -31 -13 -35 -1 -6 15 -19 18 -29 7z m122 -47 c19 -22 23 -78 9 -106
-29 -55 -88 -26 -88 43 0 62 48 100 79 63z"/>
<path d="M3927 4284 c-4 -4 -7 -45 -7 -91 0 -76 2 -86 25 -108 27 -28 61 -32
92 -10 18 13 22 13 27 0 3 -8 12 -12 21 -9 13 5 15 24 13 113 -3 98 -4 106
-23 106 -18 0 -20 -8 -23 -75 -4 -94 -28 -128 -72 -100 -10 6 -16 34 -20 91
-5 75 -15 101 -33 83z"/>
<path d="M4432 4282 c-9 -7 -12 -43 -10 -148 3 -136 4 -139 26 -142 20 -3 22
1 22 41 l0 45 35 -11 c31 -9 39 -8 63 10 37 27 54 83 42 136 -15 68 -64 94
-120 63 -20 -12 -26 -12 -35 0 -6 8 -15 10 -23 6z m122 -54 c22 -31 20 -81 -3
-109 -19 -23 -21 -23 -48 -9 -24 13 -28 23 -31 62 -3 39 1 49 20 62 30 22 44
20 62 -6z"/>
<path d="M4310 4096 c0 -30 30 -43 47 -21 16 23 5 45 -23 45 -19 0 -24 -5 -24
-24z"/>
<path d="M4046 3795 l-67 -141 -227 -12 c-418 -22 -765 -74 -1127 -167 -612
-157 -1080 -387 -1387 -684 -214 -205 -323 -393 -359 -615 -16 -101 -6 -270
20 -361 136 -461 637 -856 1409 -1111 152 -51 434 -125 583 -154 l66 -13 -30
-169 c-16 -93 -27 -171 -24 -174 2 -3 124 58 271 135 l266 140 80 -9 c44 -5
197 -14 339 -21 259 -12 617 -3 844 21 l88 9 265 -140 c146 -77 268 -138 270
-136 5 4 -41 294 -52 328 -4 13 8 19 58 28 465 89 939 260 1278 461 626 370
880 871 686 1356 -69 174 -228 375 -415 526 -517 418 -1411 697 -2402 750
l-226 12 -71 141 -70 140 -66 -140z m-202 -407 c-31 -62 -119 -241 -196 -398
-76 -156 -140 -285 -142 -287 -3 -3 -799 -120 -1156 -170 -102 -14 -188 -29
-193 -32 -4 -4 102 -113 235 -242 133 -129 353 -344 489 -479 l248 -245 -45
-260 c-25 -143 -58 -332 -73 -420 l-27 -160 -41 2 c-61 2 -333 68 -515 124
-674 209 -1153 533 -1334 905 -59 121 -77 209 -71 349 5 137 35 235 109 359
58 97 206 261 311 344 463 366 1242 627 2097 701 69 6 141 13 160 15 19 1 72
4 118 4 l82 2 -56 -112z m906 86 c760 -79 1420 -283 1875 -581 864 -566 763
-1326 -245 -1840 -266 -136 -602 -253 -942 -328 -92 -21 -173 -35 -181 -32 -9
3 -20 44 -31 114 -10 59 -42 248 -72 419 l-54 311 213 210 c116 115 337 331
489 479 153 148 274 271 270 275 -4 3 -106 20 -227 37 -452 64 -1118 162
-1120 164 -6 6 -195 387 -291 587 l-104 214 137 -7 c76 -4 203 -14 283 -22z
m-424 -2761 c137 -73 200 -111 193 -118 -14 -14 -794 -14 -809 1 -7 7 49 41
192 117 112 58 207 107 212 107 5 0 100 -48 212 -107z"/>
<path d="M1815 3669 c-46 -47 -113 -80 -221 -111 -62 -17 -106 -22 -204 -22
-137 0 -185 12 -221 58 -48 61 -211 80 -449 53 -118 -14 -400 -63 -408 -72 -3
-3 28 -145 32 -145 1 0 55 11 120 25 181 37 365 58 481 53 98 -3 105 -5 125
-30 113 -144 579 -119 806 44 50 35 109 108 97 118 -5 4 -33 21 -63 38 l-55
31 -40 -40z"/>
<path d="M7647 575 c-66 -79 -247 -137 -432 -138 -134 0 -170 10 -221 61 -18
17 -53 37 -84 46 -70 21 -238 21 -395 0 -122 -15 -364 -60 -372 -68 -5 -5 17
-119 26 -133 4 -7 47 -2 121 13 181 37 358 56 477 52 l108 -3 37 -37 c120
-117 482 -110 720 13 75 40 168 123 168 151 0 10 -110 80 -122 77 -2 0 -16
-16 -31 -34z"/>
</g>
</svg>
which looks like this as a PNG (because StackOverflow doesn't allow SVG images AFAIK):
You can make all the PATHs your preferred shade of green by editing the SVG, like this:
sed 's/path /path fill="#7CBE89" /' black.svg > green.svg
You could do this with Ghostscript, but you would need some PostScript programming experience.
Essentially you want to override all the setcolor/setcolorspace operations by looking at each setcolor operation, checking the colour space and values to see if its your target colour and, if it is, set the colorspace and values to your desired target.
The various PDF operations to set colour space and values are all defined in ghostpdl/Resource/Init/pdf_draw.ps. You'll need to modify the definitions of:
/G and /g (stroke and fill colours in DeviceGray)
/RG and /rg (stroke and fill colours in DeviceRGB)
/K and /k (stroke and fill colours in DeviceCMYK)
/SC and /sc (stroke and fill colours in Indexed, CalGray, CalRGB or Lab)
/SCN and /scn (stroke and fill colours in Pattern, Separation, DeviceN or ICCBased)
There are quite a few wrinkles in there;
You can probably ignore Pattern spaces and just deal with any colours that are set by the pattern itself.
For SC/sc and /SCN/scn you need to figure out whether the colour specified is the target colour, assuming your target can be specified in these spaces. Note that /Indexed is particularly interesting as it can have a base space of any of the other spaces, so you need to look and see.
Finally note that images (bitmaps) are specified differently, and altering those would be much harder.
Depending on the exact nature of the requirement (ie what space/colours constitute valid targets) this could be quite a lengthy task, and it will require someone with PostScript programming ability to write it.
Oh, and on a final note, have you considered transparency ? That can specify the blending colour space too, which might mean that after you had substituted the colour, it would be blended in a different colour space, resulting in your careful substitution disappearing.
Lest you think this unlikely I should mention that a number of PDF producers create files with transparency groups in them, even when no actual transparency operations take place.
Can anyone help me decoding below crash log from iPhone Configuration utility of iPhone Device
Oct 19 11:09:18 iPhone-AIPV02 kbd[1099] <Warning>: -[TIXPCDataTransport _handleForPurpose:withReplyBlock:] couldn't get data source for purpose=__TIRDTUD
Oct 19 11:09:18 iPhone-AIPV02 mClient[1096] <Warning>: __47+[TIUserDictionaryController loadWordKeyPairs:]_block_invoke_0 Received nil NSData for TIRemoteDataUserDict
Oct 19 11:09:20 iPhone-AIPV02 librariand[1100] <Notice>: MMe quota status changed: under quota
Oct 19 11:09:35 iPhone-AIPV02 lockdownd[29] <Notice>: 2fe93000 spawn_and_handle_checkin: Timeout on socket /var/run/lockdown/checkin.1012 waiting for com.apple.crashreportmover to checkin for Xcode. spawn=1350625160 select=1350625160 now=1350625175
Oct 19 11:09:35 iPhone-AIPV02 ReportCrash[1103] <Error>: libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary
Oct 19 11:09:35 iPhone-AIPV02 ReportCrash[1103] <Error>: libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary
Oct 19 11:09:35 iPhone-AIPV02 ReportCrash[1103] <Warning>: Not internal build
Oct 19 11:09:35 iPhone-AIPV02 ReportCrash[1103] <Error>: libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary
Oct 19 11:09:35 iPhone-AIPV02 ReportCrash[1103] <Notice>: Saved crashreport to /Library/Logs/CrashReporter/stacks-2012-10-19-110935.plist using uid: 0 gid: 0, synthetic_euid: 0 egid: 0
Oct 19 11:09:35 iPhone-AIPV02 ReportCrash[1103] <Error>: libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary
Oct 19 11:09:39 iPhone-AIPV02 com.apple.debugserver-189[1095] <Warning>: 1 +0.000000 sec [0447/0303]: error: ::ptrace (request = PT_THUPDATE, pid = 0x0448, tid = 0x2503, signal = 0) err = Resource busy (0x00000010)
Oct 19 11:09:39 iPhone-AIPV02 com.apple.debugserver-189[1095] <Warning>: 2 +0.033249 sec [0447/0303]: error: ::task_threads ( task = 0x1603, thread_list => 0x0, thread_list_count => 0 ) err = (os/kern) invalid argument (0x00000004)
Oct 19 11:09:39 iPhone-AIPV02 com.apple.debugserver-189[1095] <Warning>: 3 +0.000988 sec [0447/0303]: error: ::task_info ( target_task = 0x1603, flavor = TASK_BASIC_INFO, task_info_out => 0x2fdbee6c, task_info_outCnt => 8 ) err = (os/kern) invalid argument (0x00000004)
Oct 19 11:09:39 iPhone-AIPV02 com.apple.launchd[1] (UIKitApplication:com.csam.app.mClient[0x2ae5][1096]) <Notice>: (UIKitApplication:com.csam.app.mClient[0x2ae5]) Exited: Killed: 9
Oct 19 11:09:39 iPhone-AIPV02 com.apple.debugserver-189[1095] <Warning>: 4 +0.025519 sec [0447/1303]: error: ::read ( 5, 0x2ff22a0c, 1024 ) => -1 err = Bad file descriptor (0x00000009)
O
on my Xcode console I can only see below log and then My iPhone Device gets Restart
2012-10-19 11:09:18.234 mClient[1096:907] __47+[TIUserDictionaryController loadWordKeyPairs:]_block_invoke_0 Received nil NSData for TIRemoteDataUserDict
Apart from this if I see my Crash log on Device then I am getting very strange Logs as below It shows me Unknown app name in Organizer..
Incident Identifier: C0A41418-FFB1-480F-9407-3DCABDF8C817
CrashReporter Key: 424c30662723fd3ef8386fa097c54696af46b054
Hardware Model: iPhone3,3
OS Version: iPhone OS 6.0 (10A403)
Kernel Version: Darwin Kernel Version 13.0.0: Sun Aug 19 00:27:34 PDT 2012; root:xnu-2107.2.33~4/RELEASE_ARM_S5L8930X
Date: 2012-10-19 11:07:25 +0530
Time since snapshot: 348 ms
Free pages: 945
Active pages: 7743
Inactive pages: 3807
Throttled pages: 19087
Purgeable pages: 9
Wired pages: 96860
Largest process: mClient
Processes
Name <UUID> rpages recent_max [reason] (state)
timed <f3f0e010a9a13ae69b5761a5db3f4a3c> 231 231 [vm] (daemon) (idle)
accountsd <ac0fce15c1a2350d951efc498d521ac7> 240 240 [vm] (daemon) (idle)
afcd <b0aff2e7952e34a9882fec81a8dcdbb2> 117 117 [vm] (daemon) (idle)
networkd_privile <f8858e6f66af39ab8ce8f105cfa6872f> 94 94 [vm] (daemon) (idle)
installd <309cd72e8af43ad1b77d96274d0b0ff7> 310 310 [vm] (daemon) (idle)
lsd <6a9f5b5f36b23fc78f87b6d8f1f49a9d> 270 270 [vm] (daemon) (idle)
MobilePhone <3fca241f2a193d0fb8264218d296ea41> 1771 1771 [vm] (resume) (continuous)
librariand <c9a9be81aa9632f0a913ce79b911f27e> 199 199 [vm] (daemon)
tccd <eb5ddcf533663f8d987d67cae6a4c4ea> 124 124 [vm] (daemon)
kbd <3e7136ddcefc3d77a01499db593466cd> 545 545 [vm] (daemon)
mClient <2a2692e6564f30e1b683883adb7cb323> 97400 98186 [vm] (frontmost) (resume)
ptpd <04a56fce67053c57a7979aeea8e5a7ea> 837 837 [vm] (daemon)
assistivetouchd <1f4670e8371f3afbaaee4898c459e148> 1141 1141 [vm] (daemon)
syslogd <cbef142fa0a839f0885afb693fb169c3> 117 170 [vm] (daemon)
wifid <9472b090746237998cdbb9b34f090d0c> 366 366 [vm] (daemon)
locationd <892cd1c9ffa43c99a82dba197be5f09e> 1199 1199 [vm] (daemon)
mediaserverd <80657170daca32c9b8f3a6b1faac43a2> 463 463 [vm] (daemon)
iaptransportd <f784f30dc09d32078d87b450e8113ef6> 234 234 (daemon)
SpringBoard <27372aae101f3bbc87804edc10314af3> 3371 3371
backboardd <5037235f295b33eda98eb5c72c098858> 3131 3131 (daemon)
UserEventAgent <6edfd8d8dba23187b05772dcdfc94f90> 404 404 (daemon)
geod <73e79779d11a312cb70c3770e494ceab> 266 266 (daemon)
springboardservi <ff6f64b3a21a39c9a1793321eefa5304> 0 0 (daemon)
distnoted <a89af76ec8633ac2bbe99bc2b7964bb0> 101 101 (daemon)
notification_pro <845b7beebc8538ca9ceef731031983b7> 118 118 (daemon)
filecoordination <fbab576f37a63b56a1039153fc1aa7d8> 127 127 (daemon)
apsd <94d8051dd5f5362f82d775bc279ae608> 337 337 (daemon)
networkd <0032f46009f53a6c80973fe153d1a588> 157 157 (daemon)
aggregated <8c3c991dc4153bc38aee1e841864d088> 87 87 (daemon)
debugserver <185719f06f1631d4922c652bdd4c8529> 0 0 (daemon)
powerd <2d2ffed5e69638aeba1b92ef124ed861> 132 132 (daemon)
ubd <74dc476d1785300e9fcda555fcb8d774> 336 336 (daemon)
mDNSResponder <3e557693f3073697a58da6d27a827d97> 280 280 (daemon)
lockdownd <ba1358c7a8003f1b91af7d5f58dd5bbe> 192 192 (daemon)
BTServer <c92fbd7488e63be99ec9dbd05824f5e5> 407 407 (daemon)
configd <4245d73a9e96360399452cf6b8671844> 396 396 (daemon)
fairplayd.N92 <db9f16dba3f8358e9b49b446eea2f186> 137 137 (daemon)
fseventsd <996cc4ca03793184aea8d781b55bce08> 288 288 (daemon)
imagent <1e68080947be352590ce96b7a1d07b2f> 298 298 (daemon)
lockbot <4ab4aa38f8b530c984dd4840506f8b08> 228 418 (daemon)
syncdefaultsd <991361b1e471398499afeeb750d132f1> 221 221 (daemon)
CommCenter <1f425e1e897d32e8864fdd8eeaa803a8> 616 616 (daemon)
notifyd <51c0e03da8a93ac8a595442fcaac531f> 149 149 (daemon)
**End**
Restart your phone. I had these errors occurring and things like the camera app would crash, they started occurring when my device ran out of space, I deleted a bunch of files but the errors stayed... I restarted my phone and all worked well, I thought to do this because when I would test the app on other devices it worked fine and these errors didn't occur.
I just had the same problem with the same [TIUserDictionaryController loadWordKeyPairs:]... error. I noticed I had one of my UITextFields's delegate set to File's owner but wasn't using the delegate. I removed the textField's delegate (from my storyboard file), and all worked well :)
It was weird though, cause everything was working fine for days with testing, I submitted the app for review, and 3 days later I tried to show someone the app, and it kept crashing out of nowhere. Perhaps it's some strange bug in Apple's UITextField class
I have 3 tables: Deliveries, IssuedWarehouse, ReturnedStock.
Deliveries: ID, OrderNumber, Material, Width, Gauge, DelKG
IssuedWarehouse: OrderNumber, IssuedKG
ReturnedStock: OrderNumber, IssuedKG
What I'd like to do is group all the orders by Material, Width and Gauge and then sum the amount delivered, issued to the warehouse and issued back to stock.
This is the SQL that is really quite close:
SELECT
DELIVERIES.Material,
DELIVERIES.Width,
DELIVERIES.Gauge,
Count(DELIVERIES.OrderNo) AS [Orders Placed],
Sum(DELIVERIES.DeldQtyKilos) AS [KG Delivered],
Sum(IssuedWarehouse.[Qty Issued]) AS [Film Issued],
Sum([Film Retns].[Qty Issued]) AS [Film Returned],
[KG Delivered]-[Film Issued]+[Film Returned] AS [Qty Remaining]
FROM (DELIVERIES
INNER JOIN IssuedWarehouse
ON DELIVERIES.OrderNo = IssuedWarehouse.[Order No From])
INNER JOIN [Film Retns]
ON DELIVERIES.OrderNo = [Film Retns].[Order No From]
GROUP BY Material, Width, Gauge, ActDelDate
HAVING ActDelDate Between [start date] And [end date]
ORDER BY DELIVERIES.Material;
This groups the products almost perfectly. However if you take a look at the results:
Material Width Gauge Orders Placed Delivered Qnty Kilos Film Issued Film Returned Qty Remaining
COEX-GLOSS 590 75 1 534 500 124 158
COEX-MATT 1080 80 1 4226 4226 52 52
CPP 660 38 8 6720 2768 1384 5336
CPP 666 47 1 5677 5716 536 497
CPP 690 65 2 1232 717 202 717
CPP 760 38 3 3444 1318 510 2636
CPP 770 38 4 4316 3318 2592 3590
CPP 786 38 2 672 442 212 442
CPP 800 47 1 1122 1122 116 116
CPP 810 47 1 1127 1134 69 62
CPP 810 47 2 2250 1285 320 1285
CPP 1460 38 12 6540 4704 2442 4278
LD 975 75 1 502 502 182 182
LDPE 450 50 1 252 252 50 50
LDPE 520 70 1 250 250 95 95
LDPE 570 65 2 504 295 86 295
LDPE 570 65 2 508 278 48 278
LDPE 620 50 1 252 252 67 67
LDPE 660 50 1 256 256 62 62
LDPE 670 75 1 248 248 80 80
LDPE 690 47 1 476 476 390 390
LDPE 790 38 2 2104 1122 140 1122
LDPE 790 50 1 286 286 134 134
LDPE 790 50 1 250 250 125 125
LDPE 810 30 1 4062 4062 100 100
LDPE 843 33 1 408 408 835 835
LDPE 850 80 1 412 412 34 34
LDPE 855 30 1 740 740 83 83
LDPE 880 60 1 304 304 130 130
LDPE 900 70 2 1000 650 500 850
LDPE 1017 60 1 1056 1056 174 174
OPP 25 1100 1 381 381 95 95
OPP 1000 30 2 1358 1112 300 546
OPP 1000 30 1 1492 1491 100 101
OPP 1200 20 1 418 417 461 462
PET 760 12 3 1227 1876 132 -517
You'll see that there are some materials that have the same width and gauge yet they are not grouped. I think this is because the delivered qty is different on the orders. For example:
Material Width Gauge Orders Placed Delivered Qnty Kilos Film Issued Film Returned Qty Remaining
LDPE 620 50 1 252 252 67 67
LDPE 660 50 1 256 256 62 62
I would like these two rows to be grouped. They have the same material, width and gauge but the delivered qty is different therefore it hasn't grouped it.
Can anyone help me group these strange rows?
Your "problem" is that the deliveries occurred on different dates, and you're grouping by ActDelDate so the data splits, but because you haven't selected the ActDelDate column, this isn't obvious.
The fix is: Remove ActDelDate from the group by list
You should also remove the unnecessary brackets around the first join, and change
HAVING ActDelDate Between [start date] And [end date]
to
WHERE ActDelDate Between [start date] And [end date]
and have it before the GROUP BY
You are grouping by the delivery date, which is causing the rows to be split. Either omit the delivery date from the results and group by, or take the min/max of the delivery date.